Interface AuthorizeSnapshotAccessRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AuthorizeSnapshotAccessRequest.Builder,
,AuthorizeSnapshotAccessRequest> RedshiftRequest.Builder
,SdkBuilder<AuthorizeSnapshotAccessRequest.Builder,
,AuthorizeSnapshotAccessRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AuthorizeSnapshotAccessRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountWithRestoreAccess
(String accountWithRestoreAccess) The identifier of the Amazon Web Services account authorized to restore the specified snapshot.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.snapshotArn
(String snapshotArn) The Amazon Resource Name (ARN) of the snapshot to authorize access to.snapshotClusterIdentifier
(String snapshotClusterIdentifier) The identifier of the cluster the snapshot was created from.snapshotIdentifier
(String snapshotIdentifier) The identifier of the snapshot the account is authorized to restore.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
snapshotIdentifier
The identifier of the snapshot the account is authorized to restore.
- Parameters:
snapshotIdentifier
- The identifier of the snapshot the account is authorized to restore.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotArn
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
- Parameters:
snapshotArn
- The Amazon Resource Name (ARN) of the snapshot to authorize access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotClusterIdentifier
The identifier of the cluster the snapshot was created from.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
- Parameters:
snapshotClusterIdentifier
- The identifier of the cluster the snapshot was created from.-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
accountWithRestoreAccess
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
- Parameters:
accountWithRestoreAccess
- The identifier of the Amazon Web Services account authorized to restore the specified snapshot.To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AuthorizeSnapshotAccessRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AuthorizeSnapshotAccessRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-