Class CfnVolume.SnaplockRetentionPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnVolume.SnaplockRetentionPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume.SnaplockRetentionPeriodProperty>
- Enclosing interface:
CfnVolume.SnaplockRetentionPeriodProperty
@Stability(Stable)
public static final class CfnVolume.SnaplockRetentionPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume.SnaplockRetentionPeriodProperty>
A builder for
CfnVolume.SnaplockRetentionPeriodProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultRetention
(IResolvable defaultRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getDefaultRetention()
defaultRetention
(CfnVolume.RetentionPeriodProperty defaultRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getDefaultRetention()
maximumRetention
(IResolvable maximumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMaximumRetention()
maximumRetention
(CfnVolume.RetentionPeriodProperty maximumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMaximumRetention()
minimumRetention
(IResolvable minimumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMinimumRetention()
minimumRetention
(CfnVolume.RetentionPeriodProperty minimumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMinimumRetention()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultRetention
@Stability(Stable) public CfnVolume.SnaplockRetentionPeriodProperty.Builder defaultRetention(IResolvable defaultRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getDefaultRetention()
- Parameters:
defaultRetention
- The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. This parameter is required. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.- Returns:
this
-
defaultRetention
@Stability(Stable) public CfnVolume.SnaplockRetentionPeriodProperty.Builder defaultRetention(CfnVolume.RetentionPeriodProperty defaultRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getDefaultRetention()
- Parameters:
defaultRetention
- The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. This parameter is required. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.- Returns:
this
-
maximumRetention
@Stability(Stable) public CfnVolume.SnaplockRetentionPeriodProperty.Builder maximumRetention(IResolvable maximumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMaximumRetention()
- Parameters:
maximumRetention
- The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. This parameter is required.- Returns:
this
-
maximumRetention
@Stability(Stable) public CfnVolume.SnaplockRetentionPeriodProperty.Builder maximumRetention(CfnVolume.RetentionPeriodProperty maximumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMaximumRetention()
- Parameters:
maximumRetention
- The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. This parameter is required.- Returns:
this
-
minimumRetention
@Stability(Stable) public CfnVolume.SnaplockRetentionPeriodProperty.Builder minimumRetention(IResolvable minimumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMinimumRetention()
- Parameters:
minimumRetention
- The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. This parameter is required.- Returns:
this
-
minimumRetention
@Stability(Stable) public CfnVolume.SnaplockRetentionPeriodProperty.Builder minimumRetention(CfnVolume.RetentionPeriodProperty minimumRetention) Sets the value ofCfnVolume.SnaplockRetentionPeriodProperty.getMinimumRetention()
- Parameters:
minimumRetention
- The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVolume.SnaplockRetentionPeriodProperty>
- Returns:
- a new instance of
CfnVolume.SnaplockRetentionPeriodProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-