Interface AccountLevelPermissions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AccountLevelPermissions.Builder,
,AccountLevelPermissions> SdkBuilder<AccountLevelPermissions.Builder,
,AccountLevelPermissions> SdkPojo
- Enclosing class:
AccountLevelPermissions
public static interface AccountLevelPermissions.Builder
extends SdkPojo, CopyableBuilder<AccountLevelPermissions.Builder,AccountLevelPermissions>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AccountLevelPermissions.Builder
blockPublicAccess
(Consumer<BlockPublicAccess.Builder> blockPublicAccess) The block public access settings for the Amazon Web Services account that owns the bucket.blockPublicAccess
(BlockPublicAccess blockPublicAccess) The block public access settings for the Amazon Web Services account that owns the bucket.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
-
blockPublicAccess
The block public access settings for the Amazon Web Services account that owns the bucket.
- Parameters:
blockPublicAccess
- The block public access settings for the Amazon Web Services account that owns the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockPublicAccess
default AccountLevelPermissions.Builder blockPublicAccess(Consumer<BlockPublicAccess.Builder> blockPublicAccess) The block public access settings for the Amazon Web Services account that owns the bucket.
This is a convenience method that creates an instance of theBlockPublicAccess.Builder
avoiding the need to create one manually viaBlockPublicAccess.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockPublicAccess(BlockPublicAccess)
.- Parameters:
blockPublicAccess
- a consumer that will call methods onBlockPublicAccess.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-