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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetETag()
Gets the ETag value for the new part that was created in the associatedCopyPartRequest
.Gets the date the newly copied part was last modified.Returns an identifier which identifies the copy part by its part number and the entity tag computed from the part's data.int
Gets the part number of the newly copied part.Gets the version ID of the source object.void
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.Methods inherited from class com.amazonaws.services.s3.internal.SSEResultBase
getServerSideEncryption, getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5
-
Constructor Details
-
CopyPartResult
public CopyPartResult()
-
-
Method Details
-
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
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
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:
-
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
Gets the date the newly copied part was last modified.- Returns:
- The date the newly copied part was last modified.
- See Also:
-
setLastModifiedDate
Sets the date the newly copied part was last modified.- Parameters:
lastModifiedDate
- The date the new, copied part was last modified.- See Also:
-
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
Sets the version ID of the source object.- Parameters:
versionId
- The version ID of the source object.- See Also:
-