类 SetObjectMetadataRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.SetObjectMetadataRequest
Parameters in a request for setting object properties
-
字段概要
字段修饰符和类型字段说明private booleanprivate booleanprivate final ObjectRepleaceMetadataprivate StorageClassEnumprivate Stringprivate String从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
isIgnorePort, objectKey从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
bucketName, httpMethod, userHeaders -
构造器概要
构造器构造器说明SetObjectMetadataRequest(String bucketName, String objectKey) ConstructorSetObjectMetadataRequest(String bucketName, String objectKey, String versionId) Constructor -
方法概要
修饰符和类型方法说明voidaddAllUserMetadata(Map<String, String> userMetadata) Add customized metadata for a group of objects.voidaddUserMetadata(String key, String value) Add customized metadata for an object.Obtain the rewritten "Cache-Control" header in the response.Obtain the rewritten "Content-Disposition" header in the response.Obtain the rewritten "Content-Encoding" header in the response.Obtain the rewritten "Content-Language" header in the response.Obtain the rewritten "Content-Type" header in the response.Obtain the rewritten "Expires" header in the response.已过时。Obtain the object storage class.getUserMetadata(String key) Obtain the customized metadata of an object.Obtain the object version ID.Set the redirection link which can redirect the request to another object in the bucket or to an external URL.booleanSpecifies whether to encode and decode the returned header fields.booleanSpecify whether to delete not specified properties.voidsetCacheControl(String cacheControl) Rewrite the "Cache-Control" header in the response.voidsetContentDisposition(String contentDisposition) Rewrite the "Content-Disposition" header in the response.voidsetContentEncoding(String contentEncoding) Rewrite the "Content-Encoding" header in the response.voidsetContentLanguage(String contentLanguage) Rewrite the "Content-Language" header in the response.voidsetContentType(String contentType) Rewrite the "Content-Type" header in the response.voidsetExpires(String expires) Rewrite the "Expires" header in the response.voidsetIsEncodeHeaders(boolean encodeHeaders) Specifies whether to encode and decode the returned header fields.voidsetObjectStorageClass(StorageClassEnum storageClass) Set the object storage class.voidsetRemoveUnset(boolean removeUnset) Specify whether to delete not specified properties.voidsetVersionId(String versionId) Set the version ID of the object.voidsetWebSiteRedirectLocation(String webSiteRedirectLocation) Obtain the redirection link which can redirect the request to another object in the bucket or to an external URL.toString()从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
getIsIgnorePort, getObjectKey, setIsIgnorePort, setObjectKey从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
-
字段详细资料
-
versionId
-
storageClass
-
webSiteRedirectLocation
-
removeUnset
private boolean removeUnset -
userMetadata
-
encodeHeaders
private boolean encodeHeaders -
replaceMetadata
-
-
构造器详细资料
-
SetObjectMetadataRequest
public SetObjectMetadataRequest() -
SetObjectMetadataRequest
Constructor- 参数:
bucketName- Bucket nameobjectKey- Object name
-
SetObjectMetadataRequest
Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameversionId- Version ID of the object
-
-
方法详细资料
-
getVersionId
Obtain the object version ID.- 返回:
- Version ID of the object
-
setVersionId
Set the version ID of the object.- 参数:
versionId- Version ID of the object
-
getWebSiteRedirectLocation
Set the redirection link which can redirect the request to another object in the bucket or to an external URL.- 返回:
- Redirection link
-
setWebSiteRedirectLocation
Obtain the redirection link which can redirect the request to another object in the bucket or to an external URL.- 参数:
webSiteRedirectLocation- Redirection link
-
getObjectStorageClass
Obtain the object storage class.- 返回:
- Object storage class
-
setObjectStorageClass
Set the object storage class.- 参数:
storageClass- Object storage class
-
isRemoveUnset
public boolean isRemoveUnset()Specify whether to delete not specified properties. The default value is "false." true: Use properties set in the request parameters to overwrite the existing property values. Properties not specified in the request will be deleted. false: Use properties set in the request parameters to overwrite the existing property values. For properties not specified in the request, their existing values are retained.- 返回:
- Identifier specifying whether to delete not specified properties
-
setRemoveUnset
public void setRemoveUnset(boolean removeUnset) Specify whether to delete not specified properties.- 参数:
removeUnset- Identifier specifying whether to delete not specified properties
-
addUserMetadata
Add customized metadata for an object.- 参数:
key- Keyword of the customized metadatavalue- Value of the customized metadata
-
addAllUserMetadata
Add customized metadata for a group of objects.- 参数:
userMetadata- Customized metadata for a group of objects
-
getUserMetadata
Obtain the customized metadata of an object.- 参数:
key- Keyword of the customized metadata- 返回:
- Value of the customized metadata
-
getContentType
Obtain the rewritten "Content-Type" header in the response.- 返回:
- "Content-Type" header in the response
-
setContentType
Rewrite the "Content-Type" header in the response.- 参数:
contentType- "Content-Type" header in the response
-
getContentLanguage
Obtain the rewritten "Content-Language" header in the response.- 返回:
- "Content-Language" header in the response
-
setContentLanguage
Rewrite the "Content-Language" header in the response.- 参数:
contentLanguage- "Content-Language" header in the response
-
getExpires
Obtain the rewritten "Expires" header in the response.- 返回:
- "Expires" header in the response
-
setExpires
Rewrite the "Expires" header in the response.- 参数:
expires- Rewritten "Expires" header in the response
-
getCacheControl
Obtain the rewritten "Cache-Control" header in the response.- 返回:
- "Cache-Control" header in the response
-
setCacheControl
Rewrite the "Cache-Control" header in the response.- 参数:
cacheControl- "Cache-Control" header in the response
-
getContentDisposition
Obtain the rewritten "Content-Disposition" header in the response.- 返回:
- "Content-Disposition" header in the response
-
setContentDisposition
Rewrite the "Content-Disposition" header in the response.- 参数:
contentDisposition- "Content-Disposition" header in the response
-
getContentEncoding
Obtain the rewritten "Content-Encoding" header in the response.- 返回:
- "Content-Encoding" header in the response
-
setContentEncoding
Rewrite the "Content-Encoding" header in the response.- 参数:
contentEncoding- "Content-Encoding" header in the response
-
getAllUserMetadata
-
getMetadata
已过时。 -
setIsEncodeHeaders
public void setIsEncodeHeaders(boolean encodeHeaders) Specifies whether to encode and decode the returned header fields.- 覆盖:
setIsEncodeHeaders在类中BaseObjectRequest- 参数:
encodeHeaders- Specifies whether to encode and decode header fields.
-
isEncodeHeaders
public boolean isEncodeHeaders()Specifies whether to encode and decode the returned header fields.- 覆盖:
isEncodeHeaders在类中BaseObjectRequest- 返回:
- Specifies whether to encode and decode header fields.
-
toString
- 覆盖:
toString在类中BaseObjectRequest
-