类 SetObjectSymlinkRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.GenericObjectRequest
-
- com.baidubce.services.bos.model.GetObjectRequest
-
- com.baidubce.services.bos.model.SetObjectSymlinkRequest
-
public class SetObjectSymlinkRequest extends GetObjectRequest
Request object containing all the options for setting a object symlink.
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 SetObjectSymlinkRequest(String bucketName, String key, String symlinkTarget)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetStorageClass()Gets the symlink storageClassStringgetSymlinkTarget()Gets the symlink of target objectMap<String,String>getUserMetadata()Gets the user-meta of symlinkbooleanisForbidOverwrite()Gets the flag of forbid overwritevoidsetForbidOverwrite(boolean forbidOverwrite)Set the flag of forbid overwritevoidsetStorageClass(String storageClass)Sets the symlink storageClassvoidsetSymlinkTarget(String symlinkTarget)Sets the symlink of target objectvoidsetUserMetadata(Map<String,String> userMetadata)Sets the user-meta of symlinkSetObjectSymlinkRequestwithBucketName(String bucketName)Sets the name of the bucket containing the object to be downloaded.SetObjectSymlinkRequestwithForbidOverwrite(boolean forbidOverwrite)Sets the flag of forbid overwrite and returns this object, enabling additional method calls to be chained together.SetObjectSymlinkRequestwithKey(String key)Sets the key under which the object to be downloaded is stored.SetObjectSymlinkRequestwithRequestCredentials(BceCredentials credentials)SetObjectSymlinkRequestwithStorageClass(String storageClass)Sets the symlink storageClass and returns this object, enabling additional method calls to be chained together.SetObjectSymlinkRequestwithSymlinkTarget(String symlinkTarget)Sets the symlink of target object, and returns this object, enabling additional method calls to be chained together.SetObjectSymlinkRequestwithUserMetadata(Map<String,String> userMetadata)Sets user-meta of symlink and returns this object, enabling additional method calls to be chained together.-
从类继承的方法 com.baidubce.services.bos.model.GetObjectRequest
getRange, getTrafficLimitBitPS, setRange, setTrafficLimitBitPS, withRange, withTrafficLimitBitPS
-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
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-- 返回:
-
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-- 返回:
-
withRequestCredentials
public SetObjectSymlinkRequest withRequestCredentials(BceCredentials credentials)
-
withBucketName
public SetObjectSymlinkRequest withBucketName(String bucketName)
从类复制的说明:GetObjectRequestSets 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)
从类复制的说明:GetObjectRequestSets 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.
-
-