Package com.amazonaws.services.s3.model
Class CopyPartResult
- java.lang.Object
-
- com.amazonaws.services.s3.internal.SSEResultBase
-
- com.amazonaws.services.s3.model.CopyPartResult
-
- All Implemented Interfaces:
com.amazonaws.services.s3.internal.ServerSideEncryptionResult
,Serializable
public class CopyPartResult extends com.amazonaws.services.s3.internal.SSEResultBase implements Serializable
Result of the copy part operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CopyPartResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getETag()
Gets the ETag value for the new part that was created in the associatedCopyPartRequest
.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.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
setVersionId(String versionId)
Sets the version ID of the source object.
-
-
-
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 associatedCopyPartRequest
.- 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()
-
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 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()
-
-