Interface OwnershipControls.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OwnershipControls.Builder,OwnershipControls>,SdkBuilder<OwnershipControls.Builder,OwnershipControls>,SdkPojo
- Enclosing class:
- OwnershipControls
@Mutable @NotThreadSafe public static interface OwnershipControls.Builder extends SdkPojo, CopyableBuilder<OwnershipControls.Builder,OwnershipControls>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OwnershipControls.Builderrules(Collection<OwnershipControlsRule> rules)The container element for an ownership control rule.OwnershipControls.Builderrules(Consumer<OwnershipControlsRule.Builder>... rules)The container element for an ownership control rule.OwnershipControls.Builderrules(OwnershipControlsRule... rules)The container element for an ownership control 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
-
rules
OwnershipControls.Builder rules(Collection<OwnershipControlsRule> rules)
The container element for an ownership control rule.
- Parameters:
rules- The container element for an ownership control rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
OwnershipControls.Builder rules(OwnershipControlsRule... rules)
The container element for an ownership control rule.
- Parameters:
rules- The container element for an ownership control rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
OwnershipControls.Builder rules(Consumer<OwnershipControlsRule.Builder>... rules)
The container element for an ownership control rule.
This is a convenience method that creates an instance of theOwnershipControlsRule.Builderavoiding the need to create one manually viaOwnershipControlsRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - Parameters:
rules- a consumer that will call methods onOwnershipControlsRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rules(java.util.Collection)
-
-