类 PutBucketStorageClassRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.PutBucketStorageClassRequest
-
public class PutBucketStorageClassRequest extends GenericBucketRequest
-
-
构造器概要
构造器 构造器 说明 PutBucketStorageClassRequest(String bucketName, String storageClass)Constructs a new PutBucketStorageClassRequest.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetStorageClass()Gets the storageClass of the input file which is be uploaded to Baidu Bos.voidsetStorageClass(String storageClass)Sets the storageClass of the input file which is be uploaded to Baidu Bos.PutBucketStorageClassRequestwithBucketName(String bucketName)Sets the name of the bucket where this request will upload a new object to.PutBucketStorageClassRequestwithRequestCredentials(BceCredentials credentials)-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
PutBucketStorageClassRequest
public PutBucketStorageClassRequest(String bucketName, String storageClass)
Constructs a new PutBucketStorageClassRequest. After constructing the request, users may optionally specify storageClass.- 参数:
bucketName- The name of an existing bucket to which the new object will be uploaded.storageClass- The key is an identification that distinguish between infrequent access bos and standard bos.
-
-
方法详细资料
-
getStorageClass
public String getStorageClass()
Gets the storageClass of the input file which is be uploaded to Baidu Bos.- 返回:
- storageClass The StorageClass is an identification that distinguish between infrequent access bos and standard bos.
-
setStorageClass
public void setStorageClass(String storageClass)
Sets the storageClass of the input file which is be uploaded to Baidu Bos.- 参数:
storageClass- The StorageClass is an identification that distinguish between infrequent access bos and standard bos.
-
withBucketName
public PutBucketStorageClassRequest withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new object to. Returns this object, enabling additional method calls to be chained together.- 指定者:
withBucketName在类中GenericBucketRequest- 参数:
bucketName- The name of an existing bucket where this request will upload a new object to.- 返回:
- This PutObjectRequest, enabling additional method calls to be chained together.
-
withRequestCredentials
public PutBucketStorageClassRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
-