|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.s3.model.PutObjectResult
public class PutObjectResult
Contains the data returned by Amazon S3 from the 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.
AmazonS3.putObject(String, String, java.io.File)
,
AmazonS3#putObject(String, String, java.io.InputStream, S3ObjectMetadata)
,
AmazonS3.putObject(PutObjectRequest)
Constructor Summary | |
---|---|
PutObjectResult()
|
Method Summary | |
---|---|
java.lang.String |
getETag()
Gets the ETag value for the newly created object. |
java.util.Date |
getExpirationTime()
Returns the expiration time for this object, or null if it doesn't expire. |
java.lang.String |
getExpirationTimeRuleId()
Returns the BucketLifecycleConfiguration rule ID for this
object's expiration, or null if it doesn't expire. |
java.lang.String |
getServerSideEncryption()
Returns the server-side encryption algorithm for the newly created object, or null if none was used. |
java.lang.String |
getVersionId()
Gets the optional version ID of the newly uploaded object. |
void |
setETag(java.lang.String eTag)
Sets the ETag value for the new object that was created from the associated putObject request. |
void |
setExpirationTime(java.util.Date expirationTime)
Sets the expiration time for the object. |
void |
setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
Sets the BucketLifecycleConfiguration rule ID for this object's
expiration |
void |
setServerSideEncryption(java.lang.String serverSideEncryption)
Sets the server-side encryption algorithm for the newly created object. |
void |
setVersionId(java.lang.String versionId)
Sets the optional version ID of the newly uploaded object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PutObjectResult()
Method Detail |
---|
public java.lang.String getVersionId()
setVersionId(String)
public void setVersionId(java.lang.String versionId)
versionId
- The optional version ID of the newly uploaded object.getVersionId()
public java.lang.String getETag()
setETag(String)
public void setETag(java.lang.String eTag)
putObject
request.
eTag
- The ETag value for the new object.getETag()
public java.lang.String getServerSideEncryption()
getServerSideEncryption
in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult
public void setServerSideEncryption(java.lang.String serverSideEncryption)
setServerSideEncryption
in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult
serverSideEncryption
- The server-side encryption algorithm for the new object.public java.util.Date getExpirationTime()
getExpirationTime
in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
public void setExpirationTime(java.util.Date expirationTime)
setExpirationTime
in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
expirationTime
- The expiration time for the object.public java.lang.String getExpirationTimeRuleId()
BucketLifecycleConfiguration
rule ID for this
object's expiration, or null if it doesn't expire.
getExpirationTimeRuleId
in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
BucketLifecycleConfiguration.Rule.getId()
public void setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)
BucketLifecycleConfiguration
rule ID for this object's
expiration
setExpirationTimeRuleId
in interface com.amazonaws.services.s3.internal.ObjectExpirationResult
expirationTimeRuleId
- The rule ID for this object's expiration
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |