com.amazonaws.services.s3.model
Class ListPartsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.s3.model.ListPartsRequest

public class ListPartsRequest
extends AmazonWebServiceRequest

Container for the the parameters of the ListParts operation.

Required Parameters: BucketName, Key, UploadId

See Also:
AmazonS3.listParts(ListPartsRequest)

Constructor Summary
ListPartsRequest(String bucketName, String key, String uploadId)
          Constructs a new ListPartsRequest from the required parameters bucket name, key and upload ID.
 
Method Summary
 String getBucketName()
          Returns the name of the bucket containing the multipart upload whose parts are being listed.
 String getKey()
          Returns the key of the associated multipart upload whose parts are being listed.
 Integer getMaxParts()
          Returns the optional maximum number of parts to be returned in the part listing.
 Integer getPartNumberMarker()
          Returns the optional part number marker indicating where in the results to being listing parts.
 String getUploadId()
          Returns the ID of the multipart upload whose parts are being listed.
 void setBucketName(String bucketName)
          Sets the name of the bucket containing the multipart upload whose parts are being listed.
 void setKey(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(Integer partNumberMarker)
          Sets the optional part number marker indicating where in the results to being listing parts.
 void setUploadId(String uploadId)
          Sets the ID of the multipart upload whose parts are being listed.
 ListPartsRequest withBucketName(String bucketName)
          Sets the BucketName property for this request.
 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.
 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(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 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.