|
Did this page help you?Yes No Tell us about it... |
||||||
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 | |
---|---|
boolean |
equals(java.lang.Object obj)
|
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 Instances, in seconds. |
java.lang.Float |
getFixedPrice()
The purchase price of the Reserved Instances. |
java.lang.Integer |
getInstanceCount()
The number of Reserved Instances purchased. |
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 |
getOfferingType()
The Reserved Instance offering type. |
java.lang.String |
getProductDescription()
The Reserved Instances product description (ex: Windows or Unix/Linux). |
java.util.List<RecurringCharge> |
getRecurringCharges()
The recurring charge tag assigned to the resource. |
java.lang.String |
getReservedInstancesId()
The unique ID of the Reserved Instances purchase. |
java.util.Date |
getStart()
The date and time the Reserved Instances started. |
java.lang.String |
getState()
The state of the Reserved Instances purchase. |
java.util.List<Tag> |
getTags()
A list of tags for the ReservedInstances. |
java.lang.Float |
getUsagePrice()
The usage price of the Reserved Instances, per hour. |
int |
hashCode()
|
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 Instances, in seconds. |
void |
setFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instances. |
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances purchased. |
void |
setInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated). |
void |
setInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instances can be used. |
void |
setInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instances can be used. |
void |
setOfferingType(java.lang.String offeringType)
The Reserved Instance offering type. |
void |
setProductDescription(java.lang.String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux). |
void |
setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource. |
void |
setReservedInstancesId(java.lang.String reservedInstancesId)
The unique ID of the Reserved Instances purchase. |
void |
setStart(java.util.Date start)
The date and time the Reserved Instances started. |
void |
setState(java.lang.String state)
The state of the Reserved Instances purchase. |
void |
setTags(java.util.Collection<Tag> tags)
A list of tags for the ReservedInstances. |
void |
setUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instances, per hour. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ReservedInstances |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone in which the Reserved Instances can be used. |
ReservedInstances |
withCurrencyCode(java.lang.String currencyCode)
The currency of the reserved instance. |
ReservedInstances |
withDuration(java.lang.Long duration)
The duration of the Reserved Instances, in seconds. |
ReservedInstances |
withFixedPrice(java.lang.Float fixedPrice)
The purchase price of the Reserved Instances. |
ReservedInstances |
withInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances purchased. |
ReservedInstances |
withInstanceTenancy(java.lang.String instanceTenancy)
The tenancy of the reserved instance (ex: default or dedicated). |
ReservedInstances |
withInstanceType(InstanceType instanceType)
The instance type on which the Reserved Instances can be used. |
ReservedInstances |
withInstanceType(java.lang.String instanceType)
The instance type on which the Reserved Instances can be used. |
ReservedInstances |
withOfferingType(java.lang.String offeringType)
The Reserved Instance offering type. |
ReservedInstances |
withProductDescription(java.lang.String productDescription)
The Reserved Instances product description (ex: Windows or Unix/Linux). |
ReservedInstances |
withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource. |
ReservedInstances |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource. |
ReservedInstances |
withReservedInstancesId(java.lang.String reservedInstancesId)
The unique ID of the Reserved Instances purchase. |
ReservedInstances |
withStart(java.util.Date start)
The date and time the Reserved Instances started. |
ReservedInstances |
withState(java.lang.String state)
The state of the Reserved Instances purchase. |
ReservedInstances |
withTags(java.util.Collection<Tag> tags)
A list of tags for the ReservedInstances. |
ReservedInstances |
withTags(Tag... tags)
A list of tags for the ReservedInstances. |
ReservedInstances |
withUsagePrice(java.lang.Float usagePrice)
The usage price of the Reserved Instances, per hour. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReservedInstances()
Method Detail |
---|
public java.lang.String getReservedInstancesId()
public void setReservedInstancesId(java.lang.String reservedInstancesId)
reservedInstancesId
- The unique ID of the Reserved Instances purchase.public ReservedInstances withReservedInstancesId(java.lang.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 java.lang.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(java.lang.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 Instances can be used.InstanceType
public ReservedInstances 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.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 Instances 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 Instances can be used.InstanceType
public ReservedInstances 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 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 ReservedInstances 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.util.Date getStart()
public void setStart(java.util.Date start)
start
- The date and time the Reserved Instances started.public ReservedInstances withStart(java.util.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 java.lang.Long getDuration()
public void setDuration(java.lang.Long duration)
duration
- The duration of the Reserved Instances, in seconds.public ReservedInstances 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 Instances, in seconds.public java.lang.Float getUsagePrice()
public void setUsagePrice(java.lang.Float usagePrice)
usagePrice
- The usage price of the Reserved Instances, per hour.public ReservedInstances 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 Instances, per hour.public java.lang.Float getFixedPrice()
public void setFixedPrice(java.lang.Float fixedPrice)
fixedPrice
- The purchase price of the Reserved Instances.public ReservedInstances 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 Instances.public java.lang.Integer getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
instanceCount
- The number of Reserved Instances purchased.public ReservedInstances withInstanceCount(java.lang.Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- The number of Reserved Instances purchased.public java.lang.String getProductDescription()
public void setProductDescription(java.lang.String productDescription)
productDescription
- The Reserved Instances product description (ex: Windows or
Unix/Linux).public ReservedInstances withProductDescription(java.lang.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 java.lang.String getState()
public void setState(java.lang.String state)
state
- The state of the Reserved Instances purchase.public ReservedInstances withState(java.lang.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 java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- A list of tags for the ReservedInstances.public ReservedInstances withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the ReservedInstances.public ReservedInstances withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for the ReservedInstances.public java.lang.String getInstanceTenancy()
public void setInstanceTenancy(java.lang.String instanceTenancy)
instanceTenancy
- The tenancy of the reserved instance (ex: default or dedicated).public ReservedInstances 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 ReservedInstances 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 getOfferingType()
public void setOfferingType(java.lang.String offeringType)
offeringType
- The Reserved Instance offering type.public ReservedInstances withOfferingType(java.lang.String offeringType)
Returns a reference to this object so that method calls can be chained together.
offeringType
- The Reserved Instance offering type.public java.util.List<RecurringCharge> getRecurringCharges()
public void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
recurringCharges
- The recurring charge tag assigned to the resource.public ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges)
Returns a reference to this object so that method calls can be chained together.
recurringCharges
- The recurring charge tag assigned to the resource.public ReservedInstances withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
Returns a reference to this object so that method calls can be chained together.
recurringCharges
- The recurring charge tag assigned to the resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |