Class CfnTapePoolProps.Builder
java.lang.Object
software.amazon.awscdk.services.storagegateway.CfnTapePoolProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTapePoolProps>
- Enclosing interface:
CfnTapePoolProps
@Stability(Stable)
public static final class CfnTapePoolProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTapePoolProps>
A builder for
CfnTapePoolProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTapePoolProps.getPoolName()retentionLockTimeInDays(Number retentionLockTimeInDays) Sets the value ofCfnTapePoolProps.getRetentionLockTimeInDays()retentionLockType(String retentionLockType) Sets the value ofCfnTapePoolProps.getRetentionLockType()storageClass(String storageClass) Sets the value ofCfnTapePoolProps.getStorageClass()Sets the value ofCfnTapePoolProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
poolName
Sets the value ofCfnTapePoolProps.getPoolName()- Parameters:
poolName- The name of the custom tape pool. This parameter is required.- Returns:
this
-
storageClass
Sets the value ofCfnTapePoolProps.getStorageClass()- Parameters:
storageClass- The storage class associated with the custom pool (S3 Glacier or S3 Glacier Deep Archive). This parameter is required.- Returns:
this
-
retentionLockTimeInDays
@Stability(Stable) public CfnTapePoolProps.Builder retentionLockTimeInDays(Number retentionLockTimeInDays) Sets the value ofCfnTapePoolProps.getRetentionLockTimeInDays()- Parameters:
retentionLockTimeInDays- Tape retention lock time in days (up to 36,500 days / 100 years).- Returns:
this
-
retentionLockType
Sets the value ofCfnTapePoolProps.getRetentionLockType()- Parameters:
retentionLockType- Tape retention lock type. Governance mode allows authorized removal; compliance mode prevents all removal.- Returns:
this
-
tags
Sets the value ofCfnTapePoolProps.getTags()- Parameters:
tags- A list of up to 50 tags for the tape pool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTapePoolProps>- Returns:
- a new instance of
CfnTapePoolProps - Throws:
NullPointerException- if any required attribute was not provided
-