Class ReservedInstancesListing
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a Reserved Instance listing.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.The time the listing was created.The number of instances in this state.The price of the Reserved Instance listing.The ID of the Reserved Instance.The ID of the Reserved Instance listing.The status of the Reserved Instance listing.The reason for the current status of the Reserved Instance listing.getTags()
Any tags assigned to the resource.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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withClientToken
(String clientToken) A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.withCreateDate
(Date createDate) The time the listing was created.withInstanceCounts
(InstanceCount... instanceCounts) The number of instances in this state.withInstanceCounts
(Collection<InstanceCount> instanceCounts) The number of instances in this state.withPriceSchedules
(PriceSchedule... priceSchedules) The price of the Reserved Instance listing.withPriceSchedules
(Collection<PriceSchedule> priceSchedules) The price of the Reserved Instance listing.withReservedInstancesId
(String reservedInstancesId) The ID of the Reserved Instance.withReservedInstancesListingId
(String reservedInstancesListingId) The ID of the Reserved Instance listing.withStatus
(ListingStatus status) The status of the Reserved Instance listing.withStatus
(String status) The status of the Reserved Instance listing.withStatusMessage
(String statusMessage) The reason for the current status of the Reserved Instance listing.Any tags assigned to the resource.withTags
(Collection<Tag> tags) Any tags assigned to the resource.withUpdateDate
(Date updateDate) The last modified timestamp of the listing.
-
Constructor Details
-
ReservedInstancesListing
public ReservedInstancesListing()
-
-
Method Details
-
setReservedInstancesListingId
The ID of the Reserved Instance listing.
- Parameters:
reservedInstancesListingId
- The ID of the Reserved Instance listing.
-
getReservedInstancesListingId
The ID of the Reserved Instance listing.
- Returns:
- The ID of the Reserved Instance listing.
-
withReservedInstancesListingId
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
The ID of the Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the Reserved Instance.
-
getReservedInstancesId
The ID of the Reserved Instance.
- Returns:
- The ID of the Reserved Instance.
-
withReservedInstancesId
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
The time the listing was created.
- Parameters:
createDate
- The time the listing was created.
-
getCreateDate
The time the listing was created.
- Returns:
- The time the listing was created.
-
withCreateDate
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
The last modified timestamp of the listing.
- Parameters:
updateDate
- The last modified timestamp of the listing.
-
getUpdateDate
The last modified timestamp of the listing.
- Returns:
- The last modified timestamp of the listing.
-
withUpdateDate
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
The status of the Reserved Instance listing.
- Parameters:
status
- The status of the Reserved Instance listing.- See Also:
-
getStatus
The status of the Reserved Instance listing.
- Returns:
- The status of the Reserved Instance listing.
- See Also:
-
withStatus
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:
-
setStatus
The status of the Reserved Instance listing.
- Parameters:
status
- The status of the Reserved Instance listing.- See Also:
-
withStatus
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:
-
setStatusMessage
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
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
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
The number of instances in this state.
- Returns:
- The number of instances in this state.
-
setInstanceCounts
The number of instances in this state.
- Parameters:
instanceCounts
- The number of instances in this state.
-
withInstanceCounts
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
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
The price of the Reserved Instance listing.
- Returns:
- The price of the Reserved Instance listing.
-
setPriceSchedules
The price of the Reserved Instance listing.
- Parameters:
priceSchedules
- The price of the Reserved Instance listing.
-
withPriceSchedules
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
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
Any tags assigned to the resource.
- Returns:
- Any tags assigned to the resource.
-
setTags
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.
-
withTags
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-