Package com.amazonaws.services.s3.model
Class UploadPartResult
- java.lang.Object
-
- com.amazonaws.services.s3.internal.SSEResultBase
-
- com.amazonaws.services.s3.model.UploadPartResult
-
- All Implemented Interfaces:
com.amazonaws.services.s3.internal.S3RequesterChargedResult
,com.amazonaws.services.s3.internal.ServerSideEncryptionResult
,Serializable
public class UploadPartResult extends com.amazonaws.services.s3.internal.SSEResultBase implements Serializable, com.amazonaws.services.s3.internal.S3RequesterChargedResult
Contains the details returned from Amazon S3 after calling the UploadPart operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UploadPartResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getETag()
Returns the entity tag of the newly uploaded part.PartETag
getPartETag()
Returns an identifier which identifies the upload part by its part number and the entity tag computed from the part's data.int
getPartNumber()
Returns the part number of the newly uploaded part.boolean
isRequesterCharged()
Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.void
setETag(String eTag)
Sets the entity tag of the newly uploaded part.void
setPartNumber(int partNumber)
Sets the part number of the newly uploaded part.void
setRequesterCharged(boolean isRequesterCharged)
Used for conducting this operation from a Requester Pays Bucket.
-
-
-
Method Detail
-
getPartNumber
public int getPartNumber()
Returns the part number of the newly uploaded part.- Returns:
- The part number of the newly uploaded part.
-
setPartNumber
public void setPartNumber(int partNumber)
Sets the part number of the newly uploaded part.- Parameters:
partNumber
- the part number of the newly uploaded part.
-
getETag
public String getETag()
Returns the entity tag of the newly uploaded part. The entity tag is needed later when the multipart upload is completed.- Returns:
- the entity tag of the newly uploaded part.
-
setETag
public void setETag(String eTag)
Sets the entity tag of the newly uploaded part.- Parameters:
eTag
- the entity tag of the newly uploaded part.
-
getPartETag
public PartETag getPartETag()
Returns an identifier which identifies the upload part by its part number and the entity tag computed from the part's data. This information is later needed to complete a multipart upload.- Returns:
- An identifier which identifies the upload part by its part number and the entity tag computed from the part's data.
-
isRequesterCharged
public boolean isRequesterCharged()
Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResult
Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
Enabling Requester Pays disables the ability to have anonymous access to this bucket
- Specified by:
isRequesterCharged
in interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult
- Returns:
- true if the user has enabled Requester Pays option for conducting this operation from Requester Pays Bucket.
-
setRequesterCharged
public void setRequesterCharged(boolean isRequesterCharged)
Description copied from interface:com.amazonaws.services.s3.internal.S3RequesterChargedResult
Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for conducting the operation from the bucket.If a bucket is enabled for Requester Pays, then any attempt of operation from it without Requester Pays enabled will result in a 403 error and the bucket owner will be charged for the request.
- Specified by:
setRequesterCharged
in interfacecom.amazonaws.services.s3.internal.S3RequesterChargedResult
- Parameters:
isRequesterCharged
- Indicates requester is charged for this operation.
-
-