@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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) |
List<SnapshotFilter> |
getFilters()
The filters structure.
|
Integer |
getMaxResults() |
String |
getNextToken() |
List<String> |
getSnapshotIds()
The IDs of the snapshots that you want to retrieve.
|
int |
hashCode() |
void |
setFilters(Collection<SnapshotFilter> filters)
The filters structure.
|
void |
setMaxResults(Integer maxResults) |
void |
setNextToken(String nextToken) |
void |
setSnapshotIds(Collection<String> snapshotIds)
The IDs of the snapshots that you want to retrieve.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSnapshotsRequest |
withFilters(Collection<SnapshotFilter> filters)
The filters structure.
|
DescribeSnapshotsRequest |
withFilters(SnapshotFilter... filters)
The filters structure.
|
DescribeSnapshotsRequest |
withMaxResults(Integer maxResults) |
DescribeSnapshotsRequest |
withNextToken(String nextToken) |
DescribeSnapshotsRequest |
withSnapshotIds(Collection<String> snapshotIds)
The IDs of the snapshots that you want to retrieve.
|
DescribeSnapshotsRequest |
withSnapshotIds(String... snapshotIds)
The IDs of the snapshots that you want to retrieve.
|
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 List<String> getSnapshotIds()
The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't
found, a SnapshotNotFound
error occurs.
SnapshotNotFound
error occurs.public void setSnapshotIds(Collection<String> snapshotIds)
The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't
found, a SnapshotNotFound
error occurs.
snapshotIds
- The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs
aren't found, a SnapshotNotFound
error occurs.public DescribeSnapshotsRequest withSnapshotIds(String... snapshotIds)
The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't
found, a SnapshotNotFound
error occurs.
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
- The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs
aren't found, a SnapshotNotFound
error occurs.public DescribeSnapshotsRequest withSnapshotIds(Collection<String> snapshotIds)
The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't
found, a SnapshotNotFound
error occurs.
snapshotIds
- The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs
aren't found, a SnapshotNotFound
error occurs.public List<SnapshotFilter> getFilters()
The filters structure. The supported names are file-system-id
or volume-id
.
file-system-id
or volume-id
.public void setFilters(Collection<SnapshotFilter> filters)
The filters structure. The supported names are file-system-id
or volume-id
.
filters
- The filters structure. The supported names are file-system-id
or volume-id
.public DescribeSnapshotsRequest withFilters(SnapshotFilter... filters)
The filters structure. The supported names are file-system-id
or volume-id
.
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)
or withFilters(java.util.Collection)
if you want to override
the existing values.
filters
- The filters structure. The supported names are file-system-id
or volume-id
.public DescribeSnapshotsRequest withFilters(Collection<SnapshotFilter> filters)
The filters structure. The supported names are file-system-id
or volume-id
.
filters
- The filters structure. The supported names are file-system-id
or volume-id
.public void setMaxResults(Integer maxResults)
maxResults
- public Integer getMaxResults()
public DescribeSnapshotsRequest withMaxResults(Integer maxResults)
maxResults
- public void setNextToken(String nextToken)
nextToken
- public String getNextToken()
public DescribeSnapshotsRequest withNextToken(String nextToken)
nextToken
- public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()