com.amazonaws.services.ec2.model
Class DescribeReservedInstancesRequest

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

public class DescribeReservedInstancesRequest
extends AmazonWebServiceRequest

Container for the parameters to the DescribeReservedInstances operation.

The DescribeReservedInstances operation describes Reserved Instances that were purchased for use with your account.

See Also:
AmazonEC2.describeReservedInstances(DescribeReservedInstancesRequest)

Constructor Summary
DescribeReservedInstancesRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Filter> getFilters()
          A list of filters used to match properties for ReservedInstances.
 String getOfferingType()
          The Reserved Instance offering type.
 List<String> getReservedInstancesIds()
          The optional list of Reserved Instance IDs to describe.
 int hashCode()
           
 void setFilters(Collection<Filter> filters)
          A list of filters used to match properties for ReservedInstances.
 void setOfferingType(String offeringType)
          The Reserved Instance offering type.
 void setReservedInstancesIds(Collection<String> reservedInstancesIds)
          The optional list of Reserved Instance IDs to describe.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeReservedInstancesRequest withFilters(Collection<Filter> filters)
          A list of filters used to match properties for ReservedInstances.
 DescribeReservedInstancesRequest withFilters(Filter... filters)
          A list of filters used to match properties for ReservedInstances.
 DescribeReservedInstancesRequest withOfferingType(String offeringType)
          The Reserved Instance offering type.
 DescribeReservedInstancesRequest withReservedInstancesIds(Collection<String> reservedInstancesIds)
          The optional list of Reserved Instance IDs to describe.
 DescribeReservedInstancesRequest withReservedInstancesIds(String... reservedInstancesIds)
          The optional list of Reserved Instance 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

DescribeReservedInstancesRequest

public DescribeReservedInstancesRequest()
Method Detail

getReservedInstancesIds

public List<String> getReservedInstancesIds()
The optional list of Reserved Instance IDs to describe.

Returns:
The optional list of Reserved Instance IDs to describe.

setReservedInstancesIds

public void setReservedInstancesIds(Collection<String> reservedInstancesIds)
The optional list of Reserved Instance IDs to describe.

Parameters:
reservedInstancesIds - The optional list of Reserved Instance IDs to describe.

withReservedInstancesIds

public DescribeReservedInstancesRequest withReservedInstancesIds(String... reservedInstancesIds)
The optional list of Reserved Instance IDs to describe.

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

Parameters:
reservedInstancesIds - The optional list of Reserved Instance IDs to describe.
Returns:
A reference to this updated object so that method calls can be chained together.

withReservedInstancesIds

public DescribeReservedInstancesRequest withReservedInstancesIds(Collection<String> reservedInstancesIds)
The optional list of Reserved Instance IDs to describe.

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

Parameters:
reservedInstancesIds - The optional list of Reserved Instance IDs to describe.
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 ReservedInstances. 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 ReservedInstances. 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 ReservedInstances. 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 ReservedInstances. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

withFilters

public DescribeReservedInstancesRequest withFilters(Filter... filters)
A list of filters used to match properties for ReservedInstances. 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 ReservedInstances. 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 DescribeReservedInstancesRequest withFilters(Collection<Filter> filters)
A list of filters used to match properties for ReservedInstances. 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 ReservedInstances. 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.

getOfferingType

public String getOfferingType()
The Reserved Instance offering type.

Returns:
The Reserved Instance offering type.

setOfferingType

public void setOfferingType(String offeringType)
The Reserved Instance offering type.

Parameters:
offeringType - The Reserved Instance offering type.

withOfferingType

public DescribeReservedInstancesRequest withOfferingType(String offeringType)
The Reserved Instance offering type.

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

Parameters:
offeringType - The Reserved Instance offering type.
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.