Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.glacier.model
Class ListPartsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.glacier.model.ListPartsRequest
All Implemented Interfaces:
java.io.Serializable

public class ListPartsRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the ListParts operation.

This operation lists the parts of an archive that have been uploaded in a specific multipart upload. You can make this request at any time during an in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. List Parts returns an error for completed uploads. The list returned in the List Parts response is sorted by part range.

The List Parts operation supports pagination. By default, this operation returns up to 1,000 uploaded parts in the response. You should always check the response for a marker at which to continue the list; if there are no more items the marker is null . To return a list of parts that begins at a specific part, set the marker request parameter to the value you obtained from a previous List Parts request. You can also limit the number of parts returned in the response by specifying the limit parameter in the request.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .

For conceptual information and the underlying REST API, go to Working with Archives in Amazon Glacier and List Parts in the Amazon Glacier Developer Guide .

See Also:
AmazonGlacier.listParts(ListPartsRequest), Serialized Form

Constructor Summary
ListPartsRequest()
          Default constructor for a new ListPartsRequest object.
ListPartsRequest(java.lang.String vaultName, java.lang.String uploadId)
          Constructs a new ListPartsRequest object.
ListPartsRequest(java.lang.String accountId, java.lang.String vaultName, java.lang.String uploadId)
          Constructs a new ListPartsRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAccountId()
          The AccountId is the AWS Account ID.
 java.lang.String getLimit()
          Specifies the maximum number of parts returned in the response body.
 java.lang.String getMarker()
          An opaque string used for pagination.
 java.lang.String getUploadId()
          The upload ID of the multipart upload.
 java.lang.String getVaultName()
          The name of the vault.
 int hashCode()
           
 void setAccountId(java.lang.String accountId)
          The AccountId is the AWS Account ID.
 void setLimit(java.lang.String limit)
          Specifies the maximum number of parts returned in the response body.
 void setMarker(java.lang.String marker)
          An opaque string used for pagination.
 void setUploadId(java.lang.String uploadId)
          The upload ID of the multipart upload.
 void setVaultName(java.lang.String vaultName)
          The name of the vault.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ListPartsRequest withAccountId(java.lang.String accountId)
          The AccountId is the AWS Account ID.
 ListPartsRequest withLimit(java.lang.String limit)
          Specifies the maximum number of parts returned in the response body.
 ListPartsRequest withMarker(java.lang.String marker)
          An opaque string used for pagination.
 ListPartsRequest withUploadId(java.lang.String uploadId)
          The upload ID of the multipart upload.
 ListPartsRequest withVaultName(java.lang.String vaultName)
          The name of the vault.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListPartsRequest

public ListPartsRequest()
Default constructor for a new ListPartsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


ListPartsRequest

public ListPartsRequest(java.lang.String vaultName,
                        java.lang.String uploadId)
Constructs a new ListPartsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
vaultName - The name of the vault.
uploadId - The upload ID of the multipart upload.

ListPartsRequest

public ListPartsRequest(java.lang.String accountId,
                        java.lang.String vaultName,
                        java.lang.String uploadId)
Constructs a new ListPartsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
accountId - The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
vaultName - The name of the vault.
uploadId - The upload ID of the multipart upload.
Method Detail

getAccountId

public java.lang.String getAccountId()
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

Returns:
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

setAccountId

public void setAccountId(java.lang.String accountId)
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

Parameters:
accountId - The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

withAccountId

public ListPartsRequest withAccountId(java.lang.String accountId)
The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

Returns a reference to this object so that method calls can be chained together.

Parameters:
accountId - The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
Returns:
A reference to this updated object so that method calls can be chained together.

getVaultName

public java.lang.String getVaultName()
The name of the vault.

Returns:
The name of the vault.

setVaultName

public void setVaultName(java.lang.String vaultName)
The name of the vault.

Parameters:
vaultName - The name of the vault.

withVaultName

public ListPartsRequest withVaultName(java.lang.String vaultName)
The name of the vault.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vaultName - The name of the vault.
Returns:
A reference to this updated object so that method calls can be chained together.

getUploadId

public java.lang.String getUploadId()
The upload ID of the multipart upload.

Returns:
The upload ID of the multipart upload.

setUploadId

public void setUploadId(java.lang.String uploadId)
The upload ID of the multipart upload.

Parameters:
uploadId - The upload ID of the multipart upload.

withUploadId

public ListPartsRequest withUploadId(java.lang.String uploadId)
The upload ID of the multipart upload.

Returns a reference to this object so that method calls can be chained together.

Parameters:
uploadId - The upload ID of the multipart upload.
Returns:
A reference to this updated object so that method calls can be chained together.

getMarker

public java.lang.String getMarker()
An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.

Returns:
An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.

setMarker

public void setMarker(java.lang.String marker)
An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.

Parameters:
marker - An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.

withMarker

public ListPartsRequest withMarker(java.lang.String marker)
An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.

Returns a reference to this object so that method calls can be chained together.

Parameters:
marker - An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.
Returns:
A reference to this updated object so that method calls can be chained together.

getLimit

public java.lang.String getLimit()
Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.

Returns:
Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.

setLimit

public void setLimit(java.lang.String limit)
Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.

Parameters:
limit - Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.

withLimit

public ListPartsRequest withLimit(java.lang.String limit)
Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.

Returns a reference to this object so that method calls can be chained together.

Parameters:
limit - Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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