@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the inputs for the DescribeSnapshots operation.
NOOP
Constructor and Description |
---|
DescribeSnapshotsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDirectoryId()
The identifier of the directory for which to retrieve snapshot information.
|
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 for which to retrieve snapshot information.
|
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 for which to retrieve snapshot information.
|
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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDirectoryId(String directoryId)
The identifier of the directory for which to retrieve snapshot information.
directoryId
- The identifier of the directory for which to retrieve snapshot information.public String getDirectoryId()
The identifier of the directory for which to retrieve snapshot information.
public DescribeSnapshotsRequest withDirectoryId(String directoryId)
The identifier of the directory for which to retrieve snapshot information.
directoryId
- The identifier of the directory for which to retrieve snapshot information.public List<String> getSnapshotIds()
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 void setSnapshotIds(Collection<String> 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.
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)
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.
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.
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)
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.
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 void setNextToken(String nextToken)
The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.
nextToken
- The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass
null if this is the first call.public String getNextToken()
The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.
public DescribeSnapshotsRequest withNextToken(String nextToken)
The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.
nextToken
- The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass
null if this is the first call.public void setLimit(Integer limit)
The maximum number of objects to return.
limit
- The maximum number of objects to return.public Integer getLimit()
The maximum number of objects to return.
public DescribeSnapshotsRequest withLimit(Integer limit)
The maximum number of objects to return.
limit
- The maximum number of objects to return.public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.