com.amazonaws.services.s3.model
Class CopyPartResult

java.lang.Object
  extended by com.amazonaws.services.s3.model.CopyPartResult
All Implemented Interfaces:
com.amazonaws.services.s3.internal.ServerSideEncryptionResult

public class CopyPartResult
extends Object
implements com.amazonaws.services.s3.internal.ServerSideEncryptionResult

Result of the copy part operation.


Constructor Summary
CopyPartResult()
           
 
Method Summary
 String getETag()
          Gets the ETag value for the new part that was created in the associated CopyPartRequest.
 Date getLastModifiedDate()
          Gets the date the newly copied part was last modified.
 int getPartNumber()
          Gets the part number of the newly copied part.
 String getServerSideEncryption()
          Returns the server-side encryption algorithm for the newly created object, or null if none was used.
 String getVersionId()
          Gets the version ID of the source object.
 void setETag(String etag)
          Sets the ETag value for the new part that was created from the associated copy object request.
 void setLastModifiedDate(Date lastModifiedDate)
          Sets the date the newly copied part was last modified.
 void setPartNumber(int partNumber)
          Sets the part number of the newly copied part.
 void setServerSideEncryption(String serverSideEncryption)
          Sets the server-side encryption algorithm for the newly created object.
 void setVersionId(String versionId)
          Sets the version ID of the source object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyPartResult

public CopyPartResult()
Method Detail

getPartNumber

public int getPartNumber()
Gets the part number of the newly copied part.


setPartNumber

public void setPartNumber(int partNumber)
Sets the part number of the newly copied part.

Parameters:
partNumber - the part number of the newly uploaded part.

getETag

public String getETag()
Gets the ETag value for the new part that was created in the associated CopyPartRequest.

Returns:
The ETag value for the new part.
See Also:
setETag(String)

setETag

public void setETag(String etag)
Sets the ETag value for the new part that was created from the associated copy object request.

Parameters:
etag - The ETag value for the new part.
See Also:
getETag()

getLastModifiedDate

public Date getLastModifiedDate()
Gets the date the newly copied part was last modified.

Returns:
The date the newly copied part was last modified.
See Also:
setLastModifiedDate(Date)

setLastModifiedDate

public void setLastModifiedDate(Date lastModifiedDate)
Sets the date the newly copied part was last modified.

Parameters:
lastModifiedDate - The date the new, copied part was last modified.
See Also:
getLastModifiedDate()

getVersionId

public String getVersionId()
Gets the version ID of the source object. This field is only present if object versioning has been enabled for the bucket the object was copied from.

Returns:
The version ID of the newly copied object.
See Also:
setVersionId(String)

setVersionId

public void setVersionId(String versionId)
Sets the version ID of the source object.

Parameters:
versionId - The version ID of the source object.
See Also:
getVersionId()

getServerSideEncryption

public String getServerSideEncryption()
Returns the server-side encryption algorithm for the newly created object, or null if none was used.

Specified by:
getServerSideEncryption in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult

setServerSideEncryption

public void setServerSideEncryption(String serverSideEncryption)
Sets the server-side encryption algorithm for the newly created object.

Specified by:
setServerSideEncryption in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult
Parameters:
serverSideEncryption - The server-side encryption algorithm for the new object.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.