Class UpdateAccessGrantsLocationRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.s3control.model.S3ControlRequest
-
- software.amazon.awssdk.services.s3control.model.UpdateAccessGrantsLocationRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateAccessGrantsLocationRequest.Builder,UpdateAccessGrantsLocationRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateAccessGrantsLocationRequest extends S3ControlRequest implements ToCopyableBuilder<UpdateAccessGrantsLocationRequest.Builder,UpdateAccessGrantsLocationRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateAccessGrantsLocationRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccessGrantsLocationId()The ID of the registered location that you are updating.StringaccountId()The ID of the Amazon Web Services account that is making this request.static UpdateAccessGrantsLocationRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringiamRoleArn()The Amazon Resource Name (ARN) of the IAM role for the registered location.List<SdkField<?>>sdkFields()static Class<? extends UpdateAccessGrantsLocationRequest.Builder>serializableBuilderClass()UpdateAccessGrantsLocationRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
accountId
public final String accountId()
The ID of the Amazon Web Services account that is making this request.
- Returns:
- The ID of the Amazon Web Services account that is making this request.
-
accessGrantsLocationId
public final String accessGrantsLocationId()
The ID of the registered location that you are updating. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the ID
defaultto the default locations3://and assigns an auto-generated ID to other locations that you register.The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you registered the location. S3 Access Grants assigns the ID
defaultto the default locations3://and assigns an auto-generated ID to other locations that you register.If you are passing the
defaultlocation, you cannot create an access grant for the entire default location. You must also specify a bucket or a bucket and prefix in theSubprefixfield.- Returns:
- The ID of the registered location that you are updating. S3 Access Grants assigns this ID when you
register the location. S3 Access Grants assigns the ID
defaultto the default locations3://and assigns an auto-generated ID to other locations that you register.The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you registered the location. S3 Access Grants assigns the ID
defaultto the default locations3://and assigns an auto-generated ID to other locations that you register.If you are passing the
defaultlocation, you cannot create an access grant for the entire default location. You must also specify a bucket or a bucket and prefix in theSubprefixfield.
-
iamRoleArn
public final String iamRoleArn()
The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.
-
toBuilder
public UpdateAccessGrantsLocationRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateAccessGrantsLocationRequest.Builder,UpdateAccessGrantsLocationRequest>- Specified by:
toBuilderin classS3ControlRequest
-
builder
public static UpdateAccessGrantsLocationRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateAccessGrantsLocationRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-