Interface S3AccessControlList.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3AccessControlList.Builder,
,S3AccessControlList> SdkBuilder<S3AccessControlList.Builder,
,S3AccessControlList> SdkPojo
- Enclosing class:
S3AccessControlList
public static interface S3AccessControlList.Builder
extends SdkPojo, CopyableBuilder<S3AccessControlList.Builder,S3AccessControlList>
-
Method Summary
Modifier and TypeMethodDescriptiongrants
(Collection<S3Grant> grants) grants
(Consumer<S3Grant.Builder>... grants) This is a convenience method that creates an instance of theS3Grant.Builder
avoiding the need to create one manually viaS3Grant.builder()
.default S3AccessControlList.Builder
owner
(Consumer<S3ObjectOwner.Builder> owner) This is a convenience method that creates an instance of theS3ObjectOwner.Builder
avoiding the need to create one manually viaS3ObjectOwner.builder()
.owner
(S3ObjectOwner owner) 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
-
owner
- Parameters:
owner
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
This is a convenience method that creates an instance of theS3ObjectOwner.Builder
avoiding the need to create one manually viaS3ObjectOwner.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toowner(S3ObjectOwner)
.- Parameters:
owner
- a consumer that will call methods onS3ObjectOwner.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grants
- Parameters:
grants
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
- Parameters:
grants
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
This is a convenience method that creates an instance of theS3Grant.Builder
avoiding the need to create one manually viaS3Grant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togrants(List<S3Grant>)
.- Parameters:
grants
- a consumer that will call methods onS3Grant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-