Class ReservedInstancesListing
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ReservedInstancesListing
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ReservedInstancesListing extends Object implements Serializable, Cloneable
Describes a Reserved Instance listing.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedInstancesListing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(InstanceCount... instanceCounts)
The number of instances in this state.ReservedInstancesListing
withInstanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.ReservedInstancesListing
withPriceSchedules(PriceSchedule... priceSchedules)
The price of the Reserved Instance listing.ReservedInstancesListing
withPriceSchedules(Collection<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(Tag... tags)
Any tags assigned to the resource.ReservedInstancesListing
withTags(Collection<Tag> tags)
Any tags assigned to the resource.ReservedInstancesListing
withUpdateDate(Date updateDate)
The last modified timestamp of the listing.
-
-
-
Method Detail
-
setReservedInstancesListingId
public void setReservedInstancesListingId(String reservedInstancesListingId)
The ID of the Reserved Instance listing.
- Parameters:
reservedInstancesListingId
- The ID of the Reserved Instance listing.
-
getReservedInstancesListingId
public String getReservedInstancesListingId()
The ID of the Reserved Instance listing.
- Returns:
- The ID of the Reserved Instance listing.
-
withReservedInstancesListingId
public ReservedInstancesListing withReservedInstancesListingId(String reservedInstancesListingId)
The ID of the Reserved Instance listing.
- Parameters:
reservedInstancesListingId
- The ID of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReservedInstancesId
public void setReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the Reserved Instance.
-
getReservedInstancesId
public String getReservedInstancesId()
The ID of the Reserved Instance.
- Returns:
- The ID of the Reserved Instance.
-
withReservedInstancesId
public ReservedInstancesListing withReservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
public void setCreateDate(Date createDate)
The time the listing was created.
- Parameters:
createDate
- The time the listing was created.
-
getCreateDate
public Date getCreateDate()
The time the listing was created.
- Returns:
- The time the listing was created.
-
withCreateDate
public ReservedInstancesListing withCreateDate(Date createDate)
The time the listing was created.
- Parameters:
createDate
- The time the listing was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUpdateDate
public void setUpdateDate(Date updateDate)
The last modified timestamp of the listing.
- Parameters:
updateDate
- The last modified timestamp of the listing.
-
getUpdateDate
public Date getUpdateDate()
The last modified timestamp of the listing.
- Returns:
- The last modified timestamp of the listing.
-
withUpdateDate
public ReservedInstancesListing withUpdateDate(Date updateDate)
The last modified timestamp of the listing.
- Parameters:
updateDate
- The last modified timestamp of the listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The status of the Reserved Instance listing.
- Parameters:
status
- The status of the Reserved Instance listing.- See Also:
ListingStatus
-
getStatus
public String getStatus()
The status of the Reserved Instance listing.
- Returns:
- The status of the Reserved Instance listing.
- See Also:
ListingStatus
-
withStatus
public ReservedInstancesListing withStatus(String status)
The status of the Reserved Instance listing.
- Parameters:
status
- The status of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListingStatus
-
setStatus
public void setStatus(ListingStatus status)
The status of the Reserved Instance listing.
- Parameters:
status
- The status of the Reserved Instance listing.- See Also:
ListingStatus
-
withStatus
public ReservedInstancesListing withStatus(ListingStatus status)
The status of the Reserved Instance listing.
- Parameters:
status
- The status of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListingStatus
-
setStatusMessage
public void setStatusMessage(String statusMessage)
The reason for the current status of the Reserved Instance listing. The response can be blank.
- Parameters:
statusMessage
- The reason for the current status of the Reserved Instance listing. The response can be blank.
-
getStatusMessage
public String getStatusMessage()
The reason for the current status of the Reserved Instance listing. The response can be blank.
- Returns:
- The reason for the current status of the Reserved Instance listing. The response can be blank.
-
withStatusMessage
public ReservedInstancesListing withStatusMessage(String statusMessage)
The reason for the current status of the Reserved Instance listing. The response can be blank.
- Parameters:
statusMessage
- The reason for the current status of the Reserved Instance listing. The response can be blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstanceCounts
public List<InstanceCount> getInstanceCounts()
The number of instances in this state.
- Returns:
- The number of instances in this state.
-
setInstanceCounts
public void setInstanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.
- Parameters:
instanceCounts
- The number of instances in this state.
-
withInstanceCounts
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)
orwithInstanceCounts(java.util.Collection)
if you want to override the existing values.- Parameters:
instanceCounts
- The number of instances in this state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstanceCounts
public ReservedInstancesListing withInstanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.
- Parameters:
instanceCounts
- The number of instances in this state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPriceSchedules
public List<PriceSchedule> getPriceSchedules()
The price of the Reserved Instance listing.
- Returns:
- The price of the Reserved Instance listing.
-
setPriceSchedules
public void setPriceSchedules(Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.
- Parameters:
priceSchedules
- The price of the Reserved Instance listing.
-
withPriceSchedules
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)
orwithPriceSchedules(java.util.Collection)
if you want to override the existing values.- Parameters:
priceSchedules
- The price of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPriceSchedules
public ReservedInstancesListing withPriceSchedules(Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.
- Parameters:
priceSchedules
- The price of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the resource.
- Returns:
- Any tags assigned to the resource.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.
-
withTags
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)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public ReservedInstancesListing withTags(Collection<Tag> tags)
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientToken
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.
- Parameters:
clientToken
- A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
-
getClientToken
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.
- Returns:
- A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
-
withClientToken
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.
- Parameters:
clientToken
- A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedInstancesListing clone()
-
-