类 CreateAsyncFetchJobsRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.services.model.CreateAsyncFetchJobsRequest
Create an asynchronous fetch job request in the JSON format.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Obtain the bucket name.Obtain the callback body.Obtain the content type of the callback body.Obtain the host used for callback.Obtain the callback URL.Obtain the storage file typegetHost()Obtain the host used for downloading data from a specified URL.getMd5()Obtain the MD5 file.Obtain the object name.getUrl()Obtain the URL.booleanIf a file with the same name already exists in the namespace, the current fetch job is canceled.voidsetBucketName(String bucket) Set the bucket name.voidsetCallBackBody(String callBackBody) Set the callback body (Base64 encoded).voidsetCallbackBodyType(String callBackBodyType) Set the content type of the callback body.voidsetCallBackHost(String callBackHost) Set the host used for callback.voidsetCallBackUrl(String callBackUrl) Set the callback URL.voidsetFileType(String fileType) Set the storage file typevoidSet the host used for downloading data from a specified URL.voidsetignoreSameKey(boolean ignoreSameKey) voidSet the MD5 file.voidsetObjectKey(String key) Set the object name.voidSet the URL.toString()
-
字段详细资料
-
url
-
bucket
-
host
-
key
-
md5
-
callBackUrl
-
callBackBody
-
callBackBodyType
-
callBackHost
-
fileType
-
ignoreSameKey
private boolean ignoreSameKey
-
-
构造器详细资料
-
CreateAsyncFetchJobsRequest
public CreateAsyncFetchJobsRequest() -
CreateAsyncFetchJobsRequest
Constructor- 参数:
url- URL to be fetched. You can set multiple URLs and separate them with semicolons (;).bucket- Bucket name
-
-
方法详细资料
-
getUrl
Obtain the URL.- 返回:
- url
-
setUrl
Set the URL.- 参数:
url-
-
getBucketName
Obtain the bucket name.- 返回:
- Bucket name
-
setBucketName
Set the bucket name.- 参数:
bucket- Bucket name
-
getHost
Obtain the host used for downloading data from a specified URL.- 返回:
- Host used for downloading data from a specified URL
-
setHost
Set the host used for downloading data from a specified URL.- 参数:
host- Host used for downloading data from a specified URL
-
getObjectKey
Obtain the object name.- 返回:
- Object name
-
setObjectKey
Set the object name.- 参数:
key- Object name
-
getMd5
Obtain the MD5 file.- 返回:
- File MD5
-
setMd5
Set the MD5 file.- 参数:
md5-
-
getCallBackUrl
Obtain the callback URL.- 返回:
- Callback URL.
-
setCallBackUrl
Set the callback URL.- 参数:
callBackUrl- Callback URL.
-
getCallBackBody
Obtain the callback body.- 返回:
- Callback body
-
setCallBackBody
Set the callback body (Base64 encoded).- 参数:
callBackBody- Callback body- 抛出:
ServiceException
-
getCallbackBodyType
Obtain the content type of the callback body.- 返回:
- Content type of the callback body
-
setCallbackBodyType
Set the content type of the callback body.- 参数:
callBackBodyType- Content type of the callback body
-
getCallBackHost
Obtain the host used for callback.- 返回:
- Host used for callback
-
setCallBackHost
Set the host used for callback.- 参数:
callBackHost- Host used for callback
-
getFileType
Obtain the storage file type- 返回:
- Storage file type
-
setFileType
Set the storage file type- 参数:
fileType- Storage file type
-
isignoreSameKey
public boolean isignoreSameKey()If a file with the same name already exists in the namespace, the current fetch job is canceled.- 返回:
- ignoreSameKey
-
setignoreSameKey
public void setignoreSameKey(boolean ignoreSameKey) - 参数:
ignoreSameKey-
-
toString
-