类 SetObjectSymlinkRequest


  • public class SetObjectSymlinkRequest
    extends GetObjectRequest
    Request object containing all the options for setting a object symlink.
    • 构造器详细资料

      • SetObjectSymlinkRequest

        public SetObjectSymlinkRequest​(String bucketName,
                                       String key,
                                       String symlinkTarget)
    • 方法详细资料

      • getSymlinkTarget

        public String getSymlinkTarget()
        Gets the symlink of target object
        返回:
      • setSymlinkTarget

        public void setSymlinkTarget​(String symlinkTarget)
        Sets the symlink of target object
        参数:
        symlinkTarget -
      • withSymlinkTarget

        public SetObjectSymlinkRequest withSymlinkTarget​(String symlinkTarget)
        Sets the symlink of target object, and returns this object, enabling additional method calls to be chained together.
      • isForbidOverwrite

        public boolean isForbidOverwrite()
        Gets the flag of forbid overwrite
        返回:
      • setForbidOverwrite

        public void setForbidOverwrite​(boolean forbidOverwrite)
        Set the flag of forbid overwrite
        参数:
        forbidOverwrite -
      • withForbidOverwrite

        public SetObjectSymlinkRequest withForbidOverwrite​(boolean forbidOverwrite)
        Sets the flag of forbid overwrite and returns this object, enabling additional method calls to be chained together.
      • setStorageClass

        public void setStorageClass​(String storageClass)
        Sets the symlink storageClass
        参数:
        storageClass -
      • getStorageClass

        public String getStorageClass()
        Gets the symlink storageClass
        返回:
      • withStorageClass

        public SetObjectSymlinkRequest withStorageClass​(String storageClass)
        Sets the symlink storageClass and returns this object, enabling additional method calls to be chained together.
        参数:
        storageClass -
        返回:
      • getUserMetadata

        public Map<String,​String> getUserMetadata()
        Gets the user-meta of symlink
        返回:
      • setUserMetadata

        public void setUserMetadata​(Map<String,​String> userMetadata)
        Sets the user-meta of symlink
        参数:
        userMetadata -
      • withUserMetadata

        public SetObjectSymlinkRequest withUserMetadata​(Map<String,​String> userMetadata)
        Sets user-meta of symlink and returns this object, enabling additional method calls to be chained together.
        参数:
        userMetadata -
        返回:
      • withBucketName

        public SetObjectSymlinkRequest withBucketName​(String bucketName)
        从类复制的说明: GetObjectRequest
        Sets the name of the bucket containing the object to be downloaded. Returns this GetObjectRequest, enabling additional method calls to be chained together.
        覆盖:
        withBucketName 在类中 GetObjectRequest
        参数:
        bucketName - The name of the bucket containing the object to be downloaded.
        返回:
        This GetObjectRequest, enabling additional method calls to be chained together.
      • withKey

        public SetObjectSymlinkRequest withKey​(String key)
        从类复制的说明: GetObjectRequest
        Sets the key under which the object to be downloaded is stored. Returns this GetObjectRequest, enabling additional method calls to be chained together.
        覆盖:
        withKey 在类中 GetObjectRequest
        参数:
        key - The key under which the object to be downloaded is stored.
        返回:
        This GetObjectRequest, enabling additional method calls to be chained together.