![JAR search and dependency download from the Maven repository](/logo.png)
com.netease.cloud.services.nos.model.DeleteBucketRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nos-sdk-java-publiccloud Show documentation
Show all versions of nos-sdk-java-publiccloud Show documentation
nos java sdk to the Central Repository
The newest version!
package com.netease.cloud.services.nos.model;
import com.netease.cloud.WebServiceRequest;
/**
*
* Provides options for deleting a specified bucket. buckets can only be deleted
* when empty.
*
*
* Note: When attempting to delete a bucket that does not exist, returns a
* success message, not an error message.
*
*/
public class DeleteBucketRequest extends WebServiceRequest {
/**
* The name of the bucket to delete.
*/
private String bucketName;
/**
* Constructs a new {@link DeleteBucketRequest}, ready to be executed to
* delete the specified bucket.
*
* @param bucketName
* The name of the bucket to delete.
*/
public DeleteBucketRequest(String bucketName) {
setBucketName(bucketName);
}
/**
* Sets the name of the bucket to delete.
*
* @param bucketName
* The name of the bucket to delete.
*
* @see DeleteBucketRequest#getBucketName()
*/
public void setBucketName(String bucketName) {
this.bucketName = bucketName;
}
/**
* Gets the name of the bucket to delete.
*
* @return The name of the bucket to delete.
*
* @see DeleteBucketRequest#setBucketName(String)
*/
public String getBucketName() {
return bucketName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy