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