public class UploadPartResult extends SSEResultBase implements Serializable, S3RequesterChargedResult
Constructor and Description |
---|
UploadPartResult() |
Modifier and Type | Method and 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.
|
getServerSideEncryption, getSSEAlgorithm, getSSECustomerAlgorithm, getSSECustomerKeyMd5, setSSEAlgorithm, setSSECustomerAlgorithm, setSSECustomerKeyMd5
public int getPartNumber()
public void setPartNumber(int partNumber)
partNumber
- the part number of the newly uploaded part.public String getETag()
public void setETag(String eTag)
eTag
- the entity tag of the newly uploaded part.public PartETag getPartETag()
public boolean isRequesterCharged()
S3RequesterChargedResult
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
isRequesterCharged
in interface S3RequesterChargedResult
public void setRequesterCharged(boolean isRequesterCharged)
S3RequesterChargedResult
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.
setRequesterCharged
in interface S3RequesterChargedResult
isRequesterCharged
- Indicates requester is charged for this operation.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.