Interface DeprecateRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DeprecateRule.Builder,DeprecateRule>,SdkBuilder<DeprecateRule.Builder,DeprecateRule>,SdkPojo
- Enclosing class:
- DeprecateRule
public static interface DeprecateRule.Builder extends SdkPojo, CopyableBuilder<DeprecateRule.Builder,DeprecateRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeprecateRule.Buildercount(Integer count)If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.DeprecateRule.Builderinterval(Integer interval)If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule.DeprecateRule.BuilderintervalUnit(String intervalUnit)The unit of time in which to measure the Interval.DeprecateRule.BuilderintervalUnit(RetentionIntervalUnitValues intervalUnit)The unit of time in which to measure the Interval.-
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
DeprecateRule.Builder count(Integer count)
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
- Parameters:
count- If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interval
DeprecateRule.Builder interval(Integer interval)
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
- Parameters:
interval- If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intervalUnit
DeprecateRule.Builder intervalUnit(String intervalUnit)
The unit of time in which to measure the Interval.
- Parameters:
intervalUnit- The unit of time in which to measure the Interval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetentionIntervalUnitValues,RetentionIntervalUnitValues
-
intervalUnit
DeprecateRule.Builder intervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time in which to measure the Interval.
- Parameters:
intervalUnit- The unit of time in which to measure the Interval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetentionIntervalUnitValues,RetentionIntervalUnitValues
-
-