@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeSnapshotsRequest>
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) |
Request<DescribeSnapshotsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
The filters.
|
Integer |
getMaxResults()
The maximum number of snapshot results returned by
DescribeSnapshots in paginated output. |
String |
getNextToken()
The
NextToken value returned from a previous paginated DescribeSnapshots request where
MaxResults was used and the results exceeded the value of that parameter. |
List<String> |
getOwnerIds()
Scopes the results to snapshots with the specified owners.
|
List<String> |
getRestorableByUserIds()
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
|
List<String> |
getSnapshotIds()
The snapshot IDs.
|
int |
hashCode() |
void |
setFilters(Collection<Filter> filters)
The filters.
|
void |
setMaxResults(Integer maxResults)
The maximum number of snapshot results returned by
DescribeSnapshots in paginated output. |
void |
setNextToken(String nextToken)
The
NextToken value returned from a previous paginated DescribeSnapshots request where
MaxResults was used and the results exceeded the value of that parameter. |
void |
setOwnerIds(Collection<String> ownerIds)
Scopes the results to snapshots with the specified owners.
|
void |
setRestorableByUserIds(Collection<String> restorableByUserIds)
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
|
void |
setSnapshotIds(Collection<String> snapshotIds)
The snapshot IDs.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSnapshotsRequest |
withFilters(Collection<Filter> filters)
The filters.
|
DescribeSnapshotsRequest |
withFilters(Filter... filters)
The filters.
|
DescribeSnapshotsRequest |
withMaxResults(Integer maxResults)
The maximum number of snapshot results returned by
DescribeSnapshots in paginated output. |
DescribeSnapshotsRequest |
withNextToken(String nextToken)
The
NextToken value returned from a previous paginated DescribeSnapshots request where
MaxResults was used and the results exceeded the value of that parameter. |
DescribeSnapshotsRequest |
withOwnerIds(Collection<String> ownerIds)
Scopes the results to snapshots with the specified owners.
|
DescribeSnapshotsRequest |
withOwnerIds(String... ownerIds)
Scopes the results to snapshots with the specified owners.
|
DescribeSnapshotsRequest |
withRestorableByUserIds(Collection<String> restorableByUserIds)
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
|
DescribeSnapshotsRequest |
withRestorableByUserIds(String... restorableByUserIds)
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
|
DescribeSnapshotsRequest |
withSnapshotIds(Collection<String> snapshotIds)
The snapshot IDs.
|
DescribeSnapshotsRequest |
withSnapshotIds(String... snapshotIds)
The snapshot IDs.
|
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<Filter> getFilters()
The filters.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
| false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is not the
user-configured Amazon Web Services account alias set using the IAM console. We recommend that you use the
related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the related
parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
| standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
|
false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is
not the user-configured Amazon Web Services account alias set using the IAM console. We recommend that
you use the related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the
related parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
|
standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that
have a tag with the key Owner
and the value TeamA
, specify
tag:Owner
for the filter name and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
public void setFilters(Collection<Filter> filters)
The filters.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
| false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is not the
user-configured Amazon Web Services account alias set using the IAM console. We recommend that you use the
related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the related
parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
| standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
filters
- The filters.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
|
false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is
not the user-configured Amazon Web Services account alias set using the IAM console. We recommend that you
use the related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the
related parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
| standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that have
a tag with the key Owner
and the value TeamA
, specify tag:Owner
for
the filter name and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
public DescribeSnapshotsRequest withFilters(Filter... filters)
The filters.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
| false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is not the
user-configured Amazon Web Services account alias set using the IAM console. We recommend that you use the
related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the related
parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
| standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
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.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
|
false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is
not the user-configured Amazon Web Services account alias set using the IAM console. We recommend that you
use the related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the
related parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
| standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that have
a tag with the key Owner
and the value TeamA
, specify tag:Owner
for
the filter name and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
public DescribeSnapshotsRequest withFilters(Collection<Filter> filters)
The filters.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
| false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is not the
user-configured Amazon Web Services account alias set using the IAM console. We recommend that you use the
related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the related
parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
| standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in
the filter name and the tag value as the filter value. For example, to find all resources that have a tag with
the key Owner
and the value TeamA
, specify tag:Owner
for the filter name
and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned
a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
filters
- The filters.
description
- A description of the snapshot.
encrypted
- Indicates whether the snapshot is encrypted (true
|
false
)
owner-alias
- The owner alias, from an Amazon-maintained list (amazon
). This is
not the user-configured Amazon Web Services account alias set using the IAM console. We recommend that you
use the related parameter instead of this filter.
owner-id
- The Amazon Web Services account ID of the owner. We recommend that you use the
related parameter instead of this filter.
progress
- The progress of the snapshot, as a percentage (for example, 80%).
snapshot-id
- The snapshot ID.
start-time
- The time stamp when the snapshot was initiated.
status
- The status of the snapshot (pending
| completed
|
error
).
storage-tier
- The storage tier of the snapshot (archive
| standard
).
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag
key in the filter name and the tag value as the filter value. For example, to find all resources that have
a tag with the key Owner
and the value TeamA
, specify tag:Owner
for
the filter name and TeamA
for the filter value.
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources
assigned a tag with a specific key, regardless of the tag value.
volume-id
- The ID of the volume the snapshot is for.
volume-size
- The size of the volume, in GiB.
public void setMaxResults(Integer maxResults)
The maximum number of snapshot results returned by DescribeSnapshots
in paginated output. When this
parameter is used, DescribeSnapshots
only returns MaxResults
results in a single page
along with a NextToken
response element. The remaining results of the initial request can be seen by
sending another DescribeSnapshots
request with the returned NextToken
value. This value
can be between 5 and 1,000; if MaxResults
is given a value larger than 1,000, only 1,000 results are
returned. If this parameter is not used, then DescribeSnapshots
returns all results. You cannot
specify this parameter and the snapshot IDs parameter in the same request.
maxResults
- The maximum number of snapshot results returned by DescribeSnapshots
in paginated output.
When this parameter is used, DescribeSnapshots
only returns MaxResults
results
in a single page along with a NextToken
response element. The remaining results of the
initial request can be seen by sending another DescribeSnapshots
request with the returned
NextToken
value. This value can be between 5 and 1,000; if MaxResults
is given a
value larger than 1,000, only 1,000 results are returned. If this parameter is not used, then
DescribeSnapshots
returns all results. You cannot specify this parameter and the snapshot IDs
parameter in the same request.public Integer getMaxResults()
The maximum number of snapshot results returned by DescribeSnapshots
in paginated output. When this
parameter is used, DescribeSnapshots
only returns MaxResults
results in a single page
along with a NextToken
response element. The remaining results of the initial request can be seen by
sending another DescribeSnapshots
request with the returned NextToken
value. This value
can be between 5 and 1,000; if MaxResults
is given a value larger than 1,000, only 1,000 results are
returned. If this parameter is not used, then DescribeSnapshots
returns all results. You cannot
specify this parameter and the snapshot IDs parameter in the same request.
DescribeSnapshots
in paginated output.
When this parameter is used, DescribeSnapshots
only returns MaxResults
results
in a single page along with a NextToken
response element. The remaining results of the
initial request can be seen by sending another DescribeSnapshots
request with the returned
NextToken
value. This value can be between 5 and 1,000; if MaxResults
is given
a value larger than 1,000, only 1,000 results are returned. If this parameter is not used, then
DescribeSnapshots
returns all results. You cannot specify this parameter and the snapshot
IDs parameter in the same request.public DescribeSnapshotsRequest withMaxResults(Integer maxResults)
The maximum number of snapshot results returned by DescribeSnapshots
in paginated output. When this
parameter is used, DescribeSnapshots
only returns MaxResults
results in a single page
along with a NextToken
response element. The remaining results of the initial request can be seen by
sending another DescribeSnapshots
request with the returned NextToken
value. This value
can be between 5 and 1,000; if MaxResults
is given a value larger than 1,000, only 1,000 results are
returned. If this parameter is not used, then DescribeSnapshots
returns all results. You cannot
specify this parameter and the snapshot IDs parameter in the same request.
maxResults
- The maximum number of snapshot results returned by DescribeSnapshots
in paginated output.
When this parameter is used, DescribeSnapshots
only returns MaxResults
results
in a single page along with a NextToken
response element. The remaining results of the
initial request can be seen by sending another DescribeSnapshots
request with the returned
NextToken
value. This value can be between 5 and 1,000; if MaxResults
is given a
value larger than 1,000, only 1,000 results are returned. If this parameter is not used, then
DescribeSnapshots
returns all results. You cannot specify this parameter and the snapshot IDs
parameter in the same request.public void setNextToken(String nextToken)
The NextToken
value returned from a previous paginated DescribeSnapshots
request where
MaxResults
was used and the results exceeded the value of that parameter. Pagination continues from
the end of the previous results that returned the NextToken
value. This value is null
when there are no more results to return.
nextToken
- The NextToken
value returned from a previous paginated DescribeSnapshots
request
where MaxResults
was used and the results exceeded the value of that parameter. Pagination
continues from the end of the previous results that returned the NextToken
value. This value
is null
when there are no more results to return.public String getNextToken()
The NextToken
value returned from a previous paginated DescribeSnapshots
request where
MaxResults
was used and the results exceeded the value of that parameter. Pagination continues from
the end of the previous results that returned the NextToken
value. This value is null
when there are no more results to return.
NextToken
value returned from a previous paginated DescribeSnapshots
request where MaxResults
was used and the results exceeded the value of that parameter.
Pagination continues from the end of the previous results that returned the NextToken
value.
This value is null
when there are no more results to return.public DescribeSnapshotsRequest withNextToken(String nextToken)
The NextToken
value returned from a previous paginated DescribeSnapshots
request where
MaxResults
was used and the results exceeded the value of that parameter. Pagination continues from
the end of the previous results that returned the NextToken
value. This value is null
when there are no more results to return.
nextToken
- The NextToken
value returned from a previous paginated DescribeSnapshots
request
where MaxResults
was used and the results exceeded the value of that parameter. Pagination
continues from the end of the previous results that returned the NextToken
value. This value
is null
when there are no more results to return.public List<String> getOwnerIds()
Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web Services
account IDs, self
, and amazon
.
self
, and amazon
.public void setOwnerIds(Collection<String> ownerIds)
Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web Services
account IDs, self
, and amazon
.
ownerIds
- Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web
Services account IDs, self
, and amazon
.public DescribeSnapshotsRequest withOwnerIds(String... ownerIds)
Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web Services
account IDs, self
, and amazon
.
NOTE: This method appends the values to the existing list (if any). Use
setOwnerIds(java.util.Collection)
or withOwnerIds(java.util.Collection)
if you want to override
the existing values.
ownerIds
- Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web
Services account IDs, self
, and amazon
.public DescribeSnapshotsRequest withOwnerIds(Collection<String> ownerIds)
Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web Services
account IDs, self
, and amazon
.
ownerIds
- Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web
Services account IDs, self
, and amazon
.public List<String> getRestorableByUserIds()
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
public void setRestorableByUserIds(Collection<String> restorableByUserIds)
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
restorableByUserIds
- The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.public DescribeSnapshotsRequest withRestorableByUserIds(String... restorableByUserIds)
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
NOTE: This method appends the values to the existing list (if any). Use
setRestorableByUserIds(java.util.Collection)
or withRestorableByUserIds(java.util.Collection)
if you want to override the existing values.
restorableByUserIds
- The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.public DescribeSnapshotsRequest withRestorableByUserIds(Collection<String> restorableByUserIds)
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
restorableByUserIds
- The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.public List<String> getSnapshotIds()
The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
Default: Describes the snapshots for which you have create volume permissions.
public void setSnapshotIds(Collection<String> snapshotIds)
The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
snapshotIds
- The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
public DescribeSnapshotsRequest withSnapshotIds(String... snapshotIds)
The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
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 snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
public DescribeSnapshotsRequest withSnapshotIds(Collection<String> snapshotIds)
The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
snapshotIds
- The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
public Request<DescribeSnapshotsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeSnapshotsRequest>
public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()