Interface DeleteBucketRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DeleteBucketRequest.Builder,,DeleteBucketRequest> LightsailRequest.Builder,SdkBuilder<DeleteBucketRequest.Builder,,DeleteBucketRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DeleteBucketRequest
-
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) The name of the bucket to delete.forceDelete(Boolean forceDelete) A Boolean value that indicates whether to force delete the bucket.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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
-
bucketName
The name of the bucket to delete.
Use the GetBuckets action to get a list of bucket names that you can specify.
- Parameters:
bucketName- The name of the bucket to delete.Use the GetBuckets action to get a list of bucket names that you can specify.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forceDelete
A Boolean value that indicates whether to force delete the bucket.
You must force delete the bucket if it has one of the following conditions:
-
The bucket is the origin of a distribution.
-
The bucket has instances that were granted access to it using the SetResourceAccessForBucket action.
-
The bucket has objects.
-
The bucket has access keys.
Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.
- Parameters:
forceDelete- A Boolean value that indicates whether to force delete the bucket.You must force delete the bucket if it has one of the following conditions:
-
The bucket is the origin of a distribution.
-
The bucket has instances that were granted access to it using the SetResourceAccessForBucket action.
-
The bucket has objects.
-
The bucket has access keys.
Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
overrideConfiguration
DeleteBucketRequest.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
DeleteBucketRequest.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.
-