public class PutBucketInventoryRequest extends BucketRequest
CosXmlRequest.OnRequestWeightListener
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
PutBucketInventoryRequest(java.lang.String bucket) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkParameters()
sdk 参数校验
|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.util.Map<java.lang.String,java.lang.String> |
getQueryString()
获取url query集合
|
void |
isEnable(boolean isEnabled)
设置清单是否启用
|
boolean |
isNeedMD5()
针对有请求体的 PUT 和 POST 请求,此头部是必选项。
|
void |
setDestination(java.lang.String format,
java.lang.String accountId,
java.lang.String bucket,
java.lang.String region,
java.lang.String prefix)
设置存放清单结果的存储桶信息
|
void |
setFilter(java.lang.String prefix)
设置筛选待分析的对象前缀
|
void |
setIncludedObjectVersions(InventoryConfiguration.IncludedObjectVersions includedObjectVersions)
设置是否在清单中包含对象版本
如果设置为 All ,清单中将会包含所有对象版本,并在清单中增加 VersionId, IsLatest, DeleteMarker 这几个字段
如果设置为 Current,则清单中不包含对象版本信息
|
void |
setInventoryId(java.lang.String inventoryId)
设置清单的名称
|
void |
setOptionalFields(InventoryConfiguration.Field field)
添加清单结果中应包含的分析维度
|
void |
setScheduleFrequency(java.lang.String frequency)
设置清单任务周期
|
protected RequestBodySerializer |
xmlBuilder()
收拢xml解析
|
getPath
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getRegion, getRequestBody, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getSTSCredentialScope, getWeight, headersHasUnsafeNonAscii, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener
public void setInventoryId(java.lang.String inventoryId)
inventoryId
- 清单的名称public void isEnable(boolean isEnabled)
isEnabled
- 清单是否启用的标识public void setFilter(java.lang.String prefix)
prefix
- 筛选待分析的对象前缀public void setDestination(java.lang.String format, java.lang.String accountId, java.lang.String bucket, java.lang.String region, java.lang.String prefix)
format
- 清单分析结果的文件形式,可选项为 CSV 格式和 ORC 格式accountId
- 存储桶的所有者 IDbucket
- 清单分析结果的存储桶名region
- 清单分析结果的存储桶区域prefix
- 清单分析结果的前缀public void setScheduleFrequency(java.lang.String frequency)
frequency
- 清单任务周期,可选项为按日或者按周public void setOptionalFields(InventoryConfiguration.Field field)
field
- 清单结果中应包含的分析维度public void setIncludedObjectVersions(InventoryConfiguration.IncludedObjectVersions includedObjectVersions)
includedObjectVersions
- 是否在清单中包含对象版本public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
public java.util.Map<java.lang.String,java.lang.String> getQueryString()
CosXmlRequest
getQueryString
在类中 CosXmlRequest
protected RequestBodySerializer xmlBuilder() throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
CosXmlRequest
xmlBuilder
在类中 CosXmlRequest
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public boolean isNeedMD5()
CosXmlRequest
isNeedMD5
在类中 CosXmlRequest
public void checkParameters() throws CosXmlClientException
CosXmlRequest
checkParameters
在类中 BucketRequest
CosXmlClientException
- cosXmlClientException