public class PutBucketStorageClassRequest extends GenericBucketRequest
| Constructor and Description |
|---|
PutBucketStorageClassRequest(String bucketName,
String storageClass)
Constructs a new PutBucketStorageClassRequest.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getStorageClass()
Gets the storageClass of the input file which is be uploaded to Baidu Bos.
|
void |
setStorageClass(String storageClass)
Sets the storageClass of the input file which is be uploaded to Baidu Bos.
|
PutBucketStorageClassRequest |
withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new
object to.
|
PutBucketStorageClassRequest |
withRequestCredentials(BceCredentials credentials) |
getBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic PutBucketStorageClassRequest(String bucketName, String 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.public String getStorageClass()
public void setStorageClass(String storageClass)
storageClass - The StorageClass is an identification that distinguish between infrequent access bos
and standard bos.public PutBucketStorageClassRequest withBucketName(String bucketName)
withBucketName in class GenericBucketRequestbucketName - The name of an existing bucket where this request will upload a new object to.public PutBucketStorageClassRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestCopyright © 2023. All rights reserved.