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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-