类 FetchObjectRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.GenericObjectRequest
-
- com.baidubce.services.bos.model.FetchObjectRequest
-
public class FetchObjectRequest extends GenericObjectRequest
Provides options for fetching an Baidu Bos object from url.All
FetchObjectRequestmust specify a sourceUrl and mode, along with a destination bucket and key.
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringMODE_ASYNCstatic StringMODE_SYNC-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 FetchObjectRequest(String bucketName, String key, String sourceUrl)Constructs a new FetchObjectRequest with only basic options.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetCallbackAddress()StringgetMode()Gets the mode of this fetching job.StringgetReferer()StringgetSourceUrl()Gets the url string of the sourceUrl to be fetched.StringgetStorageClass()Gets the storageClass of the input file which is to be fetched to Baidu Bos.StringgetUserAgent()voidsetCallbackAddress(String callbackAddress)voidsetMode(String mode)Sets the mode of this fetching job.voidsetReferer(String referer)voidsetSourceUrl(String sourceUrl)Sets the url string of the sourceUrl to be fetched.voidsetStorageClass(String storageClass)Sets the storageClass of the input file which is to be fetched to Baidu Bos.voidsetUserAgent(String userAgent)FetchObjectRequestwithBucketName(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.FetchObjectRequestwithKey(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.FetchObjectRequestwithMode(String mode)Sets the mode of this fetching job, enabling additional method calls to be chained together.FetchObjectRequestwithRequestCredentials(BceCredentials credentials)FetchObjectRequestwithSourceUrl(String sourceUrl)Sets the url string of the sourceUrl to be fetched, and returns this object, enabling additional method calls to be chained together.FetchObjectRequestwithStorageClass(String storageClass)Sets the storageClass of the input file which is to be fetched to Baidu Bos.-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
FetchObjectRequest
public FetchObjectRequest(String bucketName, String key, String sourceUrl)
Constructs a new FetchObjectRequest with only basic options.- 参数:
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.
-
-
方法详细资料
-
getSourceUrl
public String getSourceUrl()
Gets the url string of the sourceUrl to be fetched.- 返回:
- The url string of the sourceUrl to be fetched.
-
setSourceUrl
public void setSourceUrl(String sourceUrl)
Sets the url string of the sourceUrl to be fetched.- 参数:
sourceUrl- The url string of the sourceUrl to be fetched.
-
withSourceUrl
public 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.- 参数:
sourceUrl- The url string of the sourceUrl to be fetched.- 返回:
- This
FetchObjectRequestinstance, enabling additional method calls to be chained together.
-
getMode
public String getMode()
Gets the mode of this fetching job.- 返回:
- The mode of this fetching job.
-
setMode
public void setMode(String mode)
Sets the mode of this fetching job.- 参数:
mode- The mode of this fetching job.
-
withMode
public FetchObjectRequest withMode(String mode)
Sets the mode of this fetching job, enabling additional method calls to be chained together.- 参数:
mode- The mode of this fetching job.- 返回:
- This
FetchObjectRequestinstance, enabling additional method calls to be chained together.
-
withRequestCredentials
public FetchObjectRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public 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.- 指定者:
withBucketName在类中GenericBucketRequest- 参数:
bucketName- The name of the destination bucket which will contain the new object of fetching job.- 返回:
- This
FetchObjectRequest, enabling additional method calls to be chained together.
-
withKey
public 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.- 指定者:
withKey在类中GenericObjectRequest- 参数:
key- The destination bucket key under which the new, fetched object will be stored.- 返回:
- This
FetchObjectRequest, enabling additional method calls to be chained together.
-
getStorageClass
public String getStorageClass()
Gets the storageClass of the input file which is to be fetched to Baidu Bos.- 返回:
- storageClass The storageClass is an identification that distinguish between infrequent access bos and standard bos.
-
setStorageClass
public void setStorageClass(String storageClass)
Sets the storageClass of the input file which is to be fetched to Baidu Bos.- 参数:
storageClass- The storageClass is an identification that distinguish between infrequent access bos and standard bos.
-
withStorageClass
public FetchObjectRequest withStorageClass(String storageClass)
Sets the storageClass of the input file which is to be fetched to Baidu Bos.- 参数:
storageClass- The StorageClass is an identification that distinguish between infrequent access bos and standard bos.- 返回:
- This FetchObjectRequest, so that additional method calls can be chained together.
-
getCallbackAddress
public String getCallbackAddress()
-
setCallbackAddress
public void setCallbackAddress(String callbackAddress)
-
getReferer
public String getReferer()
-
setReferer
public void setReferer(String referer)
-
getUserAgent
public String getUserAgent()
-
setUserAgent
public void setUserAgent(String userAgent)
-
-