Class ListPartsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.s3.model.ListPartsRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class ListPartsRequest extends AmazonWebServiceRequest implements Serializable
Container for the the parameters of the ListParts operation.Required Parameters: BucketName, Key, UploadId
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ListPartsRequest(String bucketName, String key, String uploadId)Constructs a new ListPartsRequest from the required parameters bucket name, key and upload ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBucketName()Returns the name of the bucket containing the multipart upload whose parts are being listed.StringgetEncodingType()Gets the optionalencodingTypeparameter indicating the encoding method to be applied on the response.StringgetKey()Returns the key of the associated multipart upload whose parts are being listed.IntegergetMaxParts()Returns the optional maximum number of parts to be returned in the part listing.IntegergetPartNumberMarker()Returns the optional part number marker indicating where in the results to being listing parts.StringgetUploadId()Returns the ID of the multipart upload whose parts are being listed.booleanisRequesterPays()Returns true if the user has enabled Requester Pays option when conducting this operation from Requester Pays Bucket; else false.voidsetBucketName(String bucketName)Sets the name of the bucket containing the multipart upload whose parts are being listed.voidsetEncodingType(String encodingType)Sets the optionalencodingTypeparameter indicating the encoding method to be applied on the response.voidsetKey(String key)Sets the key of the associated multipart upload whose parts are being listed.voidsetMaxParts(int maxParts)Sets the optional maximum number of parts to be returned in the part listing.voidsetPartNumberMarker(Integer partNumberMarker)Sets the optional part number marker indicating where in the results to being listing parts.voidsetRequesterPays(boolean isRequesterPays)Used for conducting this operation from a Requester Pays Bucket.voidsetUploadId(String uploadId)Sets the ID of the multipart upload whose parts are being listed.ListPartsRequestwithBucketName(String bucketName)Sets the BucketName property for this request.ListPartsRequestwithEncodingType(String encodingType)Sets the optionalencodingTypeparameter indicating the encoding method to be applied on the response.ListPartsRequestwithKey(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.ListPartsRequestwithMaxParts(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.ListPartsRequestwithPartNumberMarker(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.ListPartsRequestwithRequesterPays(boolean isRequesterPays)Used for conducting this operation from a Requester Pays Bucket.ListPartsRequestwithUploadId(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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
ListPartsRequest
public ListPartsRequest(String bucketName, String key, String uploadId)
Constructs a new ListPartsRequest from the required parameters bucket name, key and upload ID.- Parameters:
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.
-
-
Method Detail
-
getBucketName
public String getBucketName()
Returns the name of the bucket containing the multipart upload whose parts are being listed.- Returns:
- The name of the bucket containing the multipart upload whose parts are being listed.
-
setBucketName
public void setBucketName(String bucketName)
Sets the name of the bucket containing the multipart upload whose parts are being listed.- Parameters:
bucketName- The name of the bucket containing the multipart upload whose parts are being listed.
-
withBucketName
public ListPartsRequest withBucketName(String bucketName)
Sets the BucketName property for this request.- Parameters:
bucketName- The value that BucketName is set to- Returns:
- the request with the BucketName set
-
getKey
public String getKey()
Returns the key of the associated multipart upload whose parts are being listed.- Returns:
- The key of the associated multipart upload whose parts are being listed.
-
setKey
public void setKey(String key)
Sets the key of the associated multipart upload whose parts are being listed.- Parameters:
key- The key of the associated multipart upload whose parts are being listed.
-
withKey
public ListPartsRequest withKey(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.- Parameters:
key- The key of the associated multipart upload whose parts are being listed.- Returns:
- This updated ListPartsRequest object.
-
getUploadId
public String getUploadId()
Returns the ID of the multipart upload whose parts are being listed.- Returns:
- The ID of the multipart upload whose parts are being listed.
-
setUploadId
public void setUploadId(String uploadId)
Sets the ID of the multipart upload whose parts are being listed.- Parameters:
uploadId- The ID of the multipart upload whose parts are being listed.
-
withUploadId
public ListPartsRequest withUploadId(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.- Parameters:
uploadId- The ID of the multipart upload whose parts are being listed.- Returns:
- This updated ListPartsRequest object.
-
getMaxParts
public Integer getMaxParts()
Returns the optional maximum number of parts to be returned in the part listing.- Returns:
- The optional maximum number of parts to be returned in the part listing.
-
setMaxParts
public void setMaxParts(int maxParts)
Sets the optional maximum number of parts to be returned in the part listing.- Parameters:
maxParts- The optional maximum number of parts to be returned in the part listing.
-
withMaxParts
public 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.- Parameters:
maxParts- The optional maximum number of parts to be returned in the part listing.- Returns:
- This updated ListPartsRequest object.
-
getPartNumberMarker
public Integer getPartNumberMarker()
Returns the optional part number marker indicating where in the results to being listing parts.- Returns:
- The optional part number marker indicating where in the results to being listing parts.
-
setPartNumberMarker
public void setPartNumberMarker(Integer partNumberMarker)
Sets the optional part number marker indicating where in the results to being listing parts.- Parameters:
partNumberMarker- The optional part number marker indicating where in the results to being listing parts.
-
withPartNumberMarker
public ListPartsRequest withPartNumberMarker(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.- Parameters:
partNumberMarker- The optional part number marker indicating where in the results to being listing parts.- Returns:
- This updated ListPartsRequest object.
-
getEncodingType
public String getEncodingType()
Gets the optionalencodingTypeparameter indicating the encoding method to be applied on the response.- Returns:
- The encoding method to be applied on the response.
-
setEncodingType
public void setEncodingType(String encodingType)
Sets the optionalencodingTypeparameter 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.- Parameters:
encodingType- The encoding method to be applied on the response. Valid values: null (not encoded) or "url".
-
withEncodingType
public ListPartsRequest withEncodingType(String encodingType)
Sets the optionalencodingTypeparameter 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 thisListPartsRequest, enabling additional method calls to be chained together.- Parameters:
encodingType- The encoding method to be applied on the response. Valid values: null (not encoded) or "url".
-
isRequesterPays
public boolean isRequesterPays()
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 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
- Returns:
- true if the user has enabled Requester Pays option for conducting this operation from Requester Pays Bucket.
-
setRequesterPays
public void setRequesterPays(boolean isRequesterPays)
Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for requests from the bucket.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.
- Parameters:
isRequesterPays- Enable Requester Pays option for the operation.
-
withRequesterPays
public ListPartsRequest withRequesterPays(boolean isRequesterPays)
Used for conducting this operation from a Requester Pays Bucket. If set the requester is charged for requests from the bucket. It returns this updated ListPartsRequest object so that additional method calls can be chained together.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.
- Parameters:
isRequesterPays- Enable Requester Pays option for the operation.- Returns:
- The updated ListPartsRequest object.
-
-