Interface SnaplockRetentionPeriod.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SnaplockRetentionPeriod.Builder,SnaplockRetentionPeriod>
,SdkBuilder<SnaplockRetentionPeriod.Builder,SnaplockRetentionPeriod>
,SdkPojo
- Enclosing class:
- SnaplockRetentionPeriod
public static interface SnaplockRetentionPeriod.Builder extends SdkPojo, CopyableBuilder<SnaplockRetentionPeriod.Builder,SnaplockRetentionPeriod>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SnaplockRetentionPeriod.Builder
defaultRetention(Consumer<RetentionPeriod.Builder> 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.SnaplockRetentionPeriod.Builder
defaultRetention(RetentionPeriod 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.default SnaplockRetentionPeriod.Builder
maximumRetention(Consumer<RetentionPeriod.Builder> maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.SnaplockRetentionPeriod.Builder
maximumRetention(RetentionPeriod maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.default SnaplockRetentionPeriod.Builder
minimumRetention(Consumer<RetentionPeriod.Builder> minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.SnaplockRetentionPeriod.Builder
minimumRetention(RetentionPeriod minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
defaultRetention
SnaplockRetentionPeriod.Builder defaultRetention(RetentionPeriod 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
defaultRetention
default SnaplockRetentionPeriod.Builder defaultRetention(Consumer<RetentionPeriod.Builder> 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.
This is a convenience method that creates an instance of theRetentionPeriod.Builder
avoiding the need to create one manually viaRetentionPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultRetention(RetentionPeriod)
.- Parameters:
defaultRetention
- a consumer that will call methods onRetentionPeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
defaultRetention(RetentionPeriod)
-
minimumRetention
SnaplockRetentionPeriod.Builder minimumRetention(RetentionPeriod minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
- Parameters:
minimumRetention
- The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimumRetention
default SnaplockRetentionPeriod.Builder minimumRetention(Consumer<RetentionPeriod.Builder> minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
This is a convenience method that creates an instance of theRetentionPeriod.Builder
avoiding the need to create one manually viaRetentionPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tominimumRetention(RetentionPeriod)
.- Parameters:
minimumRetention
- a consumer that will call methods onRetentionPeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
minimumRetention(RetentionPeriod)
-
maximumRetention
SnaplockRetentionPeriod.Builder maximumRetention(RetentionPeriod maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
- Parameters:
maximumRetention
- The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumRetention
default SnaplockRetentionPeriod.Builder maximumRetention(Consumer<RetentionPeriod.Builder> maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
This is a convenience method that creates an instance of theRetentionPeriod.Builder
avoiding the need to create one manually viaRetentionPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomaximumRetention(RetentionPeriod)
.- Parameters:
maximumRetention
- a consumer that will call methods onRetentionPeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
maximumRetention(RetentionPeriod)
-
-