|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.DescribeSnapshotsRequest
public class DescribeSnapshotsRequest
Container for the parameters to the 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.
AmazonEC2.describeSnapshots(DescribeSnapshotsRequest)
,
Serialized FormConstructor Summary | |
---|---|
DescribeSnapshotsRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<Filter> |
getFilters()
A list of filters used to match properties for Snapshots. |
java.util.List<java.lang.String> |
getOwnerIds()
An optional list of owners by which to scope the described EBS snapshots. |
java.util.List<java.lang.String> |
getRestorableByUserIds()
An optional list of users. |
java.util.List<java.lang.String> |
getSnapshotIds()
The optional list of EBS snapshot IDs to describe. |
int |
hashCode()
|
void |
setFilters(java.util.Collection<Filter> filters)
A list of filters used to match properties for Snapshots. |
void |
setOwnerIds(java.util.Collection<java.lang.String> ownerIds)
An optional list of owners by which to scope the described EBS snapshots. |
void |
setRestorableByUserIds(java.util.Collection<java.lang.String> restorableByUserIds)
An optional list of users. |
void |
setSnapshotIds(java.util.Collection<java.lang.String> snapshotIds)
The optional list of EBS snapshot IDs to describe. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DescribeSnapshotsRequest |
withFilters(java.util.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(java.util.Collection<java.lang.String> ownerIds)
An optional list of owners by which to scope the described EBS snapshots. |
DescribeSnapshotsRequest |
withOwnerIds(java.lang.String... ownerIds)
An optional list of owners by which to scope the described EBS snapshots. |
DescribeSnapshotsRequest |
withRestorableByUserIds(java.util.Collection<java.lang.String> restorableByUserIds)
An optional list of users. |
DescribeSnapshotsRequest |
withRestorableByUserIds(java.lang.String... restorableByUserIds)
An optional list of users. |
DescribeSnapshotsRequest |
withSnapshotIds(java.util.Collection<java.lang.String> snapshotIds)
The optional list of EBS snapshot IDs to describe. |
DescribeSnapshotsRequest |
withSnapshotIds(java.lang.String... snapshotIds)
The optional list of EBS snapshot IDs to describe. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DescribeSnapshotsRequest()
Method Detail |
---|
public java.util.List<java.lang.String> getSnapshotIds()
public void setSnapshotIds(java.util.Collection<java.lang.String> snapshotIds)
snapshotIds
- The optional list of EBS snapshot IDs to describe.public DescribeSnapshotsRequest withSnapshotIds(java.lang.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(java.util.Collection<java.lang.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 java.util.List<java.lang.String> getOwnerIds()
self
: Snapshots owned
by you AWS account ID : Snapshots owned by this account ID
amazon
: Snapshots owned by Amazon The values
self
and amazon
are literals.
self
: Snapshots owned
by you AWS account ID : Snapshots owned by this account ID
amazon
: Snapshots owned by Amazon The values
self
and amazon
are literals.
public void setOwnerIds(java.util.Collection<java.lang.String> ownerIds)
self
: Snapshots owned
by you AWS account ID : Snapshots owned by this account ID
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 AWS account ID : Snapshots owned by this account ID
amazon
: Snapshots owned by Amazon The values
self
and amazon
are literals.
public DescribeSnapshotsRequest withOwnerIds(java.lang.String... ownerIds)
self
: Snapshots owned
by you AWS account ID : Snapshots owned by this account ID
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 AWS account ID : Snapshots owned by this account ID
amazon
: Snapshots owned by Amazon The values
self
and amazon
are literals.
public DescribeSnapshotsRequest withOwnerIds(java.util.Collection<java.lang.String> ownerIds)
self
: Snapshots owned
by you AWS account ID : Snapshots owned by this account ID
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 AWS account ID : Snapshots owned by this account ID
amazon
: Snapshots owned by Amazon The values
self
and amazon
are literals.
public java.util.List<java.lang.String> getRestorableByUserIds()
public void setRestorableByUserIds(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.util.List<Filter> getFilters()
public void setFilters(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |