Interface CrossRegionCopyRetainRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CrossRegionCopyRetainRule.Builder,CrossRegionCopyRetainRule>,SdkBuilder<CrossRegionCopyRetainRule.Builder,CrossRegionCopyRetainRule>,SdkPojo
- Enclosing class:
- CrossRegionCopyRetainRule
public static interface CrossRegionCopyRetainRule.Builder extends SdkPojo, CopyableBuilder<CrossRegionCopyRetainRule.Builder,CrossRegionCopyRetainRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CrossRegionCopyRetainRule.Builderinterval(Integer interval)The amount of time to retain a cross-Region snapshot or AMI copy.CrossRegionCopyRetainRule.BuilderintervalUnit(String intervalUnit)The unit of time for time-based retention.CrossRegionCopyRetainRule.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, sdkFields
-
-
-
-
Method Detail
-
interval
CrossRegionCopyRetainRule.Builder interval(Integer interval)
The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
- Parameters:
interval- The amount of time to retain a cross-Region snapshot or AMI copy. 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
CrossRegionCopyRetainRule.Builder intervalUnit(String intervalUnit)
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify
Interval=3andIntervalUnit=MONTHS.- Parameters:
intervalUnit- The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specifyInterval=3andIntervalUnit=MONTHS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetentionIntervalUnitValues,RetentionIntervalUnitValues
-
intervalUnit
CrossRegionCopyRetainRule.Builder intervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify
Interval=3andIntervalUnit=MONTHS.- Parameters:
intervalUnit- The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specifyInterval=3andIntervalUnit=MONTHS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RetentionIntervalUnitValues,RetentionIntervalUnitValues
-
-