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.Builder
retainRule
(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
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
-
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.Builder
avoiding the need to create one manually viaArchiveRetainRule.builder()
.When the
Consumer
completes,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:
-