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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ArchiveRule.BuilderretainRule(Consumer<ArchiveRetainRule.Builder> retainRule)Information about the retention period for the snapshot archiving rule.ArchiveRule.BuilderretainRule(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
retainRule
ArchiveRule.Builder retainRule(ArchiveRetainRule 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
default ArchiveRule.Builder retainRule(Consumer<ArchiveRetainRule.Builder> 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:
retainRule(ArchiveRetainRule)
-
-