public class UploadPartResult extends SSEResultBase implements java.io.Serializable, S3RequesterChargedResult
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
eTag
The entity tag generated from the content of the upload part
|
private boolean |
isRequesterCharged
Indicate if the requester is charged for conducting this operation from
Requester Pays Buckets.
|
private int |
partNumber
The part number of the newly uploaded part
|
Constructor and Description |
---|
UploadPartResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.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
private int partNumber
private java.lang.String eTag
private boolean isRequesterCharged
public int getPartNumber()
public void setPartNumber(int partNumber)
partNumber
- the part number of the newly uploaded part.public java.lang.String getETag()
public void setETag(java.lang.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.