com.baidubce.services.bos.model
Class GetObjectSymlinkRequest

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.GetObjectSymlinkRequest

public class GetObjectSymlinkRequest
extends GenericObjectRequest

Provides options for get an Baidu Bos object symlink.

All GetObjectSymlinkRequest must specify a bucket name and key. Beyond that, requests can also specify:


Constructor Summary
GetObjectSymlinkRequest()
           
GetObjectSymlinkRequest(String bucketName, String key)
          Constructs a new GetObjectSymlinkRequest with all the required parameters.
 
Method Summary
 GetObjectSymlinkRequest withBucketName(String bucketName)
          Sets the name of the bucket containing the symlink object.
 GetObjectSymlinkRequest withKey(String key)
          Sets the symlink key.
 GetObjectSymlinkRequest withRequestCredentials(BceCredentials credentials)
           
 
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

GetObjectSymlinkRequest

public GetObjectSymlinkRequest()

GetObjectSymlinkRequest

public GetObjectSymlinkRequest(String bucketName,
                               String key)
Constructs a new GetObjectSymlinkRequest with all the required parameters.

Parameters:
bucketName - The name of the bucket containing the desired object.
key - The symlink key in the specified bucket under which the object is stored.
Method Detail

withKey

public GetObjectSymlinkRequest withKey(String key)
Sets the symlink key. Returns this GetObjectSymlinkRequest, enabling additional method calls to be chained together.

Specified by:
withKey in class GenericObjectRequest
Parameters:
key - The symlink key
Returns:
This GetObjectSymlinkRequest, enabling additional method calls to be chained together.

withBucketName

public GetObjectSymlinkRequest withBucketName(String bucketName)
Sets the name of the bucket containing the symlink object. Returns this GetObjectSymlinkRequest, enabling additional method calls to be chained together.

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

withRequestCredentials

public GetObjectSymlinkRequest withRequestCredentials(BceCredentials credentials)
Specified by:
withRequestCredentials in class AbstractBceRequest


Copyright © 2020. All rights reserved.