Interface GetAccessGrantResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetAccessGrantResponse.Builder,GetAccessGrantResponse>,S3ControlResponse.Builder,SdkBuilder<GetAccessGrantResponse.Builder,GetAccessGrantResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetAccessGrantResponse
public static interface GetAccessGrantResponse.Builder extends S3ControlResponse.Builder, SdkPojo, CopyableBuilder<GetAccessGrantResponse.Builder,GetAccessGrantResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetAccessGrantResponse.BuilderaccessGrantArn(String accessGrantArn)The Amazon Resource Name (ARN) of the access grant.GetAccessGrantResponse.BuilderaccessGrantId(String accessGrantId)The ID of the access grant.default GetAccessGrantResponse.BuilderaccessGrantsLocationConfiguration(Consumer<AccessGrantsLocationConfiguration.Builder> accessGrantsLocationConfiguration)The configuration options of the grant location.GetAccessGrantResponse.BuilderaccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration)The configuration options of the grant location.GetAccessGrantResponse.BuilderaccessGrantsLocationId(String accessGrantsLocationId)The ID of the registered location to which you are granting access.GetAccessGrantResponse.BuilderapplicationArn(String applicationArn)The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance.GetAccessGrantResponse.BuildercreatedAt(Instant createdAt)The date and time when you created the access grant.default GetAccessGrantResponse.Buildergrantee(Consumer<Grantee.Builder> grantee)The user, group, or role to which you are granting access.GetAccessGrantResponse.Buildergrantee(Grantee grantee)The user, group, or role to which you are granting access.GetAccessGrantResponse.BuildergrantScope(String grantScope)The S3 path of the data to which you are granting access.GetAccessGrantResponse.Builderpermission(String permission)The type of permission that was granted in the access grant.GetAccessGrantResponse.Builderpermission(Permission permission)The type of permission that was granted in the access grant.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.s3control.model.S3ControlResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
createdAt
GetAccessGrantResponse.Builder createdAt(Instant createdAt)
The date and time when you created the access grant.
- Parameters:
createdAt- The date and time when you created the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantId
GetAccessGrantResponse.Builder accessGrantId(String accessGrantId)
The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.
- Parameters:
accessGrantId- The ID of the access grant. S3 Access Grants auto-generates this ID when you create the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantArn
GetAccessGrantResponse.Builder accessGrantArn(String accessGrantArn)
The Amazon Resource Name (ARN) of the access grant.
- Parameters:
accessGrantArn- The Amazon Resource Name (ARN) of the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantee
GetAccessGrantResponse.Builder grantee(Grantee grantee)
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the S3 Access Grants instance, the grantee can also be a corporate directory user or group.
- Parameters:
grantee- The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the S3 Access Grants instance, the grantee can also be a corporate directory user or group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantee
default GetAccessGrantResponse.Builder grantee(Consumer<Grantee.Builder> grantee)
The user, group, or role to which you are granting access. You can grant access to an IAM user or role. If you have added a corporate directory to Amazon Web Services IAM Identity Center and associated this Identity Center instance with the S3 Access Grants instance, the grantee can also be a corporate directory user or group.
This is a convenience method that creates an instance of theGrantee.Builderavoiding the need to create one manually viaGrantee.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tograntee(Grantee).- Parameters:
grantee- a consumer that will call methods onGrantee.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
grantee(Grantee)
-
permission
GetAccessGrantResponse.Builder permission(String permission)
The type of permission that was granted in the access grant. Can be one of the following values:
-
READ– Grant read-only access to the S3 data. -
WRITE– Grant write-only access to the S3 data. -
READWRITE– Grant both read and write access to the S3 data.
- Parameters:
permission- The type of permission that was granted in the access grant. Can be one of the following values:-
READ– Grant read-only access to the S3 data. -
WRITE– Grant write-only access to the S3 data. -
READWRITE– Grant both read and write access to the S3 data.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Permission,Permission
-
-
permission
GetAccessGrantResponse.Builder permission(Permission permission)
The type of permission that was granted in the access grant. Can be one of the following values:
-
READ– Grant read-only access to the S3 data. -
WRITE– Grant write-only access to the S3 data. -
READWRITE– Grant both read and write access to the S3 data.
- Parameters:
permission- The type of permission that was granted in the access grant. Can be one of the following values:-
READ– Grant read-only access to the S3 data. -
WRITE– Grant write-only access to the S3 data. -
READWRITE– Grant both read and write access to the S3 data.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Permission,Permission
-
-
accessGrantsLocationId
GetAccessGrantResponse.Builder accessGrantsLocationId(String accessGrantsLocationId)
The ID of the registered location to which you are granting access. 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.- Parameters:
accessGrantsLocationId- The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you register the location. S3 Access Grants assigns the IDdefaultto the default locations3://and assigns an auto-generated ID to other locations that you register.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantsLocationConfiguration
GetAccessGrantResponse.Builder accessGrantsLocationConfiguration(AccessGrantsLocationConfiguration accessGrantsLocationConfiguration)
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
- Parameters:
accessGrantsLocationConfiguration- The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessGrantsLocationConfiguration
default GetAccessGrantResponse.Builder accessGrantsLocationConfiguration(Consumer<AccessGrantsLocationConfiguration.Builder> accessGrantsLocationConfiguration)
The configuration options of the grant location. The grant location is the S3 path to the data to which you are granting access.
This is a convenience method that creates an instance of theAccessGrantsLocationConfiguration.Builderavoiding the need to create one manually viaAccessGrantsLocationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessGrantsLocationConfiguration(AccessGrantsLocationConfiguration).- Parameters:
accessGrantsLocationConfiguration- a consumer that will call methods onAccessGrantsLocationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
accessGrantsLocationConfiguration(AccessGrantsLocationConfiguration)
-
grantScope
GetAccessGrantResponse.Builder grantScope(String grantScope)
The S3 path of the data to which you are granting access. It is the result of appending the
Subprefixto the location scope.- Parameters:
grantScope- The S3 path of the data to which you are granting access. It is the result of appending theSubprefixto the location scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationArn
GetAccessGrantResponse.Builder applicationArn(String applicationArn)
The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.
- Parameters:
applicationArn- The Amazon Resource Name (ARN) of an Amazon Web Services IAM Identity Center application associated with your Identity Center instance. If the grant includes an application ARN, the grantee can only access the S3 data through this application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-