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 Details

    • 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

      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

      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

      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

      A list of tag instances.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateSnapshotCopyGrantRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.