Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class DescribeSnapshotsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DescribeSnapshotsRequest
All Implemented Interfaces:
java.io.Serializable

public class DescribeSnapshotsRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

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.

See Also:
AmazonEC2.describeSnapshots(DescribeSnapshotsRequest), Serialized Form

Constructor 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

DescribeSnapshotsRequest

public DescribeSnapshotsRequest()
Method Detail

getSnapshotIds

public java.util.List<java.lang.String> getSnapshotIds()
The optional list of EBS snapshot IDs to describe.

Returns:
The optional list of EBS snapshot IDs to describe.

setSnapshotIds

public void setSnapshotIds(java.util.Collection<java.lang.String> snapshotIds)
The optional list of EBS snapshot IDs to describe.

Parameters:
snapshotIds - The optional list of EBS snapshot IDs to describe.

withSnapshotIds

public DescribeSnapshotsRequest withSnapshotIds(java.lang.String... snapshotIds)
The optional list of EBS snapshot IDs to describe.

Returns a reference to this object so that method calls can be chained together.

Parameters:
snapshotIds - The optional list of EBS snapshot IDs to describe.

withSnapshotIds

public DescribeSnapshotsRequest withSnapshotIds(java.util.Collection<java.lang.String> snapshotIds)
The optional list of EBS snapshot IDs to describe.

Returns a reference to this object so that method calls can be chained together.

Parameters:
snapshotIds - The optional list of EBS snapshot IDs to describe.

getOwnerIds

public java.util.List<java.lang.String> getOwnerIds()
An optional list of owners by which to scope the described EBS snapshots. Valid values are:

The values self and amazon are literals.

Returns:
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.


setOwnerIds

public void setOwnerIds(java.util.Collection<java.lang.String> ownerIds)
An optional list of owners by which to scope the described EBS snapshots. Valid values are:

The values self and amazon are literals.

Parameters:
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.


withOwnerIds

public DescribeSnapshotsRequest withOwnerIds(java.lang.String... ownerIds)
An optional list of owners by which to scope the described EBS snapshots. Valid values are:

The values self and amazon are literals.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.


withOwnerIds

public DescribeSnapshotsRequest withOwnerIds(java.util.Collection<java.lang.String> ownerIds)
An optional list of owners by which to scope the described EBS snapshots. Valid values are:

The values self and amazon are literals.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.


getRestorableByUserIds

public java.util.List<java.lang.String> getRestorableByUserIds()
An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

Returns:
An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

setRestorableByUserIds

public void setRestorableByUserIds(java.util.Collection<java.lang.String> restorableByUserIds)
An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

Parameters:
restorableByUserIds - An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

withRestorableByUserIds

public DescribeSnapshotsRequest withRestorableByUserIds(java.lang.String... restorableByUserIds)
An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
restorableByUserIds - An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

withRestorableByUserIds

public DescribeSnapshotsRequest withRestorableByUserIds(java.util.Collection<java.lang.String> restorableByUserIds)
An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
restorableByUserIds - An optional list of users. The described snapshots are scoped to only those snapshots from which these users can create volumes.

getFilters

public java.util.List<Filter> getFilters()
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.

Returns:
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.

setFilters

public void setFilters(java.util.Collection<Filter> 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.

Parameters:
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.

withFilters

public DescribeSnapshotsRequest withFilters(Filter... 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.

withFilters

public DescribeSnapshotsRequest withFilters(java.util.Collection<Filter> 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.