Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class DescribeReservedInstancesOfferingsRequest

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

public class DescribeReservedInstancesOfferingsRequest
extends AmazonWebServiceRequest

Container for the parameters to the DescribeReservedInstancesOfferings operation.

The DescribeReservedInstancesOfferings operation describes Reserved Instance offerings that are available for purchase. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.

See Also:
AmazonEC2.describeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest)

Constructor Summary
DescribeReservedInstancesOfferingsRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAvailabilityZone()
          The Availability Zone in which the Reserved Instance can be used.
 java.util.List<Filter> getFilters()
          A list of filters used to match properties for ReservedInstancesOfferings.
 java.lang.String getInstanceTenancy()
          The tenancy of the Reserved Instance offering.
 java.lang.String getInstanceType()
          The instance type on which the Reserved Instance can be used.
 java.lang.Integer getMaxResults()
          Returns the value of the MaxResults property for this object.
 java.lang.String getNextToken()
          Returns the value of the NextToken property for this object.
 java.lang.String getOfferingType()
          The Reserved Instance offering type.
 java.lang.String getProductDescription()
          The Reserved Instance product description.
 java.util.List<java.lang.String> getReservedInstancesOfferingIds()
          An optional list of the unique IDs of the Reserved Instance offerings to describe.
 int hashCode()
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone in which the Reserved Instance can be used.
 void setFilters(java.util.Collection<Filter> filters)
          A list of filters used to match properties for ReservedInstancesOfferings.
 void setInstanceTenancy(java.lang.String instanceTenancy)
          The tenancy of the Reserved Instance offering.
 void setInstanceType(InstanceType instanceType)
          The instance type on which the Reserved Instance can be used.
 void setInstanceType(java.lang.String instanceType)
          The instance type on which the Reserved Instance can be used.
 void setMaxResults(java.lang.Integer maxResults)
          Sets the value of the MaxResults property for this object.
 void setNextToken(java.lang.String nextToken)
          Sets the value of the NextToken property for this object.
 void setOfferingType(java.lang.String offeringType)
          The Reserved Instance offering type.
 void setProductDescription(java.lang.String productDescription)
          The Reserved Instance product description.
 void setReservedInstancesOfferingIds(java.util.Collection<java.lang.String> reservedInstancesOfferingIds)
          An optional list of the unique IDs of the Reserved Instance offerings to describe.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeReservedInstancesOfferingsRequest withAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone in which the Reserved Instance can be used.
 DescribeReservedInstancesOfferingsRequest withFilters(java.util.Collection<Filter> filters)
          A list of filters used to match properties for ReservedInstancesOfferings.
 DescribeReservedInstancesOfferingsRequest withFilters(Filter... filters)
          A list of filters used to match properties for ReservedInstancesOfferings.
 DescribeReservedInstancesOfferingsRequest withInstanceTenancy(java.lang.String instanceTenancy)
          The tenancy of the Reserved Instance offering.
 DescribeReservedInstancesOfferingsRequest withInstanceType(InstanceType instanceType)
          The instance type on which the Reserved Instance can be used.
 DescribeReservedInstancesOfferingsRequest withInstanceType(java.lang.String instanceType)
          The instance type on which the Reserved Instance can be used.
 DescribeReservedInstancesOfferingsRequest withMaxResults(java.lang.Integer maxResults)
          Sets the value of the MaxResults property for this object.
 DescribeReservedInstancesOfferingsRequest withNextToken(java.lang.String nextToken)
          Sets the value of the NextToken property for this object.
 DescribeReservedInstancesOfferingsRequest withOfferingType(java.lang.String offeringType)
          The Reserved Instance offering type.
 DescribeReservedInstancesOfferingsRequest withProductDescription(java.lang.String productDescription)
          The Reserved Instance product description.
 DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(java.util.Collection<java.lang.String> reservedInstancesOfferingIds)
          An optional list of the unique IDs of the Reserved Instance offerings to describe.
 DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(java.lang.String... reservedInstancesOfferingIds)
          An optional list of the unique IDs of the Reserved Instance offerings 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

DescribeReservedInstancesOfferingsRequest

public DescribeReservedInstancesOfferingsRequest()
Method Detail

getReservedInstancesOfferingIds

public java.util.List<java.lang.String> getReservedInstancesOfferingIds()
An optional list of the unique IDs of the Reserved Instance offerings to describe.

Returns:
An optional list of the unique IDs of the Reserved Instance offerings to describe.

setReservedInstancesOfferingIds

public void setReservedInstancesOfferingIds(java.util.Collection<java.lang.String> reservedInstancesOfferingIds)
An optional list of the unique IDs of the Reserved Instance offerings to describe.

Parameters:
reservedInstancesOfferingIds - An optional list of the unique IDs of the Reserved Instance offerings to describe.

withReservedInstancesOfferingIds

public DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(java.lang.String... reservedInstancesOfferingIds)
An optional list of the unique IDs of the Reserved Instance offerings to describe.

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

Parameters:
reservedInstancesOfferingIds - An optional list of the unique IDs of the Reserved Instance offerings to describe.
Returns:
A reference to this updated object so that method calls can be chained together.

withReservedInstancesOfferingIds

public DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(java.util.Collection<java.lang.String> reservedInstancesOfferingIds)
An optional list of the unique IDs of the Reserved Instance offerings to describe.

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

Parameters:
reservedInstancesOfferingIds - An optional list of the unique IDs of the Reserved Instance offerings to describe.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public java.lang.String getInstanceType()
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Returns:
The instance type on which the Reserved Instance can be used.
See Also:
InstanceType

setInstanceType

public void setInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
See Also:
InstanceType

withInstanceType

public DescribeReservedInstancesOfferingsRequest withInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instance can be used.

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

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

setInstanceType

public void setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
See Also:
InstanceType

withInstanceType

public DescribeReservedInstancesOfferingsRequest withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.

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

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - The instance type on which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.

Returns:
The Availability Zone in which the Reserved Instance can be used.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.

Parameters:
availabilityZone - The Availability Zone in which the Reserved Instance can be used.

withAvailabilityZone

public DescribeReservedInstancesOfferingsRequest withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.

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

Parameters:
availabilityZone - The Availability Zone in which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.

getProductDescription

public java.lang.String getProductDescription()
The Reserved Instance product description.

Returns:
The Reserved Instance product description.

setProductDescription

public void setProductDescription(java.lang.String productDescription)
The Reserved Instance product description.

Parameters:
productDescription - The Reserved Instance product description.

withProductDescription

public DescribeReservedInstancesOfferingsRequest withProductDescription(java.lang.String productDescription)
The Reserved Instance product description.

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

Parameters:
productDescription - The Reserved Instance product description.
Returns:
A reference to this updated object so that method calls can be chained together.

getFilters

public java.util.List<Filter> getFilters()
A list of filters used to match properties for ReservedInstancesOfferings. 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 ReservedInstancesOfferings. 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 ReservedInstancesOfferings. 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 ReservedInstancesOfferings. For a complete reference to the available filter keys for this operation, see the Amazon EC2 API reference.

withFilters

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

getInstanceTenancy

public java.lang.String getInstanceTenancy()
The tenancy of the Reserved Instance offering. A Reserved Instance with tenancy of dedicated will run on single-tenant hardware and can only be launched within a VPC.

Returns:
The tenancy of the Reserved Instance offering. A Reserved Instance with tenancy of dedicated will run on single-tenant hardware and can only be launched within a VPC.

setInstanceTenancy

public void setInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the Reserved Instance offering. A Reserved Instance with tenancy of dedicated will run on single-tenant hardware and can only be launched within a VPC.

Parameters:
instanceTenancy - The tenancy of the Reserved Instance offering. A Reserved Instance with tenancy of dedicated will run on single-tenant hardware and can only be launched within a VPC.

withInstanceTenancy

public DescribeReservedInstancesOfferingsRequest withInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the Reserved Instance offering. A Reserved Instance with tenancy of dedicated will run on single-tenant hardware and can only be launched within a VPC.

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

Parameters:
instanceTenancy - The tenancy of the Reserved Instance offering. A Reserved Instance with tenancy of dedicated will run on single-tenant hardware and can only be launched within a VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getOfferingType

public java.lang.String getOfferingType()
The Reserved Instance offering type.

Returns:
The Reserved Instance offering type.

setOfferingType

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

Parameters:
offeringType - The Reserved Instance offering type.

withOfferingType

public DescribeReservedInstancesOfferingsRequest withOfferingType(java.lang.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.

getNextToken

public java.lang.String getNextToken()
Returns the value of the NextToken property for this object.

Returns:
The value of the NextToken property for this object.

setNextToken

public void setNextToken(java.lang.String nextToken)
Sets the value of the NextToken property for this object.

Parameters:
nextToken - The new value for the NextToken property for this object.

withNextToken

public DescribeReservedInstancesOfferingsRequest withNextToken(java.lang.String nextToken)
Sets the value of the NextToken property for this object.

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

Parameters:
nextToken - The new value for the NextToken property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getMaxResults

public java.lang.Integer getMaxResults()
Returns the value of the MaxResults property for this object.

Returns:
The value of the MaxResults property for this object.

setMaxResults

public void setMaxResults(java.lang.Integer maxResults)
Sets the value of the MaxResults property for this object.

Parameters:
maxResults - The new value for the MaxResults property for this object.

withMaxResults

public DescribeReservedInstancesOfferingsRequest withMaxResults(java.lang.Integer maxResults)
Sets the value of the MaxResults property for this object.

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

Parameters:
maxResults - The new value for the MaxResults property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

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.