|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.ReservedInstancesOffering
public class ReservedInstancesOffering
An active offer for Amazon EC2 Reserved Instances.
Constructor Summary | |
---|---|
ReservedInstancesOffering()
|
Method Summary | |
---|---|
java.lang.String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instances can be used. |
java.lang.String |
getCurrencyCode()
The currency of the reserved instance. |
java.lang.Long |
getDuration()
The duration of the Reserved Instance, in seconds. |
java.lang.Float |
getFixedPrice()
The purchase price of the Reserved Instance. |
java.lang.String |
getInstanceTenancy()
The tenancy of the reserved instance (ex: default or dedicated). |
java.lang.String |
getInstanceType()
The instance type on which the Reserved Instances can be used. |
java.lang.String |
getProductDescription()
The Reserved Instances description (ex: Windows or Unix/Linux). |
java.lang.String |
getReservedInstancesOfferingId()
The unique ID of this Reserved Instances offering. |
java.lang.Float |
getUsagePrice()
The usage price of the Reserved Instance, per hour. |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone in which the Reserved Instances can be used. |
void |
setCurrencyCode(java.lang.String currencyCode)
The currency of the reserved instance. |
void |
setDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds. |
void |
setFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance. |
void |
setInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated). |
void |
setInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instances can be used. |
void |
setProductDescription(java.lang.String productDescription)
The Reserved Instances description (ex: Windows or Unix/Linux). |
void |
setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The unique ID of this Reserved Instances offering. |
void |
setUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ReservedInstancesOffering |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone in which the Reserved Instances can be used. |
ReservedInstancesOffering |
withCurrencyCode(java.lang.String currencyCode)
The currency of the reserved instance. |
ReservedInstancesOffering |
withDuration(java.lang.Long duration)
The duration of the Reserved Instance, in seconds. |
ReservedInstancesOffering |
withFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instance. |
ReservedInstancesOffering |
withInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated). |
ReservedInstancesOffering |
withInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instances can be used. |
ReservedInstancesOffering |
withProductDescription(java.lang.String productDescription)
The Reserved Instances description (ex: Windows or Unix/Linux). |
ReservedInstancesOffering |
withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The unique ID of this Reserved Instances offering. |
ReservedInstancesOffering |
withUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instance, per hour. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReservedInstancesOffering()
Method Detail |
---|
public java.lang.String getReservedInstancesOfferingId()
public void setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
reservedInstancesOfferingId
- The unique ID of this Reserved Instances offering.public ReservedInstancesOffering withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesOfferingId
- The unique ID of this Reserved Instances offering.
public java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, cc1.4xlarge, cg1.4xlarge
InstanceType
public void setInstanceType(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, cc1.4xlarge, cg1.4xlarge
instanceType
- The instance type on which the Reserved Instances can be used.InstanceType
public ReservedInstancesOffering withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge, cc1.4xlarge, cg1.4xlarge
instanceType
- The instance type on which the Reserved Instances can be used.
InstanceType
public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone in which the Reserved Instances can be used.public ReservedInstancesOffering withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone in which the Reserved Instances can be used.
public java.lang.Long getDuration()
public void setDuration(java.lang.Long duration)
duration
- The duration of the Reserved Instance, in seconds.public ReservedInstancesOffering withDuration(java.lang.Long duration)
Returns a reference to this object so that method calls can be chained together.
duration
- The duration of the Reserved Instance, in seconds.
public java.lang.Float getUsagePrice()
public void setUsagePrice(java.lang.Float usagePrice)
usagePrice
- The usage price of the Reserved Instance, per hour.public ReservedInstancesOffering withUsagePrice(java.lang.Float usagePrice)
Returns a reference to this object so that method calls can be chained together.
usagePrice
- The usage price of the Reserved Instance, per hour.
public java.lang.Float getFixedPrice()
public void setFixedPrice(java.lang.Float fixedPrice)
fixedPrice
- The purchase price of the Reserved Instance.public ReservedInstancesOffering withFixedPrice(java.lang.Float fixedPrice)
Returns a reference to this object so that method calls can be chained together.
fixedPrice
- The purchase price of the Reserved Instance.
public java.lang.String getProductDescription()
public void setProductDescription(java.lang.String productDescription)
productDescription
- The Reserved Instances description (ex: Windows or Unix/Linux).public ReservedInstancesOffering withProductDescription(java.lang.String productDescription)
Returns a reference to this object so that method calls can be chained together.
productDescription
- The Reserved Instances description (ex: Windows or Unix/Linux).
public java.lang.String getInstanceTenancy()
public void setInstanceTenancy(java.lang.String instanceTenancy)
instanceTenancy
- The tenancy of the reserved instance (ex: default or dedicated).public ReservedInstancesOffering withInstanceTenancy(java.lang.String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
instanceTenancy
- The tenancy of the reserved instance (ex: default or dedicated).
public java.lang.String getCurrencyCode()
public void setCurrencyCode(java.lang.String currencyCode)
currencyCode
- The currency of the reserved instance. Specified using ISO 4217
standard (e.g., USD, JPY).public ReservedInstancesOffering withCurrencyCode(java.lang.String currencyCode)
Returns a reference to this object so that method calls can be chained together.
currencyCode
- The currency of the reserved instance. Specified using ISO 4217
standard (e.g., USD, JPY).
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |