Interface AccessControlPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AccessControlPolicy.Builder,
,AccessControlPolicy> SdkBuilder<AccessControlPolicy.Builder,
,AccessControlPolicy> SdkPojo
- Enclosing class:
AccessControlPolicy
public static interface AccessControlPolicy.Builder
extends SdkPojo, CopyableBuilder<AccessControlPolicy.Builder,AccessControlPolicy>
-
Method Summary
Modifier and TypeMethodDescriptiongrants
(Collection<Grant> grants) A list of grants.grants
(Consumer<Grant.Builder>... grants) A list of grants.A list of grants.default AccessControlPolicy.Builder
owner
(Consumer<Owner.Builder> owner) Container for the bucket owner's display name and ID.Container for the bucket owner's display name and ID.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
-
grants
A list of grants.
- Parameters:
grants
- A list of grants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
A list of grants.
- Parameters:
grants
- A list of grants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
A list of grants.
This is a convenience method that creates an instance of theGrant.Builder
avoiding the need to create one manually viaGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togrants(List<Grant>)
.- Parameters:
grants
- a consumer that will call methods onGrant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
owner
Container for the bucket owner's display name and ID.
- Parameters:
owner
- Container for the bucket owner's display name and ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
Container for the bucket owner's display name and ID.
This is a convenience method that creates an instance of theOwner.Builder
avoiding the need to create one manually viaOwner.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toowner(Owner)
.- Parameters:
owner
- a consumer that will call methods onOwner.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-