public class PutObjectResult extends Object implements ServerSideEncryptionResult, ObjectExpirationResult
putObject
operation.
Use this request to access information about the new object created from the
putObject
request, such as its ETag and optional version ID.SCS.putObject(String, String, java.io.File)
,
SCS#putObject(String, String, java.io.InputStream, S3ObjectMetadata)
,
SCS.putObject(PutObjectRequest)
构造器和说明 |
---|
PutObjectResult() |
限定符和类型 | 方法和说明 |
---|---|
String |
getContentMd5()
Returns the content MD5.
|
String |
getETag()
Gets the 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. |
String |
getServerSideEncryption()
Returns the server-side encryption algorithm for the newly created
object, or null if none was used.
|
String |
getServiceSideKey() |
String |
getVersionId()
Gets the optional version ID of the newly uploaded object.
|
void |
setContentMd5(String contentMd5)
Sets the content MD5.
|
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 |
setServerSideEncryption(String serverSideEncryption)
Sets the server-side encryption algorithm for the newly created object.
|
void |
setServiceSideKey(String serviceSideKey) |
void |
setVersionId(String versionId)
Sets the optional version ID of the newly uploaded object.
|
String |
toString() |
public 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 String getServerSideEncryption()
public void setServerSideEncryption(String serverSideEncryption)
setServerSideEncryption
在接口中 ServerSideEncryptionResult
serverSideEncryption
- The server-side encryption algorithm for the new object.public Date getExpirationTime()
getExpirationTime
在接口中 ObjectExpirationResult
public void setExpirationTime(Date expirationTime)
setExpirationTime
在接口中 ObjectExpirationResult
expirationTime
- 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
在接口中 ObjectExpirationResult
Rule#getId()
public void setExpirationTimeRuleId(String expirationTimeRuleId)
BucketLifecycleConfiguration
rule ID for this object's
expirationsetExpirationTimeRuleId
在接口中 ObjectExpirationResult
expirationTimeRuleId
- The rule ID for this object's expirationpublic void setContentMd5(String contentMd5)
contentMd5
- The content MD5public String getContentMd5()
public String getServiceSideKey()
public void setServiceSideKey(String serviceSideKey)
Copyright © 2016. All rights reserved.