Class CfnTapeMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.storagegateway.CfnTapeMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTapeMixinProps>
- Enclosing interface:
CfnTapeMixinProps
@Stability(Stable)
public static final class CfnTapeMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTapeMixinProps>
A builder for
CfnTapeMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.gatewayArn(String gatewayArn) Sets the value ofCfnTapeMixinProps.getGatewayArn()kmsEncrypted(Boolean kmsEncrypted) Sets the value ofCfnTapeMixinProps.getKmsEncrypted()kmsEncrypted(IResolvable kmsEncrypted) Sets the value ofCfnTapeMixinProps.getKmsEncrypted()Sets the value ofCfnTapeMixinProps.getKmsKey()Sets the value ofCfnTapeMixinProps.getPoolId()Sets the value ofCfnTapeMixinProps.getTags()tapeBarcode(String tapeBarcode) Sets the value ofCfnTapeMixinProps.getTapeBarcode()tapeSizeInBytes(Number tapeSizeInBytes) Sets the value ofCfnTapeMixinProps.getTapeSizeInBytes()Sets the value ofCfnTapeMixinProps.getWorm()worm(IResolvable worm) Sets the value ofCfnTapeMixinProps.getWorm()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gatewayArn
Sets the value ofCfnTapeMixinProps.getGatewayArn()- Parameters:
gatewayArn- The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape.- Returns:
this
-
kmsEncrypted
Sets the value ofCfnTapeMixinProps.getKmsEncrypted()- 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
Sets the value ofCfnTapeMixinProps.getKmsEncrypted()- 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
Sets the value ofCfnTapeMixinProps.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
Sets the value ofCfnTapeMixinProps.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
Sets the value ofCfnTapeMixinProps.getTags()- Parameters:
tags- A list of up to 50 tags to assign to the virtual tape.- Returns:
this
-
tapeBarcode
Sets the value ofCfnTapeMixinProps.getTapeBarcode()- 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
-
tapeSizeInBytes
Sets the value ofCfnTapeMixinProps.getTapeSizeInBytes()- Parameters:
tapeSizeInBytes- The size, in bytes, of the virtual tape that you want to create.- Returns:
this
-
worm
Sets the value ofCfnTapeMixinProps.getWorm()- Parameters:
worm- Set to true to create a write-once-read-many (WORM) virtual tape.- Returns:
this
-
worm
Sets the value ofCfnTapeMixinProps.getWorm()- Parameters:
worm- Set to true to create a write-once-read-many (WORM) virtual tape.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTapeMixinProps>- Returns:
- a new instance of
CfnTapeMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-