public class SetObjectSymlinkRequest extends GetObjectRequest
| Constructor and Description |
|---|
SetObjectSymlinkRequest(String bucketName,
String key,
String symlinkTarget) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getRange, setRange, withRangegetKey, setKeygetBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic String getSymlinkTarget()
public void setSymlinkTarget(String symlinkTarget)
symlinkTarget - public SetObjectSymlinkRequest withSymlinkTarget(String symlinkTarget)
public boolean isForbidOverwrite()
public void setForbidOverwrite(boolean forbidOverwrite)
forbidOverwrite - public SetObjectSymlinkRequest withForbidOverwrite(boolean forbidOverwrite)
public void setStorageClass(String storageClass)
storageClass - public String getStorageClass()
public SetObjectSymlinkRequest withStorageClass(String storageClass)
storageClass - public void setUserMetadata(Map<String,String> userMetadata)
userMetadata - public SetObjectSymlinkRequest withUserMetadata(Map<String,String> userMetadata)
userMetadata - public SetObjectSymlinkRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class GetObjectRequestpublic SetObjectSymlinkRequest withBucketName(String bucketName)
GetObjectRequestwithBucketName in class GetObjectRequestbucketName - The name of the bucket containing the object to be downloaded.public SetObjectSymlinkRequest withKey(String key)
GetObjectRequestwithKey in class GetObjectRequestkey - The key under which the object to be downloaded is stored.Copyright © 2022. All rights reserved.