com.amazonaws.services.ec2.model
Class DescribeSnapshotsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DescribeSnapshotsRequest

public class DescribeSnapshotsRequest
extends AmazonWebServiceRequest

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)

Constructor Summary
DescribeSnapshotsRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Filter> getFilters()
          A list of filters used to match properties for Snapshots.
 List<String> getOwnerIds()
          The optional list of EBS snapshot owners.
 List<String> getRestorableByUserIds()
          The optional list of users who have permission to create volumes from the described EBS snapshots.
 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)
          The optional list of EBS snapshot owners.
 void setRestorableByUserIds(Collection<String> restorableByUserIds)
          The optional list of users who have permission to create volumes from the described EBS snapshots.
 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)
          The optional list of EBS snapshot owners.
 DescribeSnapshotsRequest withOwnerIds(String... ownerIds)
          The optional list of EBS snapshot owners.
 DescribeSnapshotsRequest withRestorableByUserIds(Collection<String> restorableByUserIds)
          The optional list of users who have permission to create volumes from the described EBS snapshots.
 DescribeSnapshotsRequest withRestorableByUserIds(String... restorableByUserIds)
          The optional list of users who have permission to create volumes from the described EBS snapshots.
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeSnapshotsRequest

public DescribeSnapshotsRequest()
Method Detail

getSnapshotIds

public List<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(Collection<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(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.
Returns:
A reference to this updated object so that method calls can be chained together.

withSnapshotIds

public DescribeSnapshotsRequest withSnapshotIds(Collection<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.
Returns:
A reference to this updated object so that method calls can be chained together.

getOwnerIds

public List<String> getOwnerIds()
The optional list of EBS snapshot owners.

Returns:
The optional list of EBS snapshot owners.

setOwnerIds

public void setOwnerIds(Collection<String> ownerIds)
The optional list of EBS snapshot owners.

Parameters:
ownerIds - The optional list of EBS snapshot owners.

withOwnerIds

public DescribeSnapshotsRequest withOwnerIds(String... ownerIds)
The optional list of EBS snapshot owners.

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

Parameters:
ownerIds - The optional list of EBS snapshot owners.
Returns:
A reference to this updated object so that method calls can be chained together.

withOwnerIds

public DescribeSnapshotsRequest withOwnerIds(Collection<String> ownerIds)
The optional list of EBS snapshot owners.

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

Parameters:
ownerIds - The optional list of EBS snapshot owners.
Returns:
A reference to this updated object so that method calls can be chained together.

getRestorableByUserIds

public List<String> getRestorableByUserIds()
The optional list of users who have permission to create volumes from the described EBS snapshots.

Returns:
The optional list of users who have permission to create volumes from the described EBS snapshots.

setRestorableByUserIds

public void setRestorableByUserIds(Collection<String> restorableByUserIds)
The optional list of users who have permission to create volumes from the described EBS snapshots.

Parameters:
restorableByUserIds - The optional list of users who have permission to create volumes from the described EBS snapshots.

withRestorableByUserIds

public DescribeSnapshotsRequest withRestorableByUserIds(String... restorableByUserIds)
The optional list of users who have permission to create volumes from the described EBS snapshots.

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

Parameters:
restorableByUserIds - The optional list of users who have permission to create volumes from the described EBS snapshots.
Returns:
A reference to this updated object so that method calls can be chained together.

withRestorableByUserIds

public DescribeSnapshotsRequest withRestorableByUserIds(Collection<String> restorableByUserIds)
The optional list of users who have permission to create volumes from the described EBS snapshots.

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

Parameters:
restorableByUserIds - The optional list of users who have permission to create volumes from the described EBS snapshots.
Returns:
A reference to this updated object so that method calls can be chained together.

getFilters

public 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(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.
Returns:
A reference to this updated object so that method calls can be chained together.

withFilters

public DescribeSnapshotsRequest withFilters(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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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