public class DescribeSnapshotsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeSnapshots operation.
Obtains information about the directory snapshots that belong to this account.
This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.
You can also specify a maximum number of return results with the Limit parameter.
NOOP| Constructor and Description |
|---|
DescribeSnapshotsRequest() |
| Modifier and Type | Method and Description |
|---|---|
DescribeSnapshotsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDirectoryId()
The identifier of the directory to retrieve snapshot information for.
|
Integer |
getLimit()
The maximum number of objects to return.
|
String |
getNextToken()
The DescribeSnapshotsResult.NextToken value from a previous
call to DescribeSnapshots.
|
List<String> |
getSnapshotIds()
A list of identifiers of the snapshots to obtain the information for.
|
int |
hashCode() |
void |
setDirectoryId(String directoryId)
The identifier of the directory to retrieve snapshot information for.
|
void |
setLimit(Integer limit)
The maximum number of objects to return.
|
void |
setNextToken(String nextToken)
The DescribeSnapshotsResult.NextToken value from a previous
call to DescribeSnapshots.
|
void |
setSnapshotIds(Collection<String> snapshotIds)
A list of identifiers of the snapshots to obtain the information for.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotsRequest |
withDirectoryId(String directoryId)
The identifier of the directory to retrieve snapshot information for.
|
DescribeSnapshotsRequest |
withLimit(Integer limit)
The maximum number of objects to return.
|
DescribeSnapshotsRequest |
withNextToken(String nextToken)
The DescribeSnapshotsResult.NextToken value from a previous
call to DescribeSnapshots.
|
DescribeSnapshotsRequest |
withSnapshotIds(Collection<String> snapshotIds)
A list of identifiers of the snapshots to obtain the information for.
|
DescribeSnapshotsRequest |
withSnapshotIds(String... snapshotIds)
A list of identifiers of the snapshots to obtain the information for.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getDirectoryId()
Constraints:
Pattern: ^d-[0-9a-f]{10}$
public void setDirectoryId(String directoryId)
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The identifier of the directory to retrieve snapshot information for.public DescribeSnapshotsRequest withDirectoryId(String directoryId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The identifier of the directory to retrieve snapshot information for.public List<String> getSnapshotIds()
public void setSnapshotIds(Collection<String> snapshotIds)
snapshotIds - A list of identifiers of the snapshots to obtain the information for.
If this member is null or empty, all snapshots are returned using the
Limit and NextToken members.public DescribeSnapshotsRequest withSnapshotIds(String... snapshotIds)
NOTE: This method appends the values to the existing list (if
any). Use setSnapshotIds(java.util.Collection) or withSnapshotIds(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
snapshotIds - A list of identifiers of the snapshots to obtain the information for.
If this member is null or empty, all snapshots are returned using the
Limit and NextToken members.public DescribeSnapshotsRequest withSnapshotIds(Collection<String> snapshotIds)
Returns a reference to this object so that method calls can be chained together.
snapshotIds - A list of identifiers of the snapshots to obtain the information for.
If this member is null or empty, all snapshots are returned using the
Limit and NextToken members.public String getNextToken()
public void setNextToken(String nextToken)
nextToken - The DescribeSnapshotsResult.NextToken value from a previous
call to DescribeSnapshots. Pass null if this is the first call.public DescribeSnapshotsRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken - The DescribeSnapshotsResult.NextToken value from a previous
call to DescribeSnapshots. Pass null if this is the first call.public Integer getLimit()
Constraints:
Range: 0 -
public void setLimit(Integer limit)
Constraints:
Range: 0 -
limit - The maximum number of objects to return.public DescribeSnapshotsRequest withLimit(Integer limit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
limit - The maximum number of objects to return.public String toString()
toString in class ObjectObject.toString()public DescribeSnapshotsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.