Interface RetainRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RetainRule.Builder,RetainRule>,SdkBuilder<RetainRule.Builder,RetainRule>,SdkPojo
- Enclosing class:
- RetainRule
public static interface RetainRule.Builder extends SdkPojo, CopyableBuilder<RetainRule.Builder,RetainRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RetainRule.Buildercount(Integer count)The number of snapshots to retain for each volume, up to a maximum of 1000.RetainRule.Builderinterval(Integer interval)The amount of time to retain each snapshot.RetainRule.BuilderintervalUnit(String intervalUnit)The unit of time for time-based retention.RetainRule.BuilderintervalUnit(RetentionIntervalUnitValues intervalUnit)The unit of time for time-based retention.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
count
RetainRule.Builder count(Integer count)
The number of snapshots to retain for each volume, up to a maximum of 1000. For example if you want to retain a maximum of three snapshots, specify
3. When the fourth snapshot is created, the oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.- Parameters:
count- The number of snapshots to retain for each volume, up to a maximum of 1000. For example if you want to retain a maximum of three snapshots, specify3. When the fourth snapshot is created, the oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interval
RetainRule.Builder interval(Integer interval)
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
- Parameters:
interval- The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intervalUnit
RetainRule.Builder intervalUnit(String intervalUnit)
The unit of time for time-based retention. For example, to retain snapshots for 3 months, specify
Interval=3andIntervalUnit=MONTHS. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.- Parameters:
intervalUnit- The unit of time for time-based retention. For example, to retain snapshots for 3 months, specifyInterval=3andIntervalUnit=MONTHS. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetentionIntervalUnitValues,RetentionIntervalUnitValues
-
intervalUnit
RetainRule.Builder intervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time for time-based retention. For example, to retain snapshots for 3 months, specify
Interval=3andIntervalUnit=MONTHS. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.- Parameters:
intervalUnit- The unit of time for time-based retention. For example, to retain snapshots for 3 months, specifyInterval=3andIntervalUnit=MONTHS. Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an ArchiveRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetentionIntervalUnitValues,RetentionIntervalUnitValues
-
-