类 InitiateMultipartUploadRequest


  • public class InitiateMultipartUploadRequest
    extends GenericObjectRequest
    The InitiateMultipartUploadRequest contains the parameters used for the InitiateMultipartUpload method.

    Required Parameters: BucketName, Key

    • 构造器详细资料

      • InitiateMultipartUploadRequest

        public InitiateMultipartUploadRequest​(String bucketName,
                                              String key)
        Constructs a request to initiate a new multipart upload in the specified bucket, stored by the specified key.
        参数:
        bucketName - The name of the bucket in which to create the new multipart upload, and hence, the eventual object created from the multipart upload.
        key - The key by which to store the new multipart upload, and hence, the eventual object created from the multipart upload.
    • 方法详细资料

      • withBucketName

        public InitiateMultipartUploadRequest withBucketName​(String bucketName)
        Sets the name of the bucket in which to create the new multipart upload, and hence, the eventual object created from the multipart upload.

        Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.

        指定者:
        withBucketName 在类中 GenericBucketRequest
        参数:
        bucketName - The name of the bucket in which to create the new multipart upload, and hence, the eventual object created from the multipart upload.
        返回:
        This updated InitiateMultipartUploadRequest object.
      • withKey

        public InitiateMultipartUploadRequest withKey​(String key)
        Sets the key by which to store the new multipart upload, and hence, the eventual object created from the multipart upload.

        Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.

        指定者:
        withKey 在类中 GenericObjectRequest
        参数:
        key - The key by which to store the new multipart upload, and hence, the eventual object created from the multipart upload.
        返回:
        This updated InitiateMultipartUploadRequest object.
      • getObjectMetadata

        public ObjectMetadata getObjectMetadata()
        Returns the additional information about the new object being created, such as content type, content encoding, user metadata, etc.
        返回:
        The additional information about the new object being created, such as content type, content encoding, user metadata, etc.
      • setObjectMetadata

        public void setObjectMetadata​(ObjectMetadata objectMetadata)
        Sets the additional information about the new object being created, such as content type, content encoding, user metadata, etc.
        参数:
        objectMetadata - Additional information about the new object being created, such as content type, content encoding, user metadata, etc.
      • withMetadata

        public InitiateMultipartUploadRequest withMetadata​(ObjectMetadata objectMetadata)
        Sets the additional information about the new object being created, such as content type, content encoding, user metadata, etc.

        Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.

        参数:
        objectMetadata - Additional information about the new object being created, such as content type, content encoding, user metadata, etc.
        返回:
        This updated InitiateMultipartUploadRequest object.
      • getStorageClass

        public String getStorageClass()
        Gets the storageClass of the input file which is be uploaded to 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 object which is be uploaded to Bos.
        参数:
        storageClass - The StorageClass is an identification that distinguish between infrequent access bos and standard bos.
      • withStorageClass

        public InitiateMultipartUploadRequest withStorageClass​(String storageClass)
        Sets the storageClass of the object which is be uploaded to Bos.
        参数:
        storageClass - The StorageClass is an identification that distinguish between infrequent access bos and standard bos.
        返回:
        This PutObjectRequest, so that additional method calls can be chained together.