public class ListPartsRequest extends AmazonWebServiceRequest
Required Parameters: BucketName, Key, UploadId
AmazonS3.listParts(ListPartsRequest)
Constructor and Description |
---|
ListPartsRequest(java.lang.String bucketName,
java.lang.String key,
java.lang.String uploadId)
Constructs a new ListPartsRequest from the required parameters bucket
name, key and upload ID.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Returns the name of the bucket containing the multipart upload whose
parts are being listed.
|
java.lang.String |
getEncodingType()
Gets the optional
encodingType parameter indicating the
encoding method to be applied on the response. |
java.lang.String |
getKey()
Returns the key of the associated multipart upload whose parts are being
listed.
|
java.lang.Integer |
getMaxParts()
Returns the optional maximum number of parts to be returned in the part
listing.
|
java.lang.Integer |
getPartNumberMarker()
Returns the optional part number marker indicating where in the results
to being listing parts.
|
java.lang.String |
getUploadId()
Returns the ID of the multipart upload whose parts are being listed.
|
boolean |
isRequesterPays()
Returns true if the user has enabled Requester Pays option when
conducting this operation from Requester Pays Bucket; else false.
|
void |
setBucketName(java.lang.String bucketName)
Sets the name of the bucket containing the multipart upload whose parts
are being listed.
|
void |
setEncodingType(java.lang.String encodingType)
Sets the optional
encodingType parameter indicating the
encoding method to be applied on the response. |
void |
setKey(java.lang.String key)
Sets the key of the associated multipart upload whose parts are being
listed.
|
void |
setMaxParts(int maxParts)
Sets the optional maximum number of parts to be returned in the part
listing.
|
void |
setPartNumberMarker(java.lang.Integer partNumberMarker)
Sets the optional part number marker indicating where in the results to
being listing parts.
|
void |
setRequesterPays(boolean isRequesterPays)
Used for conducting this operation from a Requester Pays Bucket.
|
void |
setUploadId(java.lang.String uploadId)
Sets the ID of the multipart upload whose parts are being listed.
|
ListPartsRequest |
withBucketName(java.lang.String bucketName)
Sets the BucketName property for this request.
|
ListPartsRequest |
withEncodingType(java.lang.String encodingType)
Sets the optional
encodingType parameter indicating the
encoding method to be applied on the response. |
ListPartsRequest |
withKey(java.lang.String key)
Sets the key of the associated multipart upload whose parts are being
listed, and returns this updated ListPartsRequest object so that
additional method calls can be chained together.
|
ListPartsRequest |
withMaxParts(int maxParts)
Sets the optional maximum number of parts to be returned in the part
listing and returns this updated ListPartsRequest objects so that
additional method calls can be chained together.
|
ListPartsRequest |
withPartNumberMarker(java.lang.Integer partNumberMarker)
Sets the optional part number marker indicating where in the results to
being listing parts, and returns this updated ListPartsRequest object so
that additional method calls can be chained together.
|
ListPartsRequest |
withRequesterPays(boolean isRequesterPays)
Used for conducting this operation from a Requester Pays Bucket.
|
ListPartsRequest |
withUploadId(java.lang.String uploadId)
Sets the ID of the multipart upload whose parts are being listed, and
returns this updated ListPartsRequest object so that additional method
calls can be chained together.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ListPartsRequest(java.lang.String bucketName, java.lang.String key, java.lang.String uploadId)
bucketName
- The name of the bucket containing the parts to list.key
- The key of the associated multipart upload whose parts are
being listed.uploadId
- The ID of the multipart upload whose parts are being
listed.public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket containing the multipart upload
whose parts are being listed.public ListPartsRequest withBucketName(java.lang.String bucketName)
bucketName
- The value that BucketName is set topublic java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key of the associated multipart upload whose parts are
being listed.public ListPartsRequest withKey(java.lang.String key)
key
- The key of the associated multipart upload whose parts are
being listed.public java.lang.String getUploadId()
public void setUploadId(java.lang.String uploadId)
uploadId
- The ID of the multipart upload whose parts are being
listed.public ListPartsRequest withUploadId(java.lang.String uploadId)
uploadId
- The ID of the multipart upload whose parts are being
listed.public java.lang.Integer getMaxParts()
public void setMaxParts(int maxParts)
maxParts
- The optional maximum number of parts to be returned in
the part listing.public ListPartsRequest withMaxParts(int maxParts)
maxParts
- The optional maximum number of parts to be returned in
the part listing.public java.lang.Integer getPartNumberMarker()
public void setPartNumberMarker(java.lang.Integer partNumberMarker)
partNumberMarker
- The optional part number marker indicating where
in the results to being listing parts.public ListPartsRequest withPartNumberMarker(java.lang.Integer partNumberMarker)
partNumberMarker
- The optional part number marker indicating where
in the results to being listing parts.public java.lang.String getEncodingType()
encodingType
parameter indicating the
encoding method to be applied on the response.public void setEncodingType(java.lang.String encodingType)
encodingType
parameter indicating the
encoding method to be applied on the response. An object key can contain
any Unicode character; however, XML 1.0 parser cannot parse some
characters, such as characters with an ASCII value from 0 to 10. For
characters that are not supported in XML 1.0, you can add this parameter
to request that Amazon S3 encode the keys in the response.encodingType
- The encoding method to be applied on the response.
Valid values: null (not encoded) or "url".public ListPartsRequest withEncodingType(java.lang.String encodingType)
encodingType
parameter indicating the
encoding method to be applied on the response. An object key can contain
any Unicode character; however, XML 1.0 parser cannot parse some
characters, such as characters with an ASCII value from 0 to 10. For
characters that are not supported in XML 1.0, you can add this parameter
to request that Amazon S3 encode the keys in the response. Returns this
ListPartsRequest
, enabling additional method calls to be chained
together.encodingType
- The encoding method to be applied on the response.
Valid values: null (not encoded) or "url".public boolean isRequesterPays()
If a bucket is enabled for Requester Pays, then any attempt to upload or download an object 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
public void setRequesterPays(boolean isRequesterPays)
If a bucket is enabled for Requester Pays, then any attempt to upload or download an object 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.
isRequesterPays
- Enable Requester Pays option for the operation.public ListPartsRequest withRequesterPays(boolean isRequesterPays)
If a bucket is enabled for Requester Pays, then any attempt to upload or download an object 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.
isRequesterPays
- Enable Requester Pays option for the operation.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.