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
Modifier and TypeMethodDescriptionThe amount of time to retain a cross-Region snapshot or AMI copy.intervalUnit
(String intervalUnit) The unit of time for time-based retention.intervalUnit
(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 Details
-
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
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify
Interval=3
andIntervalUnit=MONTHS
.- Parameters:
intervalUnit
- The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specifyInterval=3
andIntervalUnit=MONTHS
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
intervalUnit
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify
Interval=3
andIntervalUnit=MONTHS
.- Parameters:
intervalUnit
- The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specifyInterval=3
andIntervalUnit=MONTHS
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-