Class CfnTapeProps.Builder

java.lang.Object
software.amazon.awscdk.services.storagegateway.CfnTapeProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTapeProps>
Enclosing interface:
CfnTapeProps

@Stability(Stable) public static final class CfnTapeProps.Builder extends Object implements software.amazon.jsii.Builder<CfnTapeProps>
A builder for CfnTapeProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • gatewayArn

      @Stability(Stable) public CfnTapeProps.Builder gatewayArn(String gatewayArn)
      Parameters:
      gatewayArn - The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape. This parameter is required.
      Returns:
      this
    • tapeSizeInBytes

      @Stability(Stable) public CfnTapeProps.Builder tapeSizeInBytes(Number tapeSizeInBytes)
      Parameters:
      tapeSizeInBytes - The size, in bytes, of the virtual tape that you want to create. This parameter is required.
      Returns:
      this
    • kmsEncrypted

      @Stability(Stable) public CfnTapeProps.Builder kmsEncrypted(Boolean kmsEncrypted)
      Parameters:
      kmsEncrypted - Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3. Optional.
      Returns:
      this
    • kmsEncrypted

      @Stability(Stable) public CfnTapeProps.Builder kmsEncrypted(IResolvable kmsEncrypted)
      Parameters:
      kmsEncrypted - Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3. Optional.
      Returns:
      this
    • kmsKey

      @Stability(Stable) public CfnTapeProps.Builder kmsKey(String kmsKey)
      Sets the value of CfnTapeProps.getKmsKey()
      Parameters:
      kmsKey - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. This value must be set if KMSEncrypted is true.
      Returns:
      this
    • poolId

      @Stability(Stable) public CfnTapeProps.Builder poolId(String poolId)
      Sets the value of CfnTapeProps.getPoolId()
      Parameters:
      poolId - The ID of the pool that you want to add your tape to for archiving. Tapes in this pool are archived in the S3 storage class that is associated with the pool.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTapeProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnTapeProps.getTags()
      Parameters:
      tags - A list of up to 50 tags to assign to the virtual tape.
      Returns:
      this
    • tapeBarcode

      @Stability(Stable) public CfnTapeProps.Builder tapeBarcode(String tapeBarcode)
      Parameters:
      tapeBarcode - The barcode that you want to assign to the virtual tape. Barcodes cannot be reused, even after a tape is deleted.
      Returns:
      this
    • worm

      @Stability(Stable) public CfnTapeProps.Builder worm(Boolean worm)
      Sets the value of CfnTapeProps.getWorm()
      Parameters:
      worm - Set to true to create a write-once-read-many (WORM) virtual tape.
      Returns:
      this
    • worm

      @Stability(Stable) public CfnTapeProps.Builder worm(IResolvable worm)
      Sets the value of CfnTapeProps.getWorm()
      Parameters:
      worm - Set to true to create a write-once-read-many (WORM) virtual tape.
      Returns:
      this
    • build

      @Stability(Stable) public CfnTapeProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTapeProps>
      Returns:
      a new instance of CfnTapeProps
      Throws:
      NullPointerException - if any required attribute was not provided