com.amazonaws.services.s3.model
Class CopyPartResult

java.lang.Object
  extended by SSEResultBase
      extended by com.amazonaws.services.s3.model.CopyPartResult

public class CopyPartResult
extends SSEResultBase

Result of the copy part operation.


Constructor Summary
CopyPartResult()
           
 
Method Summary
 java.lang.String getETag()
          Gets the ETag value for the new part that was created in the associated CopyPartRequest.
 java.util.Date getLastModifiedDate()
          Gets the date the newly copied part was last modified.
 PartETag getPartETag()
          Returns an identifier which identifies the copy part by its part number and the entity tag computed from the part's data.
 int getPartNumber()
          Gets the part number of the newly copied part.
 java.lang.String getVersionId()
          Gets the version ID of the source object.
 void setETag(java.lang.String etag)
          Sets the ETag value for the new part that was created from the associated copy object request.
 void setLastModifiedDate(java.util.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 setVersionId(java.lang.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 java.lang.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(java.lang.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()

getPartETag

public PartETag getPartETag()
Returns an identifier which identifies the copy part by its part number and the entity tag computed from the part's data. This information is later needed to complete a multipart copy.

Returns:
An identifier which identifies the copy part by its part number and the entity tag computed from the part's data.

getLastModifiedDate

public java.util.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(java.util.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 java.lang.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(java.lang.String versionId)
Sets the version ID of the source object.

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


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