|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.ReservedInstances
public class ReservedInstances
A group of Amazon EC2 Reserved Instances purchased by this account.
Constructor Summary | |
---|---|
ReservedInstances()
|
Method Summary | |
---|---|
String |
getAvailabilityZone()
The Availability Zone in which the Reserved Instances can be used. |
Long |
getDuration()
The duration of the Reserved Instances, in seconds. |
Float |
getFixedPrice()
The purchase price of the Reserved Instances. |
Integer |
getInstanceCount()
The number of Reserved Instances purchased. |
String |
getInstanceType()
The instance type on which the Reserved Instances can be used. |
String |
getProductDescription()
The Reserved Instances product description (ex: Windows or Unix/Linux). |
String |
getReservedInstancesId()
The unique ID of the Reserved Instances purchase. |
Date |
getStart()
The date and time the Reserved Instances started. |
String |
getState()
The state of the Reserved Instances purchase. |
Float |
getUsagePrice()
The usage price of the Reserved Instances, per hour. |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instances can be used. |
void |
setDuration(Long duration)
The duration of the Reserved Instances, in seconds. |
void |
setFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instances. |
void |
setInstanceCount(Integer instanceCount)
The number of Reserved Instances purchased. |
void |
setInstanceType(String instanceType)
The instance type on which the Reserved Instances can be used. |
void |
setProductDescription(String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux). |
void |
setReservedInstancesId(String reservedInstancesId)
The unique ID of the Reserved Instances purchase. |
void |
setStart(Date start)
The date and time the Reserved Instances started. |
void |
setState(String state)
The state of the Reserved Instances purchase. |
void |
setUsagePrice(Float usagePrice)
The usage price of the Reserved Instances, per hour. |
String |
toString()
|
ReservedInstances |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instances can be used. |
ReservedInstances |
withDuration(Long duration)
The duration of the Reserved Instances, in seconds. |
ReservedInstances |
withFixedPrice(Float fixedPrice)
The purchase price of the Reserved Instances. |
ReservedInstances |
withInstanceCount(Integer instanceCount)
The number of Reserved Instances purchased. |
ReservedInstances |
withInstanceType(String instanceType)
The instance type on which the Reserved Instances can be used. |
ReservedInstances |
withProductDescription(String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux). |
ReservedInstances |
withReservedInstancesId(String reservedInstancesId)
The unique ID of the Reserved Instances purchase. |
ReservedInstances |
withStart(Date start)
The date and time the Reserved Instances started. |
ReservedInstances |
withState(String state)
The state of the Reserved Instances purchase. |
ReservedInstances |
withUsagePrice(Float usagePrice)
The usage price of the Reserved Instances, per hour. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReservedInstances()
Method Detail |
---|
public String getReservedInstancesId()
public void setReservedInstancesId(String reservedInstancesId)
reservedInstancesId
- The unique ID of the Reserved Instances purchase.public ReservedInstances withReservedInstancesId(String reservedInstancesId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesId
- The unique ID of the Reserved Instances purchase.
public String getInstanceType()
Constraints:
Allowed Values: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge
instanceType
- The instance type on which the Reserved Instances can be used.InstanceType
public ReservedInstances withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.medium, c1.xlarge
instanceType
- The instance type on which the Reserved Instances can be used.
InstanceType
public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone in which the Reserved Instances can be used.public ReservedInstances 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 Instances can be used.
public Date getStart()
public void setStart(Date start)
start
- The date and time the Reserved Instances started.public ReservedInstances withStart(Date start)
Returns a reference to this object so that method calls can be chained together.
start
- The date and time the Reserved Instances started.
public Long getDuration()
public void setDuration(Long duration)
duration
- The duration of the Reserved Instances, in seconds.public ReservedInstances withDuration(Long duration)
Returns a reference to this object so that method calls can be chained together.
duration
- The duration of the Reserved Instances, in seconds.
public Float getUsagePrice()
public void setUsagePrice(Float usagePrice)
usagePrice
- The usage price of the Reserved Instances, per hour.public ReservedInstances withUsagePrice(Float usagePrice)
Returns a reference to this object so that method calls can be chained together.
usagePrice
- The usage price of the Reserved Instances, per hour.
public Float getFixedPrice()
public void setFixedPrice(Float fixedPrice)
fixedPrice
- The purchase price of the Reserved Instances.public ReservedInstances withFixedPrice(Float fixedPrice)
Returns a reference to this object so that method calls can be chained together.
fixedPrice
- The purchase price of the Reserved Instances.
public Integer getInstanceCount()
public void setInstanceCount(Integer instanceCount)
instanceCount
- The number of Reserved Instances purchased.public ReservedInstances withInstanceCount(Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- The number of Reserved Instances purchased.
public String getProductDescription()
public void setProductDescription(String productDescription)
productDescription
- The Reserved Instances product description (ex: Windows or
Unix/Linux).public ReservedInstances withProductDescription(String productDescription)
Returns a reference to this object so that method calls can be chained together.
productDescription
- The Reserved Instances product description (ex: Windows or
Unix/Linux).
public String getState()
public void setState(String state)
state
- The state of the Reserved Instances purchase.public ReservedInstances withState(String state)
Returns a reference to this object so that method calls can be chained together.
state
- The state of the Reserved Instances purchase.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |