public class UploadPartResult
extends com.amazonaws.services.s3.internal.SSEResultBase
implements com.amazonaws.services.s3.internal.S3RequesterChargedResult
| 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.
|
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()
com.amazonaws.services.s3.internal.S3RequesterChargedResultIf 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 com.amazonaws.services.s3.internal.S3RequesterChargedResultpublic void setRequesterCharged(boolean isRequesterCharged)
com.amazonaws.services.s3.internal.S3RequesterChargedResultIf 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 com.amazonaws.services.s3.internal.S3RequesterChargedResultisRequesterCharged - Indicates requester is charged for this
operation.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.