Interface RetentionPeriod.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RetentionPeriod.Builder,,RetentionPeriod> SdkBuilder<RetentionPeriod.Builder,,RetentionPeriod> SdkPojo
- Enclosing class:
RetentionPeriod
@Mutable
@NotThreadSafe
public static interface RetentionPeriod.Builder
extends SdkPojo, CopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
-
Method Summary
Modifier and TypeMethodDescriptionretentionPeriodUnit(String retentionPeriodUnit) The unit of time in which the retention period is measured.retentionPeriodUnit(RetentionPeriodUnit retentionPeriodUnit) The unit of time in which the retention period is measured.retentionPeriodValue(Integer retentionPeriodValue) The period value for which the retention rule is to retain resources, measured in days.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
retentionPeriodValue
The period value for which the retention rule is to retain resources, measured in days. The supported retention periods are:
-
EBS volumes: 1 - 7 days
-
EBS snapshots and EBS-backed AMIs: 1 - 365 days
- Parameters:
retentionPeriodValue- The period value for which the retention rule is to retain resources, measured in days. The supported retention periods are:-
EBS volumes: 1 - 7 days
-
EBS snapshots and EBS-backed AMIs: 1 - 365 days
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
retentionPeriodUnit
The unit of time in which the retention period is measured. Currently, only
DAYSis supported.- Parameters:
retentionPeriodUnit- The unit of time in which the retention period is measured. Currently, onlyDAYSis supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retentionPeriodUnit
The unit of time in which the retention period is measured. Currently, only
DAYSis supported.- Parameters:
retentionPeriodUnit- The unit of time in which the retention period is measured. Currently, onlyDAYSis supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-