public class DescribeSnapshotsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeSnapshotsRequest>
DescribeSnapshots operation
.
Returns information about the Amazon EBS snapshots available to you. Snapshots available to you include public snapshots available for any AWS account to launch, private snapshots you own, and private snapshots owned by another AWS account but for which you've been given explicit create volume permissions.
Constructor and Description |
---|
DescribeSnapshotsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DescribeSnapshotsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
A list of filters used to match properties for Snapshots.
|
List<String> |
getOwnerIds()
An optional list of owners by which to scope the described EBS
snapshots.
|
List<String> |
getRestorableByUserIds()
An optional list of users.
|
List<String> |
getSnapshotIds()
The optional list of EBS snapshot IDs to describe.
|
int |
hashCode() |
void |
setFilters(Collection<Filter> filters)
A list of filters used to match properties for Snapshots.
|
void |
setOwnerIds(Collection<String> ownerIds)
An optional list of owners by which to scope the described EBS
snapshots.
|
void |
setRestorableByUserIds(Collection<String> restorableByUserIds)
An optional list of users.
|
void |
setSnapshotIds(Collection<String> snapshotIds)
The optional list of EBS snapshot IDs to describe.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotsRequest |
withFilters(Collection<Filter> filters)
A list of filters used to match properties for Snapshots.
|
DescribeSnapshotsRequest |
withFilters(Filter... filters)
A list of filters used to match properties for Snapshots.
|
DescribeSnapshotsRequest |
withOwnerIds(Collection<String> ownerIds)
An optional list of owners by which to scope the described EBS
snapshots.
|
DescribeSnapshotsRequest |
withOwnerIds(String... ownerIds)
An optional list of owners by which to scope the described EBS
snapshots.
|
DescribeSnapshotsRequest |
withRestorableByUserIds(Collection<String> restorableByUserIds)
An optional list of users.
|
DescribeSnapshotsRequest |
withRestorableByUserIds(String... restorableByUserIds)
An optional list of users.
|
DescribeSnapshotsRequest |
withSnapshotIds(Collection<String> snapshotIds)
The optional list of EBS snapshot IDs to describe.
|
DescribeSnapshotsRequest |
withSnapshotIds(String... snapshotIds)
The optional list of EBS snapshot IDs to describe.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public List<String> getSnapshotIds()
public void setSnapshotIds(Collection<String> snapshotIds)
snapshotIds
- The optional list of EBS snapshot IDs to describe.public DescribeSnapshotsRequest withSnapshotIds(String... snapshotIds)
Returns a reference to this object so that method calls can be chained together.
snapshotIds
- The optional list of EBS snapshot IDs to describe.public DescribeSnapshotsRequest withSnapshotIds(Collection<String> snapshotIds)
Returns a reference to this object so that method calls can be chained together.
snapshotIds
- The optional list of EBS snapshot IDs to describe.public List<String> getOwnerIds()
self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
public void setOwnerIds(Collection<String> ownerIds)
self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
ownerIds
- An optional list of owners by which to scope the described EBS
snapshots. Valid values are: self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
public DescribeSnapshotsRequest withOwnerIds(String... ownerIds)
self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
Returns a reference to this object so that method calls can be chained together.
ownerIds
- An optional list of owners by which to scope the described EBS
snapshots. Valid values are: self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
public DescribeSnapshotsRequest withOwnerIds(Collection<String> ownerIds)
self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
Returns a reference to this object so that method calls can be chained together.
ownerIds
- An optional list of owners by which to scope the described EBS
snapshots. Valid values are: self
: Snapshots
owned by you amazon
: Snapshots owned by
Amazon The values self
and
amazon
are literals.
public List<String> getRestorableByUserIds()
public void setRestorableByUserIds(Collection<String> restorableByUserIds)
restorableByUserIds
- An optional list of users. The described snapshots are scoped to only
those snapshots from which these users can create volumes.public DescribeSnapshotsRequest withRestorableByUserIds(String... restorableByUserIds)
Returns a reference to this object so that method calls can be chained together.
restorableByUserIds
- An optional list of users. The described snapshots are scoped to only
those snapshots from which these users can create volumes.public DescribeSnapshotsRequest withRestorableByUserIds(Collection<String> restorableByUserIds)
Returns a reference to this object so that method calls can be chained together.
restorableByUserIds
- An optional list of users. The described snapshots are scoped to only
those snapshots from which these users can create volumes.public List<Filter> getFilters()
public void setFilters(Collection<Filter> filters)
filters
- A list of filters used to match properties for Snapshots. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public DescribeSnapshotsRequest withFilters(Filter... filters)
Returns a reference to this object so that method calls can be chained together.
filters
- A list of filters used to match properties for Snapshots. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public DescribeSnapshotsRequest withFilters(Collection<Filter> filters)
Returns a reference to this object so that method calls can be chained together.
filters
- A list of filters used to match properties for Snapshots. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public Request<DescribeSnapshotsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeSnapshotsRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.