com.baidubce.services.bos.model
Class GetObjectSymlinkRequest
java.lang.Object
com.baidubce.model.AbstractBceRequest
com.baidubce.services.bos.model.GenericBucketRequest
com.baidubce.services.bos.model.GenericObjectRequest
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:
- The range of bytes within the object to download,
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.