public class DescribeReservedInstancesOfferingsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeReservedInstancesOfferingsRequest>
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.
Constructor and Description |
---|
DescribeReservedInstancesOfferingsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instance can be used.
|
Request<DescribeReservedInstancesOfferingsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
A list of filters used to match properties for
ReservedInstancesOfferings.
|
Boolean |
getIncludeMarketplace()
Include Marketplace offerings in the response.
|
String |
getInstanceTenancy()
The tenancy of the Reserved Instance offering.
|
String |
getInstanceType()
The instance type on which the Reserved Instance can be used.
|
Long |
getMaxDuration()
Maximum duration (in seconds) to filter when searching for offerings.
|
Integer |
getMaxInstanceCount()
Returns the value of the MaxInstanceCount property for this object.
|
Integer |
getMaxResults()
Returns the value of the MaxResults property for this object.
|
Long |
getMinDuration()
Minimum duration (in seconds) to filter when searching for offerings.
|
String |
getNextToken()
Returns the value of the NextToken property for this object.
|
String |
getOfferingType()
The Reserved Instance offering type.
|
String |
getProductDescription()
The Reserved Instance product description.
|
List<String> |
getReservedInstancesOfferingIds()
An optional list of the unique IDs of the Reserved Instance offerings
to describe.
|
int |
hashCode() |
Boolean |
isIncludeMarketplace()
Include Marketplace offerings in the response.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
|
void |
setFilters(Collection<Filter> filters)
A list of filters used to match properties for
ReservedInstancesOfferings.
|
void |
setIncludeMarketplace(Boolean includeMarketplace)
Include Marketplace offerings in the response.
|
void |
setInstanceTenancy(String instanceTenancy)
The tenancy of the Reserved Instance offering.
|
void |
setInstanceTenancy(Tenancy 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(String instanceType)
The instance type on which the Reserved Instance can be used.
|
void |
setMaxDuration(Long maxDuration)
Maximum duration (in seconds) to filter when searching for offerings.
|
void |
setMaxInstanceCount(Integer maxInstanceCount)
Sets the value of the MaxInstanceCount property for this object.
|
void |
setMaxResults(Integer maxResults)
Sets the value of the MaxResults property for this object.
|
void |
setMinDuration(Long minDuration)
Minimum duration (in seconds) to filter when searching for offerings.
|
void |
setNextToken(String nextToken)
Sets the value of the NextToken property for this object.
|
void |
setOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
void |
setOfferingType(String offeringType)
The Reserved Instance offering type.
|
void |
setProductDescription(RIProductDescription productDescription)
The Reserved Instance product description.
|
void |
setProductDescription(String productDescription)
The Reserved Instance product description.
|
void |
setReservedInstancesOfferingIds(Collection<String> reservedInstancesOfferingIds)
An optional list of the unique IDs of the Reserved Instance offerings
to describe.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeReservedInstancesOfferingsRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.
|
DescribeReservedInstancesOfferingsRequest |
withFilters(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 |
withIncludeMarketplace(Boolean includeMarketplace)
Include Marketplace offerings in the response.
|
DescribeReservedInstancesOfferingsRequest |
withInstanceTenancy(String instanceTenancy)
The tenancy of the Reserved Instance offering.
|
DescribeReservedInstancesOfferingsRequest |
withInstanceTenancy(Tenancy 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(String instanceType)
The instance type on which the Reserved Instance can be used.
|
DescribeReservedInstancesOfferingsRequest |
withMaxDuration(Long maxDuration)
Maximum duration (in seconds) to filter when searching for offerings.
|
DescribeReservedInstancesOfferingsRequest |
withMaxInstanceCount(Integer maxInstanceCount)
Sets the value of the MaxInstanceCount property for this object.
|
DescribeReservedInstancesOfferingsRequest |
withMaxResults(Integer maxResults)
Sets the value of the MaxResults property for this object.
|
DescribeReservedInstancesOfferingsRequest |
withMinDuration(Long minDuration)
Minimum duration (in seconds) to filter when searching for offerings.
|
DescribeReservedInstancesOfferingsRequest |
withNextToken(String nextToken)
Sets the value of the NextToken property for this object.
|
DescribeReservedInstancesOfferingsRequest |
withOfferingType(OfferingTypeValues offeringType)
The Reserved Instance offering type.
|
DescribeReservedInstancesOfferingsRequest |
withOfferingType(String offeringType)
The Reserved Instance offering type.
|
DescribeReservedInstancesOfferingsRequest |
withProductDescription(RIProductDescription productDescription)
The Reserved Instance product description.
|
DescribeReservedInstancesOfferingsRequest |
withProductDescription(String productDescription)
The Reserved Instance product description.
|
DescribeReservedInstancesOfferingsRequest |
withReservedInstancesOfferingIds(Collection<String> reservedInstancesOfferingIds)
An optional list of the unique IDs of the Reserved Instance offerings
to describe.
|
DescribeReservedInstancesOfferingsRequest |
withReservedInstancesOfferingIds(String... reservedInstancesOfferingIds)
An optional list of the unique IDs of the Reserved Instance offerings
to describe.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DescribeReservedInstancesOfferingsRequest()
public List<String> getReservedInstancesOfferingIds()
public void setReservedInstancesOfferingIds(Collection<String> reservedInstancesOfferingIds)
reservedInstancesOfferingIds
- An optional list of the unique IDs of the Reserved Instance offerings
to describe.public DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(String... reservedInstancesOfferingIds)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesOfferingIds
- An optional list of the unique IDs of the Reserved Instance offerings
to describe.public DescribeReservedInstancesOfferingsRequest withReservedInstancesOfferingIds(Collection<String> reservedInstancesOfferingIds)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesOfferingIds
- An optional list of the unique IDs of the Reserved Instance offerings
to describe.public String getInstanceType()
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, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
InstanceType
public void setInstanceType(String instanceType)
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, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public DescribeReservedInstancesOfferingsRequest withInstanceType(String instanceType)
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, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public void setInstanceType(InstanceType instanceType)
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, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public DescribeReservedInstancesOfferingsRequest withInstanceType(InstanceType instanceType)
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, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType
- The instance type on which the Reserved Instance can be used.InstanceType
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.public DescribeReservedInstancesOfferingsRequest withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.public String getProductDescription()
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
RIProductDescription
public void setProductDescription(String productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product description.RIProductDescription
public DescribeReservedInstancesOfferingsRequest withProductDescription(String productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product description.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product description.RIProductDescription
public DescribeReservedInstancesOfferingsRequest withProductDescription(RIProductDescription productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The Reserved Instance product description.RIProductDescription
public List<Filter> getFilters()
public void setFilters(Collection<Filter> filters)
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.public DescribeReservedInstancesOfferingsRequest 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
ReservedInstancesOfferings. For a complete reference to the available
filter keys for this operation, see the Amazon
EC2 API reference.public DescribeReservedInstancesOfferingsRequest withFilters(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
ReservedInstancesOfferings. For a complete reference to the available
filter keys for this operation, see the Amazon
EC2 API reference.public String getInstanceTenancy()
Constraints:
Allowed Values: default, dedicated
Tenancy
public void setInstanceTenancy(String instanceTenancy)
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public DescribeReservedInstancesOfferingsRequest withInstanceTenancy(String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public DescribeReservedInstancesOfferingsRequest withInstanceTenancy(Tenancy instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated
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.Tenancy
public String getOfferingType()
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
OfferingTypeValues
public void setOfferingType(String offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public DescribeReservedInstancesOfferingsRequest withOfferingType(String offeringType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public void setOfferingType(OfferingTypeValues offeringType)
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public DescribeReservedInstancesOfferingsRequest withOfferingType(OfferingTypeValues offeringType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization
offeringType
- The Reserved Instance offering type.OfferingTypeValues
public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The new value for the NextToken property for this object.public DescribeReservedInstancesOfferingsRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The new value for the NextToken property for this object.public Integer getMaxResults()
public void setMaxResults(Integer maxResults)
maxResults
- The new value for the MaxResults property for this object.public DescribeReservedInstancesOfferingsRequest withMaxResults(Integer maxResults)
Returns a reference to this object so that method calls can be chained together.
maxResults
- The new value for the MaxResults property for this object.public Boolean isIncludeMarketplace()
public void setIncludeMarketplace(Boolean includeMarketplace)
includeMarketplace
- Include Marketplace offerings in the response.public DescribeReservedInstancesOfferingsRequest withIncludeMarketplace(Boolean includeMarketplace)
Returns a reference to this object so that method calls can be chained together.
includeMarketplace
- Include Marketplace offerings in the response.public Boolean getIncludeMarketplace()
public Long getMinDuration()
public void setMinDuration(Long minDuration)
minDuration
- Minimum duration (in seconds) to filter when searching for offerings.public DescribeReservedInstancesOfferingsRequest withMinDuration(Long minDuration)
Returns a reference to this object so that method calls can be chained together.
minDuration
- Minimum duration (in seconds) to filter when searching for offerings.public Long getMaxDuration()
public void setMaxDuration(Long maxDuration)
maxDuration
- Maximum duration (in seconds) to filter when searching for offerings.public DescribeReservedInstancesOfferingsRequest withMaxDuration(Long maxDuration)
Returns a reference to this object so that method calls can be chained together.
maxDuration
- Maximum duration (in seconds) to filter when searching for offerings.public Integer getMaxInstanceCount()
public void setMaxInstanceCount(Integer maxInstanceCount)
maxInstanceCount
- The new value for the MaxInstanceCount property for this object.public DescribeReservedInstancesOfferingsRequest withMaxInstanceCount(Integer maxInstanceCount)
Returns a reference to this object so that method calls can be chained together.
maxInstanceCount
- The new value for the MaxInstanceCount property for this object.public Request<DescribeReservedInstancesOfferingsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeReservedInstancesOfferingsRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.