Class CfnVolumePropsMixin.RetentionPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnVolumePropsMixin.RetentionPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumePropsMixin.RetentionPeriodProperty>
- Enclosing interface:
CfnVolumePropsMixin.RetentionPeriodProperty
@Stability(Stable)
public static final class CfnVolumePropsMixin.RetentionPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumePropsMixin.RetentionPeriodProperty>
A builder for
CfnVolumePropsMixin.RetentionPeriodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVolumePropsMixin.RetentionPeriodProperty.getType()Sets the value ofCfnVolumePropsMixin.RetentionPeriodProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnVolumePropsMixin.RetentionPeriodProperty.getType()- Parameters:
type- Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. 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 ofCfnVolumePropsMixin.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 forINFINITEorUNSPECIFIED. 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumePropsMixin.RetentionPeriodProperty>- Returns:
- a new instance of
CfnVolumePropsMixin.RetentionPeriodProperty - Throws:
NullPointerException- if any required attribute was not provided
-