|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bos.model.GenericBucketRequest
com.baidubce.services.bos.model.GenericObjectRequest
com.baidubce.services.bos.model.FetchObjectRequest
public class FetchObjectRequest
Provides options for fetching an Baidu Bos object from url.
All FetchObjectRequest
must specify a sourceUrl and mode, along with a destination bucket and key.
Field Summary | |
---|---|
static String |
MODE_ASYNC
|
static String |
MODE_SYNC
|
Constructor Summary | |
---|---|
FetchObjectRequest(String bucketName,
String key,
String sourceUrl)
Constructs a new FetchObjectRequest with only basic options. |
Method Summary | |
---|---|
String |
getMode()
Gets the mode of this fetching job. |
String |
getSourceUrl()
Gets the url string of the sourceUrl to be fetched. |
String |
getStorageClass()
Gets the storageClass of the input file which is to be fetched to Baidu Bos. |
void |
setMode(String mode)
Sets the mode of this fetching job. |
void |
setSourceUrl(String sourceUrl)
Sets the url string of the sourceUrl to be fetched. |
void |
setStorageClass(String storageClass)
Sets the storageClass of the input file which is to be fetched to Baidu Bos. |
FetchObjectRequest |
withBucketName(String bucketName)
Sets the name of the destination bucket which will contain the new, fetched object and returns this object, enabling additional method calls to be chained together. |
FetchObjectRequest |
withKey(String key)
Sets the destination bucket key under which the new, fetched object will be stored and returns this object, enabling additional method calls can be chained together. |
FetchObjectRequest |
withMode(String mode)
Sets the mode of this fetching job, enabling additional method calls to be chained together. |
FetchObjectRequest |
withRequestCredentials(BceCredentials credentials)
|
FetchObjectRequest |
withSourceUrl(String sourceUrl)
Sets the url string of the sourceUrl to be fetched, and returns this object, enabling additional method calls to be chained together. |
FetchObjectRequest |
withStorageClass(String storageClass)
Sets the storageClass of the input file which is to be fetched to Baidu Bos. |
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 |
Field Detail |
---|
public static final String MODE_SYNC
public static final String MODE_ASYNC
Constructor Detail |
---|
public FetchObjectRequest(String bucketName, String key, String sourceUrl)
bucketName
- The name of the Bos bucket to which the new object will be fetched.key
- The destination bucket key under which the new object will be fetched.sourceUrl
- The name of the Bos bucket containing the object to fetch.Method Detail |
---|
public String getSourceUrl()
public void setSourceUrl(String sourceUrl)
sourceUrl
- The url string of the sourceUrl to be fetched.public FetchObjectRequest withSourceUrl(String sourceUrl)
sourceUrl
- The url string of the sourceUrl to be fetched.
FetchObjectRequest
instance,
enabling additional method calls to be chained together.public String getMode()
public void setMode(String mode)
mode
- The mode of this fetching job.public FetchObjectRequest withMode(String mode)
mode
- The mode of this fetching job.
FetchObjectRequest
instance, enabling additional method calls to be chained together.public FetchObjectRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
public FetchObjectRequest withBucketName(String bucketName)
withBucketName
in class GenericBucketRequest
bucketName
- The name of the destination bucket which will contain the new object of fetching job.
FetchObjectRequest
, enabling additional method calls to be chained together.public FetchObjectRequest withKey(String key)
withKey
in class GenericObjectRequest
key
- The destination bucket key under which the new, fetched object will be stored.
FetchObjectRequest
, enabling additional method calls to be chained together.public String getStorageClass()
public void setStorageClass(String storageClass)
storageClass
- The storageClass is an identification that distinguish between infrequent access bos
and standard bos.public FetchObjectRequest withStorageClass(String storageClass)
storageClass
- The StorageClass is an identification that distinguish between infrequent access bos
and standard bos.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |