com.baidubce.services.bos.model
Class SetObjectSymlinkRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bos.model.GenericBucketRequest
          extended by com.baidubce.services.bos.model.GenericObjectRequest
              extended by com.baidubce.services.bos.model.GetObjectRequest
                  extended by com.baidubce.services.bos.model.SetObjectSymlinkRequest

public class SetObjectSymlinkRequest
extends GetObjectRequest

Request object containing all the options for setting a object symlink.


Constructor Summary
SetObjectSymlinkRequest(String bucketName, String key, String symlinkTarget)
           
 
Method Summary
 String getStorageClass()
          Gets the symlink storageClass
 String getSymlinkTarget()
          Gets the symlink of target object
 Map<String,String> getUserMetadata()
          Gets the user-meta of symlink
 boolean isForbidOverwrite()
          Gets the flag of forbid overwrite
 void setForbidOverwrite(boolean forbidOverwrite)
          Set the flag of forbid overwrite
 void setStorageClass(String storageClass)
          Sets the symlink storageClass
 void setSymlinkTarget(String symlinkTarget)
          Sets the symlink of target object
 void setUserMetadata(Map<String,String> userMetadata)
          Sets the user-meta of symlink
 SetObjectSymlinkRequest withBucketName(String bucketName)
          Sets the name of the bucket containing the object to be downloaded.
 SetObjectSymlinkRequest withForbidOverwrite(boolean forbidOverwrite)
          Sets the flag of forbid overwrite and returns this object, enabling additional method calls to be chained together.
 SetObjectSymlinkRequest withKey(String key)
          Sets the key under which the object to be downloaded is stored.
 SetObjectSymlinkRequest withRequestCredentials(BceCredentials credentials)
           
 SetObjectSymlinkRequest withStorageClass(String storageClass)
          Sets the symlink storageClass and returns this object, enabling additional method calls to be chained together.
 SetObjectSymlinkRequest withSymlinkTarget(String symlinkTarget)
          Sets the symlink of target object, and returns this object, enabling additional method calls to be chained together.
 SetObjectSymlinkRequest withUserMetadata(Map<String,String> userMetadata)
          Sets user-meta of symlink and returns this object, enabling additional method calls to be chained together.
 
Methods inherited from class com.baidubce.services.bos.model.GetObjectRequest
getRange, setRange, withRange
 
Methods inherited from class com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
 
Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetObjectSymlinkRequest

public SetObjectSymlinkRequest(String bucketName,
                               String key,
                               String symlinkTarget)
Method Detail

getSymlinkTarget

public String getSymlinkTarget()
Gets the symlink of target object

Returns:

setSymlinkTarget

public void setSymlinkTarget(String symlinkTarget)
Sets the symlink of target object

Parameters:
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

Returns:

setForbidOverwrite

public void setForbidOverwrite(boolean forbidOverwrite)
Set the flag of forbid overwrite

Parameters:
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

Parameters:
storageClass -

getStorageClass

public String getStorageClass()
Gets the symlink storageClass

Returns:

withStorageClass

public SetObjectSymlinkRequest withStorageClass(String storageClass)
Sets the symlink storageClass and returns this object, enabling additional method calls to be chained together.

Parameters:
storageClass -
Returns:

getUserMetadata

public Map<String,String> getUserMetadata()
Gets the user-meta of symlink

Returns:

setUserMetadata

public void setUserMetadata(Map<String,String> userMetadata)
Sets the user-meta of symlink

Parameters:
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.

Parameters:
userMetadata -
Returns:

withRequestCredentials

public SetObjectSymlinkRequest withRequestCredentials(BceCredentials credentials)
Overrides:
withRequestCredentials in class GetObjectRequest

withBucketName

public SetObjectSymlinkRequest withBucketName(String bucketName)
Description copied from class: GetObjectRequest
Sets the name of the bucket containing the object to be downloaded. Returns this GetObjectRequest, enabling additional method calls to be chained together.

Overrides:
withBucketName in class GetObjectRequest
Parameters:
bucketName - The name of the bucket containing the object to be downloaded.
Returns:
This GetObjectRequest, enabling additional method calls to be chained together.

withKey

public SetObjectSymlinkRequest withKey(String key)
Description copied from class: GetObjectRequest
Sets the key under which the object to be downloaded is stored. Returns this GetObjectRequest, enabling additional method calls to be chained together.

Overrides:
withKey in class GetObjectRequest
Parameters:
key - The key under which the object to be downloaded is stored.
Returns:
This GetObjectRequest, enabling additional method calls to be chained together.


Copyright © 2020. All rights reserved.