Interface SetResourceAccessForBucketRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SetResourceAccessForBucketRequest.Builder,
,SetResourceAccessForBucketRequest> LightsailRequest.Builder
,SdkBuilder<SetResourceAccessForBucketRequest.Builder,
,SetResourceAccessForBucketRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SetResourceAccessForBucketRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe access setting.access
(ResourceBucketAccess access) The access setting.bucketName
(String bucketName) The name of the bucket for which to set access to another Lightsail resource.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceName
(String resourceName) The name of the Lightsail instance for which to set bucket access.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
build
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
-
resourceName
The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.
- Parameters:
resourceName
- The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketName
The name of the bucket for which to set access to another Lightsail resource.
- Parameters:
bucketName
- The name of the bucket for which to set access to another Lightsail resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
access
The access setting.
The following access settings are available:
-
allow
- Allows access to the bucket and its objects. -
deny
- Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set toallow
.
- Parameters:
access
- The access setting.The following access settings are available:
-
allow
- Allows access to the bucket and its objects. -
deny
- Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set toallow
.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
access
The access setting.
The following access settings are available:
-
allow
- Allows access to the bucket and its objects. -
deny
- Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set toallow
.
- Parameters:
access
- The access setting.The following access settings are available:
-
allow
- Allows access to the bucket and its objects. -
deny
- Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set toallow
.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
SetResourceAccessForBucketRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetResourceAccessForBucketRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-