Class CfnVolume.RetentionPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnVolume.RetentionPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume.RetentionPeriodProperty>
- Enclosing interface:
CfnVolume.RetentionPeriodProperty
@Stability(Stable)
public static final class CfnVolume.RetentionPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume.RetentionPeriodProperty>
A builder for
CfnVolume.RetentionPeriodProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnVolume.RetentionPeriodProperty.getType()
Sets the value ofCfnVolume.RetentionPeriodProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnVolume.RetentionPeriodProperty.getType()
- Parameters:
type
- Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. This parameter is required. Set it to one of the valid types. If you set it toINFINITE
, the files are retained forever. If you set it toUNSPECIFIED
, the files are retained until you set an explicit retention period.- Returns:
this
-
value
Sets the value ofCfnVolume.RetentionPeriodProperty.getValue()
- Parameters:
value
- Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value forINFINITE
orUNSPECIFIED
. For all other options, the following ranges are valid:Seconds
: 0 - 65,535Minutes
: 0 - 65,535Hours
: 0 - 24Days
: 0 - 365Months
: 0 - 12Years
: 0 - 100
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVolume.RetentionPeriodProperty>
- Returns:
- a new instance of
CfnVolume.RetentionPeriodProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-