Class CfnVolume.AutocommitPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnVolume.AutocommitPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume.AutocommitPeriodProperty>
- Enclosing interface:
CfnVolume.AutocommitPeriodProperty
@Stability(Stable)
public static final class CfnVolume.AutocommitPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume.AutocommitPeriodProperty>
A builder for
CfnVolume.AutocommitPeriodProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnVolume.AutocommitPeriodProperty.getType()
Sets the value ofCfnVolume.AutocommitPeriodProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnVolume.AutocommitPeriodProperty.getType()
- Parameters:
type
- Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. This parameter is required. Setting this value toNONE
disables autocommit. The default value isNONE
.- Returns:
this
-
value
Sets the value ofCfnVolume.AutocommitPeriodProperty.getValue()
- Parameters:
value
- Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The following ranges are valid:Minutes
: 5 - 65,535Hours
: 1 - 65,535Days
: 1 - 3,650Months
: 1 - 120Years
: 1 - 10
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVolume.AutocommitPeriodProperty>
- Returns:
- a new instance of
CfnVolume.AutocommitPeriodProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-