com.amazonaws.services.ec2.model
Class ReservedInstancesListing

java.lang.Object
  extended by com.amazonaws.services.ec2.model.ReservedInstancesListing
All Implemented Interfaces:
java.io.Serializable

public class ReservedInstancesListing
extends java.lang.Object
implements java.io.Serializable

Describes a Reserved Instance listing.

See Also:
Serialized Form

Constructor Summary
ReservedInstancesListing()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getClientToken()
          The idempotency token you provided when you created the listing.
 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)
          The idempotency token you provided when you created the listing.
 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)
          The idempotency token you provided when you created the listing.
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedInstancesListing

public ReservedInstancesListing()
Method Detail

getReservedInstancesListingId

public java.lang.String getReservedInstancesListingId()
The ID of the Reserved Instance listing.

Returns:
The ID of the Reserved Instance listing.

setReservedInstancesListingId

public void setReservedInstancesListingId(java.lang.String reservedInstancesListingId)
The ID of the Reserved Instance listing.

Parameters:
reservedInstancesListingId - The ID of the Reserved Instance listing.

withReservedInstancesListingId

public ReservedInstancesListing withReservedInstancesListingId(java.lang.String reservedInstancesListingId)
The ID of the Reserved Instance listing.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesListingId - The ID of the Reserved Instance listing.
Returns:
A reference to this updated object so that method calls can be chained together.

getReservedInstancesId

public java.lang.String getReservedInstancesId()
The ID of the Reserved Instance.

Returns:
The ID of the Reserved Instance.

setReservedInstancesId

public void setReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.

Parameters:
reservedInstancesId - The ID of the Reserved Instance.

withReservedInstancesId

public ReservedInstancesListing withReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the Reserved Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesId - The ID of the Reserved Instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreateDate

public java.util.Date getCreateDate()
The time the listing was created.

Returns:
The time the listing was created.

setCreateDate

public void setCreateDate(java.util.Date createDate)
The time the listing was created.

Parameters:
createDate - The time the listing was created.

withCreateDate

public ReservedInstancesListing withCreateDate(java.util.Date createDate)
The time the listing was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createDate - The time the listing was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getUpdateDate

public java.util.Date getUpdateDate()
The last modified timestamp of the listing.

Returns:
The last modified timestamp of the listing.

setUpdateDate

public void setUpdateDate(java.util.Date updateDate)
The last modified timestamp of the listing.

Parameters:
updateDate - The last modified timestamp of the listing.

withUpdateDate

public ReservedInstancesListing withUpdateDate(java.util.Date updateDate)
The last modified timestamp of the listing.

Returns a reference to this object so that method calls can be chained together.

Parameters:
updateDate - The last modified timestamp of the listing.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public java.lang.String getStatus()
The status of the Reserved Instance listing.

Constraints:
Allowed Values: active, pending, cancelled, closed

Returns:
The status of the Reserved Instance listing.
See Also:
ListingStatus

setStatus

public void setStatus(java.lang.String status)
The status of the Reserved Instance listing.

Constraints:
Allowed Values: active, pending, cancelled, closed

Parameters:
status - The status of the Reserved Instance listing.
See Also:
ListingStatus

withStatus

public ReservedInstancesListing withStatus(java.lang.String status)
The status of the Reserved Instance listing.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: active, pending, cancelled, closed

Parameters:
status - The status of the Reserved Instance listing.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: active, pending, cancelled, closed

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: active, pending, cancelled, closed

Parameters:
status - The status of the Reserved Instance listing.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ListingStatus

getStatusMessage

public java.lang.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.

setStatusMessage

public void setStatusMessage(java.lang.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.

withStatusMessage

public ReservedInstancesListing withStatusMessage(java.lang.String statusMessage)
The reason for the current status of the Reserved Instance listing. The response can be blank.

Returns a reference to this object so that method calls can be chained together.

Parameters:
statusMessage - The reason for the current status of the Reserved Instance listing. The response can be blank.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceCounts

public java.util.List<InstanceCount> getInstanceCounts()
The number of instances in this state.

Returns:
The number of instances in this state.

setInstanceCounts

public void setInstanceCounts(java.util.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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCounts - The number of instances in this state.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceCounts

public ReservedInstancesListing withInstanceCounts(java.util.Collection<InstanceCount> instanceCounts)
The number of instances in this state.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCounts - The number of instances in this state.
Returns:
A reference to this updated object so that method calls can be chained together.

getPriceSchedules

public java.util.List<PriceSchedule> getPriceSchedules()
The price of the Reserved Instance listing.

Returns:
The price of the Reserved Instance listing.

setPriceSchedules

public void setPriceSchedules(java.util.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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
priceSchedules - The price of the Reserved Instance listing.
Returns:
A reference to this updated object so that method calls can be chained together.

withPriceSchedules

public ReservedInstancesListing withPriceSchedules(java.util.Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.

Returns a reference to this object so that method calls can be chained together.

Parameters:
priceSchedules - The price of the Reserved Instance listing.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the resource.

Returns:
Any tags assigned to the resource.

setTags

public void setTags(java.util.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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public ReservedInstancesListing withTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

getClientToken

public java.lang.String getClientToken()
The idempotency token you provided when you created the listing.

Returns:
The idempotency token you provided when you created the listing.

setClientToken

public void setClientToken(java.lang.String clientToken)
The idempotency token you provided when you created the listing.

Parameters:
clientToken - The idempotency token you provided when you created the listing.

withClientToken

public ReservedInstancesListing withClientToken(java.lang.String clientToken)
The idempotency token you provided when you created the listing.

Returns a reference to this object so that method calls can be chained together.

Parameters:
clientToken - The idempotency token you provided when you created the listing.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.