@Generated(value="software.amazon.awssdk:codegen") public final class DeleteBucketRequest extends LightsailRequest implements ToCopyableBuilder<DeleteBucketRequest.Builder,DeleteBucketRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeleteBucketRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
bucketName()
The name of the bucket to delete.
|
static DeleteBucketRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
forceDelete()
A Boolean value that indicates whether to force delete the bucket.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DeleteBucketRequest.Builder> |
serializableBuilderClass() |
DeleteBucketRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String bucketName()
The name of the bucket to delete.
Use the GetBuckets action to get a list of bucket names that you can specify.
Use the GetBuckets action to get a list of bucket names that you can specify.
public final Boolean 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.
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.
public DeleteBucketRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DeleteBucketRequest.Builder,DeleteBucketRequest>toBuilder in class LightsailRequestpublic static DeleteBucketRequest.Builder builder()
public static Class<? extends DeleteBucketRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.