Interface ArchiveRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ArchiveRule.Builder,,ArchiveRule> SdkBuilder<ArchiveRule.Builder,,ArchiveRule> SdkPojo
- Enclosing class:
ArchiveRule
public static interface ArchiveRule.Builder
extends SdkPojo, CopyableBuilder<ArchiveRule.Builder,ArchiveRule>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ArchiveRule.BuilderretainRule(Consumer<ArchiveRetainRule.Builder> retainRule) Information about the retention period for the snapshot archiving rule.retainRule(ArchiveRetainRule retainRule) Information about the retention period for the snapshot archiving rule.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, sdkFields
-
Method Details
-
retainRule
Information about the retention period for the snapshot archiving rule.
- Parameters:
retainRule- Information about the retention period for the snapshot archiving rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retainRule
Information about the retention period for the snapshot archiving rule.
This is a convenience method that creates an instance of theArchiveRetainRule.Builderavoiding the need to create one manually viaArchiveRetainRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretainRule(ArchiveRetainRule).- Parameters:
retainRule- a consumer that will call methods onArchiveRetainRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-