@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.
|
Boolean |
getIncludeShared()
Set to
false (default) if you want to only see the snapshots owned by your Amazon Web Services
account. |
Integer |
getMaxResults() |
String |
getNextToken() |
List<String> |
getSnapshotIds()
The IDs of the snapshots that you want to retrieve.
|
int |
hashCode() |
Boolean |
isIncludeShared()
Set to
false (default) if you want to only see the snapshots owned by your Amazon Web Services
account. |
void |
setFilters(Collection<SnapshotFilter> filters)
The filters structure.
|
void |
setIncludeShared(Boolean includeShared)
Set to
false (default) if you want to only see the snapshots owned by your Amazon Web Services
account. |
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 |
withIncludeShared(Boolean includeShared)
Set to
false (default) if you want to only see the snapshots owned by your Amazon Web Services
account. |
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 void setIncludeShared(Boolean includeShared)
Set to false
(default) if you want to only see the snapshots owned by your Amazon Web Services
account. Set to true
if you want to see the snapshots in your account and the ones shared with you
from another account.
includeShared
- Set to false
(default) if you want to only see the snapshots owned by your Amazon Web
Services account. Set to true
if you want to see the snapshots in your account and the ones
shared with you from another account.public Boolean getIncludeShared()
Set to false
(default) if you want to only see the snapshots owned by your Amazon Web Services
account. Set to true
if you want to see the snapshots in your account and the ones shared with you
from another account.
false
(default) if you want to only see the snapshots owned by your Amazon Web
Services account. Set to true
if you want to see the snapshots in your account and the ones
shared with you from another account.public DescribeSnapshotsRequest withIncludeShared(Boolean includeShared)
Set to false
(default) if you want to only see the snapshots owned by your Amazon Web Services
account. Set to true
if you want to see the snapshots in your account and the ones shared with you
from another account.
includeShared
- Set to false
(default) if you want to only see the snapshots owned by your Amazon Web
Services account. Set to true
if you want to see the snapshots in your account and the ones
shared with you from another account.public Boolean isIncludeShared()
Set to false
(default) if you want to only see the snapshots owned by your Amazon Web Services
account. Set to true
if you want to see the snapshots in your account and the ones shared with you
from another account.
false
(default) if you want to only see the snapshots owned by your Amazon Web
Services account. Set to true
if you want to see the snapshots in your account and the ones
shared with you from another account.public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()