@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 void setClientToken(String clientToken)
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
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 getClientToken()
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)
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
clientToken
- A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more
information, see Ensuring
Idempotency.public void setCreateDate(Date createDate)
The time the listing was created.
createDate
- The time the listing was created.public Date getCreateDate()
The time the listing was created.
public ReservedInstancesListing withCreateDate(Date createDate)
The time the listing was created.
createDate
- The time the listing was created.public List<InstanceCount> getInstanceCounts()
The number of instances in this state.
public void setInstanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.
instanceCounts
- The number of instances in this state.public ReservedInstancesListing withInstanceCounts(InstanceCount... instanceCounts)
The number of instances in this state.
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.
instanceCounts
- The number of instances in this state.public ReservedInstancesListing withInstanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.
instanceCounts
- The number of instances in this state.public List<PriceSchedule> getPriceSchedules()
The price of the Reserved Instance listing.
public void setPriceSchedules(Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.
priceSchedules
- The price of the Reserved Instance listing.public ReservedInstancesListing withPriceSchedules(PriceSchedule... priceSchedules)
The price of the Reserved Instance listing.
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.
priceSchedules
- The price of the Reserved Instance listing.public ReservedInstancesListing withPriceSchedules(Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.
priceSchedules
- The price of the Reserved Instance listing.public void setReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
reservedInstancesId
- The ID of the Reserved Instance.public String getReservedInstancesId()
The ID of the Reserved Instance.
public ReservedInstancesListing withReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
reservedInstancesId
- The ID of the Reserved Instance.public void setReservedInstancesListingId(String reservedInstancesListingId)
The ID of the Reserved Instance listing.
reservedInstancesListingId
- The ID of the Reserved Instance listing.public String getReservedInstancesListingId()
The ID of the Reserved Instance listing.
public ReservedInstancesListing withReservedInstancesListingId(String reservedInstancesListingId)
The ID of the Reserved Instance listing.
reservedInstancesListingId
- The ID of the Reserved Instance listing.public void setStatus(String status)
The status of the Reserved Instance listing.
status
- The status of the Reserved Instance listing.ListingStatus
public String getStatus()
The status of the Reserved Instance listing.
ListingStatus
public ReservedInstancesListing withStatus(String status)
The status of the Reserved Instance listing.
status
- The status of the Reserved Instance listing.ListingStatus
public void setStatus(ListingStatus status)
The status of the Reserved Instance listing.
status
- The status of the Reserved Instance listing.ListingStatus
public ReservedInstancesListing withStatus(ListingStatus status)
The status of the Reserved Instance listing.
status
- The status of the Reserved Instance listing.ListingStatus
public void setStatusMessage(String statusMessage)
The reason for the current status of the Reserved Instance listing. The response can be blank.
statusMessage
- The reason for the current status of the Reserved Instance listing. The response can be blank.public String getStatusMessage()
The reason for the current status of the Reserved Instance listing. The response can be blank.
public ReservedInstancesListing withStatusMessage(String statusMessage)
The reason for the current status of the Reserved Instance listing. The response can be blank.
statusMessage
- The reason for the current status of the Reserved Instance listing. The response can be blank.public List<Tag> getTags()
Any tags assigned to the resource.
public void setTags(Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.public ReservedInstancesListing withTags(Tag... tags)
Any tags assigned to the resource.
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.
tags
- Any tags assigned to the resource.public ReservedInstancesListing withTags(Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.public void setUpdateDate(Date updateDate)
The last modified timestamp of the listing.
updateDate
- The last modified timestamp of the listing.public Date getUpdateDate()
The last modified timestamp of the listing.
public ReservedInstancesListing withUpdateDate(Date updateDate)
The last modified timestamp of the listing.
updateDate
- The last modified timestamp of the listing.public String toString()
toString
in class Object
Object.toString()
public ReservedInstancesListing clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.