类 PutBucketStorageClassRequest

    • 构造器详细资料

      • 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.