Interface CreateSnapshotCopyGrantRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSnapshotCopyGrantRequest.Builder,CreateSnapshotCopyGrantRequest>,RedshiftRequest.Builder,SdkBuilder<CreateSnapshotCopyGrantRequest.Builder,CreateSnapshotCopyGrantRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateSnapshotCopyGrantRequest
public static interface CreateSnapshotCopyGrantRequest.Builder extends RedshiftRequest.Builder, SdkPojo, CopyableBuilder<CreateSnapshotCopyGrantRequest.Builder,CreateSnapshotCopyGrantRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateSnapshotCopyGrantRequest.BuilderkmsKeyId(String kmsKeyId)The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission.CreateSnapshotCopyGrantRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateSnapshotCopyGrantRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateSnapshotCopyGrantRequest.BuildersnapshotCopyGrantName(String snapshotCopyGrantName)The name of the snapshot copy grant.CreateSnapshotCopyGrantRequest.Buildertags(Collection<Tag> tags)A list of tag instances.CreateSnapshotCopyGrantRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of tag instances.CreateSnapshotCopyGrantRequest.Buildertags(Tag... tags)A list of tag instances.-
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 Detail
-
snapshotCopyGrantName
CreateSnapshotCopyGrantRequest.Builder snapshotCopyGrantName(String snapshotCopyGrantName)
The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services account.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
Alphabetic characters must be lowercase.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for all clusters within an Amazon Web Services account.
- Parameters:
snapshotCopyGrantName- The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services account.Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
Alphabetic characters must be lowercase.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for all clusters within an Amazon Web Services account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
kmsKeyId
CreateSnapshotCopyGrantRequest.Builder kmsKeyId(String kmsKeyId)
The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.
- Parameters:
kmsKeyId- The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateSnapshotCopyGrantRequest.Builder tags(Collection<Tag> tags)
A list of tag instances.
- Parameters:
tags- A list of tag instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateSnapshotCopyGrantRequest.Builder tags(Tag... tags)
A list of tag instances.
- Parameters:
tags- A list of tag instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateSnapshotCopyGrantRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tag instances.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateSnapshotCopyGrantRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateSnapshotCopyGrantRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-