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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.gatewayArn(String gatewayArn) Sets the value ofCfnTapeProps.getGatewayArn()kmsEncrypted(Boolean kmsEncrypted) Sets the value ofCfnTapeProps.getKmsEncrypted()kmsEncrypted(IResolvable kmsEncrypted) Sets the value ofCfnTapeProps.getKmsEncrypted()Sets the value ofCfnTapeProps.getKmsKey()Sets the value ofCfnTapeProps.getPoolId()Sets the value ofCfnTapeProps.getTags()tapeBarcode(String tapeBarcode) Sets the value ofCfnTapeProps.getTapeBarcode()tapeSizeInBytes(Number tapeSizeInBytes) Sets the value ofCfnTapeProps.getTapeSizeInBytes()Sets the value ofCfnTapeProps.getWorm()worm(IResolvable worm) Sets the value ofCfnTapeProps.getWorm()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gatewayArn
Sets the value ofCfnTapeProps.getGatewayArn()- Parameters:
gatewayArn- The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape. This parameter is required.- Returns:
this
-
tapeSizeInBytes
Sets the value ofCfnTapeProps.getTapeSizeInBytes()- Parameters:
tapeSizeInBytes- The size, in bytes, of the virtual tape that you want to create. This parameter is required.- Returns:
this
-
kmsEncrypted
Sets the value ofCfnTapeProps.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 ofCfnTapeProps.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 ofCfnTapeProps.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 ofCfnTapeProps.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 ofCfnTapeProps.getTags()- Parameters:
tags- A list of up to 50 tags to assign to the virtual tape.- Returns:
this
-
tapeBarcode
Sets the value ofCfnTapeProps.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
-
worm
Sets the value ofCfnTapeProps.getWorm()- Parameters:
worm- Set to true to create a write-once-read-many (WORM) virtual tape.- Returns:
this
-
worm
Sets the value ofCfnTapeProps.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<CfnTapeProps>- Returns:
- a new instance of
CfnTapeProps - Throws:
NullPointerException- if any required attribute was not provided
-