public class PutObjectResult extends SSEResultBase implements ObjectExpirationResult, Serializable
| Constructor and Description |
|---|
PutObjectResult() |
| Modifier and Type | Method and Description |
|---|---|
CIUploadResult |
getCiUploadResult() |
String |
getContentMd5()
Returns the Base64-encoded MD5 hash of the object content that was calculated on the
client-side.
|
String |
getCrc64Ecma() |
String |
getDateStr()
get date header for this upload
|
String |
getETag()
Gets the server-side ETag value for the newly created object.
|
Date |
getExpirationTime()
Returns the expiration time for this object, or null if it doesn't expire.
|
String |
getExpirationTimeRuleId()
Returns the
BucketLifecycleConfiguration rule ID for this object's expiration, or
null if it doesn't expire. |
ObjectMetadata |
getMetadata()
Returns the metadata retrieved as a response to
COSClient#putObject(PutObjectRequest)
operation. |
String |
getRequestId()
get requestid for this upload
|
String |
getVersionId()
Gets the optional version ID of the newly uploaded object.
|
void |
setCiUploadResult(CIUploadResult ciUploadResult) |
void |
setContentMd5(String contentMd5)
Sets the Base64-encoded MD5 hash of the object content that was calculated on the
client-side.
|
void |
setCrc64Ecma(String crc64Ecma) |
void |
setDateStr(String dateStr)
set date str for this upload
|
void |
setETag(String eTag)
Sets the ETag value for the new object that was created from the associated
putObject request. |
void |
setExpirationTime(Date expirationTime)
Sets the expiration time for the object.
|
void |
setExpirationTimeRuleId(String expirationTimeRuleId)
Sets the
BucketLifecycleConfiguration rule ID for this object's expiration |
void |
setMetadata(ObjectMetadata metadata)
Sets the metadata retrieved as a response to
COSClient#putObject(PutObjectRequest)
operation. |
void |
setRequestId(String requestId)
set requestId for this upload
|
void |
setVersionId(String versionId)
Sets the optional version ID of the newly uploaded object.
|
getServerSideEncryption, getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5public String getRequestId()
public void setRequestId(String requestId)
requestId - the requestId for the uploadpublic String getDateStr()
public void setDateStr(String dateStr)
dateStr - date str headerpublic String getVersionId()
setVersionId(String)public void setVersionId(String versionId)
versionId - The optional version ID of the newly uploaded object.getVersionId()public String getETag()
setETag(String)public void setETag(String eTag)
putObject request.eTag - The ETag value for the new object.getETag()public Date getExpirationTime()
getExpirationTime in interface ObjectExpirationResultpublic void setExpirationTime(Date expirationTime)
setExpirationTime in interface ObjectExpirationResultexpirationTime - The expiration time for the object.public String getExpirationTimeRuleId()
BucketLifecycleConfiguration rule ID for this object's expiration, or
null if it doesn't expire.getExpirationTimeRuleId in interface ObjectExpirationResultRule#getId()public void setExpirationTimeRuleId(String expirationTimeRuleId)
BucketLifecycleConfiguration rule ID for this object's expirationsetExpirationTimeRuleId in interface ObjectExpirationResultexpirationTimeRuleId - The rule ID for this object's expirationpublic void setContentMd5(String contentMd5)
contentMd5 - The content MD5public String getContentMd5()
public ObjectMetadata getMetadata()
COSClient#putObject(PutObjectRequest)
operation.public void setMetadata(ObjectMetadata metadata)
COSClient#putObject(PutObjectRequest)
operation.public String getCrc64Ecma()
public void setCrc64Ecma(String crc64Ecma)
public CIUploadResult getCiUploadResult()
public void setCiUploadResult(CIUploadResult ciUploadResult)
Copyright © 2023. All rights reserved.