Class CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumePropsMixin.SnaplockRetentionPeriodProperty>
- Enclosing interface:
CfnVolumePropsMixin.SnaplockRetentionPeriodProperty
@Stability(Stable)
public static final class CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumePropsMixin.SnaplockRetentionPeriodProperty>
A builder for
CfnVolumePropsMixin.SnaplockRetentionPeriodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultRetention(CfnVolumePropsMixin.RetentionPeriodProperty defaultRetention) defaultRetention(IResolvable defaultRetention) maximumRetention(CfnVolumePropsMixin.RetentionPeriodProperty maximumRetention) maximumRetention(IResolvable maximumRetention) minimumRetention(CfnVolumePropsMixin.RetentionPeriodProperty minimumRetention) minimumRetention(IResolvable minimumRetention)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultRetention
@Stability(Stable) public CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder defaultRetention(IResolvable defaultRetention) - 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. 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 CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder defaultRetention(CfnVolumePropsMixin.RetentionPeriodProperty defaultRetention) - 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. 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 CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder maximumRetention(IResolvable maximumRetention) - Parameters:
maximumRetention- The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- Returns:
this
-
maximumRetention
@Stability(Stable) public CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder maximumRetention(CfnVolumePropsMixin.RetentionPeriodProperty maximumRetention) - Parameters:
maximumRetention- The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- Returns:
this
-
minimumRetention
@Stability(Stable) public CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder minimumRetention(IResolvable minimumRetention) - Parameters:
minimumRetention- The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- Returns:
this
-
minimumRetention
@Stability(Stable) public CfnVolumePropsMixin.SnaplockRetentionPeriodProperty.Builder minimumRetention(CfnVolumePropsMixin.RetentionPeriodProperty minimumRetention) - Parameters:
minimumRetention- The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumePropsMixin.SnaplockRetentionPeriodProperty>- Returns:
- a new instance of
CfnVolumePropsMixin.SnaplockRetentionPeriodProperty - Throws:
NullPointerException- if any required attribute was not provided
-