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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AccessControlPolicy.Builder
grants(Collection<Grant> grants)
A list of grants.AccessControlPolicy.Builder
grants(Consumer<Grant.Builder>... grants)
A list of grants.AccessControlPolicy.Builder
grants(Grant... grants)
A list of grants.default AccessControlPolicy.Builder
owner(Consumer<Owner.Builder> owner)
Container for the bucket owner's display name and ID.AccessControlPolicy.Builder
owner(Owner owner)
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 Detail
-
grants
AccessControlPolicy.Builder grants(Collection<Grant> 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
AccessControlPolicy.Builder grants(Grant... 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
AccessControlPolicy.Builder grants(Consumer<Grant.Builder>... 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 to#grants(List
.) - 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:
#grants(java.util.Collection
)
-
owner
AccessControlPolicy.Builder owner(Owner 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
default AccessControlPolicy.Builder owner(Consumer<Owner.Builder> 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:
owner(Owner)
-
-