类 InitiateMultipartUploadRequest


public class InitiateMultipartUploadRequest extends PutObjectBasicRequest
Parameters in a request for initializing a multipart upload
  • 字段详细资料

    • metadata

      private ObjectMetadata metadata
    • expires

      private int expires
    • encodingType

      private String encodingType
  • 构造器详细资料

    • InitiateMultipartUploadRequest

      public InitiateMultipartUploadRequest()
    • InitiateMultipartUploadRequest

      public InitiateMultipartUploadRequest(String bucketName, String objectKey)
      Constructor
      参数:
      bucketName - Name of the bucket to which the multipart upload belongs
      objectKey - Name of the object involved in the multipart upload
    • InitiateMultipartUploadRequest

      public InitiateMultipartUploadRequest(String bucketName, String objectKey, String encodingType)
      Constructor
      参数:
      bucketName - Name of the bucket to which the multipart upload belongs
      objectKey - Name of the object involved in the multipart upload
      encodingType - Use this encoding type to encode keys that contains invalid characters, the value could be "url"
  • 方法详细资料

    • getExpires

      public int getExpires()
      Obtain the expiration time of the object generated after the multipart upload is complete.
      返回:
      Expiration time of the object
    • setExpires

      public void setExpires(int expires)
      Set the expiration time of the object generated after the multipart upload is complete. The value must be an integer.
      参数:
      expires - Expiration time of the object
    • setEncodingType

      public void setEncodingType(String encodingType)
      Set encoding type to encode objectkeys, the value could be url
      参数:
      encodingType - encoding type for encoding
    • getEncodingType

      public String getEncodingType()
      Get encoding type to encode objectkeys
      返回:
      encoding type for encoding
    • getWebSiteRedirectLocation

      @Deprecated public String getWebSiteRedirectLocation()
      已过时。
      Set the redirection link which can redirect the request to another object in the bucket or to an external URL.
      返回:
      Redirection link
    • setWebSiteRedirectLocation

      @Deprecated public void setWebSiteRedirectLocation(String webSiteRedirectLocation)
      已过时。
      Obtain the redirection link which can redirect the request to another object in the bucket or to an external URL.
      参数:
      webSiteRedirectLocation - Redirection link
    • getMetadata

      public ObjectMetadata getMetadata()
      Set object properties, including customized metadata. "content-type" is supported.
      返回:
      Object properties
    • setMetadata

      public void setMetadata(ObjectMetadata metadata)
      Obtain object properties, including customized metadata. "content-type" is supported.
      参数:
      metadata - Object properties
    • toString

      public String toString()
      覆盖:
      toString 在类中 BaseObjectRequest