public class ReservedInstancesListing extends Object implements Serializable, Cloneable
Describes a Reserved Instance listing.
Constructor and Description |
---|
ReservedInstancesListing() |
Modifier and Type | Method and Description |
---|---|
ReservedInstancesListing |
clone() |
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive key supplied by the client to ensure that the
request is idempotent.
|
Date |
getCreateDate()
The time the listing was created.
|
List<InstanceCount> |
getInstanceCounts()
The number of instances in this state.
|
List<PriceSchedule> |
getPriceSchedules()
The price of the Reserved Instance listing.
|
String |
getReservedInstancesId()
The ID of the Reserved Instance.
|
String |
getReservedInstancesListingId()
The ID of the Reserved Instance listing.
|
String |
getStatus()
The status of the Reserved Instance listing.
|
String |
getStatusMessage()
The reason for the current status of the Reserved Instance listing.
|
List<Tag> |
getTags()
Any tags assigned to the resource.
|
Date |
getUpdateDate()
The last modified timestamp of the listing.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive key supplied by the client to ensure that the
request is idempotent.
|
void |
setCreateDate(Date createDate)
The time the listing was created.
|
void |
setInstanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.
|
void |
setPriceSchedules(Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.
|
void |
setReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
|
void |
setReservedInstancesListingId(String reservedInstancesListingId)
The ID of the Reserved Instance listing.
|
void |
setStatus(ListingStatus status)
The status of the Reserved Instance listing.
|
void |
setStatus(String status)
The status of the Reserved Instance listing.
|
void |
setStatusMessage(String statusMessage)
The reason for the current status of the Reserved Instance listing.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the resource.
|
void |
setUpdateDate(Date updateDate)
The last modified timestamp of the listing.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedInstancesListing |
withClientToken(String clientToken)
A unique, case-sensitive key supplied by the client to ensure that the
request is idempotent.
|
ReservedInstancesListing |
withCreateDate(Date createDate)
The time the listing was created.
|
ReservedInstancesListing |
withInstanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.
|
ReservedInstancesListing |
withInstanceCounts(InstanceCount... instanceCounts)
The number of instances in this state.
|
ReservedInstancesListing |
withPriceSchedules(Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.
|
ReservedInstancesListing |
withPriceSchedules(PriceSchedule... priceSchedules)
The price of the Reserved Instance listing.
|
ReservedInstancesListing |
withReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
|
ReservedInstancesListing |
withReservedInstancesListingId(String reservedInstancesListingId)
The ID of the Reserved Instance listing.
|
ReservedInstancesListing |
withStatus(ListingStatus status)
The status of the Reserved Instance listing.
|
ReservedInstancesListing |
withStatus(String status)
The status of the Reserved Instance listing.
|
ReservedInstancesListing |
withStatusMessage(String statusMessage)
The reason for the current status of the Reserved Instance listing.
|
ReservedInstancesListing |
withTags(Collection<Tag> tags)
Any tags assigned to the resource.
|
ReservedInstancesListing |
withTags(Tag... tags)
Any tags assigned to the resource.
|
ReservedInstancesListing |
withUpdateDate(Date updateDate)
The last modified timestamp of the listing.
|
public String getReservedInstancesListingId()
public void setReservedInstancesListingId(String reservedInstancesListingId)
reservedInstancesListingId
- The ID of the Reserved Instance listing.public ReservedInstancesListing withReservedInstancesListingId(String reservedInstancesListingId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesListingId
- The ID of the Reserved Instance listing.public String getReservedInstancesId()
public void setReservedInstancesId(String reservedInstancesId)
reservedInstancesId
- The ID of the Reserved Instance.public ReservedInstancesListing withReservedInstancesId(String reservedInstancesId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesId
- The ID of the Reserved Instance.public Date getCreateDate()
public void setCreateDate(Date createDate)
createDate
- The time the listing was created.public ReservedInstancesListing withCreateDate(Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate
- The time the listing was created.public Date getUpdateDate()
public void setUpdateDate(Date updateDate)
updateDate
- The last modified timestamp of the listing.public ReservedInstancesListing withUpdateDate(Date updateDate)
Returns a reference to this object so that method calls can be chained together.
updateDate
- The last modified timestamp of the listing.public String getStatus()
Constraints:
Allowed Values: active, pending, cancelled, closed
ListingStatus
public void setStatus(String status)
Constraints:
Allowed Values: active, pending, cancelled, closed
status
- The status of the Reserved Instance listing.ListingStatus
public ReservedInstancesListing withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, pending, cancelled, closed
status
- The status of the Reserved Instance listing.ListingStatus
public void setStatus(ListingStatus status)
Constraints:
Allowed Values: active, pending, cancelled, closed
status
- The status of the Reserved Instance listing.ListingStatus
public ReservedInstancesListing withStatus(ListingStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, pending, cancelled, closed
status
- The status of the Reserved Instance listing.ListingStatus
public String getStatusMessage()
public void setStatusMessage(String statusMessage)
statusMessage
- The reason for the current status of the Reserved Instance listing.
The response can be blank.public ReservedInstancesListing withStatusMessage(String statusMessage)
Returns a reference to this object so that method calls can be chained together.
statusMessage
- The reason for the current status of the Reserved Instance listing.
The response can be blank.public List<InstanceCount> getInstanceCounts()
public void setInstanceCounts(Collection<InstanceCount> instanceCounts)
instanceCounts
- The number of instances in this state.public ReservedInstancesListing withInstanceCounts(InstanceCount... instanceCounts)
NOTE: This method appends the values to the existing list (if
any). Use setInstanceCounts(java.util.Collection)
or withInstanceCounts(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
instanceCounts
- The number of instances in this state.public ReservedInstancesListing withInstanceCounts(Collection<InstanceCount> instanceCounts)
Returns a reference to this object so that method calls can be chained together.
instanceCounts
- The number of instances in this state.public List<PriceSchedule> getPriceSchedules()
public void setPriceSchedules(Collection<PriceSchedule> priceSchedules)
priceSchedules
- The price of the Reserved Instance listing.public ReservedInstancesListing withPriceSchedules(PriceSchedule... priceSchedules)
NOTE: This method appends the values to the existing list (if
any). Use setPriceSchedules(java.util.Collection)
or withPriceSchedules(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
priceSchedules
- The price of the Reserved Instance listing.public ReservedInstancesListing withPriceSchedules(Collection<PriceSchedule> priceSchedules)
Returns a reference to this object so that method calls can be chained together.
priceSchedules
- The price of the Reserved Instance listing.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- Any tags assigned to the resource.public ReservedInstancesListing withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the resource.public ReservedInstancesListing withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the resource.public String getClientToken()
public void setClientToken(String clientToken)
clientToken
- A unique, case-sensitive key supplied by the client to ensure that the
request is idempotent. For more information, see Ensuring
Idempotency.public ReservedInstancesListing withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- A unique, case-sensitive key supplied by the client to ensure that the
request is idempotent. For more information, see Ensuring
Idempotency.public String toString()
toString
in class Object
Object.toString()
public ReservedInstancesListing clone()
Copyright © 2015. All rights reserved.