public class ListPartsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 .
NOOP
Constructor and Description |
---|
ListPartsRequest()
Default constructor for a new ListPartsRequest object.
|
ListPartsRequest(String vaultName,
String uploadId)
Constructs a new ListPartsRequest object.
|
ListPartsRequest(String accountId,
String vaultName,
String uploadId)
Constructs a new ListPartsRequest object.
|
Modifier and Type | Method and Description |
---|---|
ListPartsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAccountId()
The
AccountId value is the AWS account ID of the account
that owns the vault. |
String |
getLimit()
Specifies the maximum number of parts returned in the response body.
|
String |
getMarker()
An opaque string used for pagination.
|
String |
getUploadId()
The upload ID of the multipart upload.
|
String |
getVaultName()
The name of the vault.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The
AccountId value is the AWS account ID of the account
that owns the vault. |
void |
setLimit(String limit)
Specifies the maximum number of parts returned in the response body.
|
void |
setMarker(String marker)
An opaque string used for pagination.
|
void |
setUploadId(String uploadId)
The upload ID of the multipart upload.
|
void |
setVaultName(String vaultName)
The name of the vault.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListPartsRequest |
withAccountId(String accountId)
The
AccountId value is the AWS account ID of the account
that owns the vault. |
ListPartsRequest |
withLimit(String limit)
Specifies the maximum number of parts returned in the response body.
|
ListPartsRequest |
withMarker(String marker)
An opaque string used for pagination.
|
ListPartsRequest |
withUploadId(String uploadId)
The upload ID of the multipart upload.
|
ListPartsRequest |
withVaultName(String vaultName)
The name of the vault.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ListPartsRequest()
public ListPartsRequest(String vaultName, String uploadId)
vaultName
- The name of the vault.uploadId
- The upload ID of the multipart upload.public ListPartsRequest(String accountId, String vaultName, String uploadId)
accountId
- The AccountId
value is the AWS account
ID of the account that owns the vault. You can either specify an AWS
account ID or optionally a single '-
' (hyphen), in which
case Amazon Glacier uses the AWS account ID associated with the
credentials used to sign the request. If you use an account ID, do not
include any hyphens ('-') in the ID.vaultName
- The name of the vault.uploadId
- The upload ID of the multipart upload.public String getAccountId()
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public void setAccountId(String accountId)
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.accountId
- The AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public ListPartsRequest withAccountId(String accountId)
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.
Returns a reference to this object so that method calls can be chained together.
accountId
- The AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public String getVaultName()
public void setVaultName(String vaultName)
vaultName
- The name of the vault.public ListPartsRequest withVaultName(String vaultName)
Returns a reference to this object so that method calls can be chained together.
vaultName
- The name of the vault.public String getUploadId()
public void setUploadId(String uploadId)
uploadId
- The upload ID of the multipart upload.public ListPartsRequest withUploadId(String uploadId)
Returns a reference to this object so that method calls can be chained together.
uploadId
- The upload ID of the multipart upload.public String getMarker()
public void setMarker(String marker)
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.public ListPartsRequest withMarker(String marker)
Returns a reference to this object so that method calls can be chained together.
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.public String getLimit()
public void setLimit(String limit)
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.public ListPartsRequest withLimit(String limit)
Returns a reference to this object so that method calls can be chained together.
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.public String toString()
toString
in class Object
Object.toString()
public ListPartsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.