com.amazonaws.services.ec2.model
Class ReservedInstancesModification

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

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

Describes a Reserved Instance modification.

See Also:
Serialized Form

Constructor Summary
ReservedInstancesModification()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getClientToken()
          A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.
 java.util.Date getCreateDate()
          The time when the modification request was created.
 java.util.Date getEffectiveDate()
          The time for the modification to become effective.
 java.util.List<ReservedInstancesModificationResult> getModificationResults()
          Contains target configurations along with their corresponding new Reserved Instance IDs.
 java.util.List<ReservedInstancesId> getReservedInstancesIds()
          The IDs of one or more Reserved Instances.
 java.lang.String getReservedInstancesModificationId()
          A unique ID for the Reserved Instance modification.
 java.lang.String getStatus()
          The status of the Reserved Instances modification request.
 java.lang.String getStatusMessage()
          The reason for the status.
 java.util.Date getUpdateDate()
          The time when the modification request was last updated.
 int hashCode()
           
 void setClientToken(java.lang.String clientToken)
          A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.
 void setCreateDate(java.util.Date createDate)
          The time when the modification request was created.
 void setEffectiveDate(java.util.Date effectiveDate)
          The time for the modification to become effective.
 void setModificationResults(java.util.Collection<ReservedInstancesModificationResult> modificationResults)
          Contains target configurations along with their corresponding new Reserved Instance IDs.
 void setReservedInstancesIds(java.util.Collection<ReservedInstancesId> reservedInstancesIds)
          The IDs of one or more Reserved Instances.
 void setReservedInstancesModificationId(java.lang.String reservedInstancesModificationId)
          A unique ID for the Reserved Instance modification.
 void setStatus(java.lang.String status)
          The status of the Reserved Instances modification request.
 void setStatusMessage(java.lang.String statusMessage)
          The reason for the status.
 void setUpdateDate(java.util.Date updateDate)
          The time when the modification request was last updated.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReservedInstancesModification withClientToken(java.lang.String clientToken)
          A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.
 ReservedInstancesModification withCreateDate(java.util.Date createDate)
          The time when the modification request was created.
 ReservedInstancesModification withEffectiveDate(java.util.Date effectiveDate)
          The time for the modification to become effective.
 ReservedInstancesModification withModificationResults(java.util.Collection<ReservedInstancesModificationResult> modificationResults)
          Contains target configurations along with their corresponding new Reserved Instance IDs.
 ReservedInstancesModification withModificationResults(ReservedInstancesModificationResult... modificationResults)
          Contains target configurations along with their corresponding new Reserved Instance IDs.
 ReservedInstancesModification withReservedInstancesIds(java.util.Collection<ReservedInstancesId> reservedInstancesIds)
          The IDs of one or more Reserved Instances.
 ReservedInstancesModification withReservedInstancesIds(ReservedInstancesId... reservedInstancesIds)
          The IDs of one or more Reserved Instances.
 ReservedInstancesModification withReservedInstancesModificationId(java.lang.String reservedInstancesModificationId)
          A unique ID for the Reserved Instance modification.
 ReservedInstancesModification withStatus(java.lang.String status)
          The status of the Reserved Instances modification request.
 ReservedInstancesModification withStatusMessage(java.lang.String statusMessage)
          The reason for the status.
 ReservedInstancesModification withUpdateDate(java.util.Date updateDate)
          The time when the modification request was last updated.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedInstancesModification

public ReservedInstancesModification()
Method Detail

getReservedInstancesModificationId

public java.lang.String getReservedInstancesModificationId()
A unique ID for the Reserved Instance modification.

Returns:
A unique ID for the Reserved Instance modification.

setReservedInstancesModificationId

public void setReservedInstancesModificationId(java.lang.String reservedInstancesModificationId)
A unique ID for the Reserved Instance modification.

Parameters:
reservedInstancesModificationId - A unique ID for the Reserved Instance modification.

withReservedInstancesModificationId

public ReservedInstancesModification withReservedInstancesModificationId(java.lang.String reservedInstancesModificationId)
A unique ID for the Reserved Instance modification.

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

Parameters:
reservedInstancesModificationId - A unique ID for the Reserved Instance modification.
Returns:
A reference to this updated object so that method calls can be chained together.

getReservedInstancesIds

public java.util.List<ReservedInstancesId> getReservedInstancesIds()
The IDs of one or more Reserved Instances.

Returns:
The IDs of one or more Reserved Instances.

setReservedInstancesIds

public void setReservedInstancesIds(java.util.Collection<ReservedInstancesId> reservedInstancesIds)
The IDs of one or more Reserved Instances.

Parameters:
reservedInstancesIds - The IDs of one or more Reserved Instances.

withReservedInstancesIds

public ReservedInstancesModification withReservedInstancesIds(ReservedInstancesId... reservedInstancesIds)
The IDs of one or more Reserved Instances.

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

Parameters:
reservedInstancesIds - The IDs of one or more Reserved Instances.
Returns:
A reference to this updated object so that method calls can be chained together.

withReservedInstancesIds

public ReservedInstancesModification withReservedInstancesIds(java.util.Collection<ReservedInstancesId> reservedInstancesIds)
The IDs of one or more Reserved Instances.

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

Parameters:
reservedInstancesIds - The IDs of one or more Reserved Instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getModificationResults

public java.util.List<ReservedInstancesModificationResult> getModificationResults()
Contains target configurations along with their corresponding new Reserved Instance IDs.

Returns:
Contains target configurations along with their corresponding new Reserved Instance IDs.

setModificationResults

public void setModificationResults(java.util.Collection<ReservedInstancesModificationResult> modificationResults)
Contains target configurations along with their corresponding new Reserved Instance IDs.

Parameters:
modificationResults - Contains target configurations along with their corresponding new Reserved Instance IDs.

withModificationResults

public ReservedInstancesModification withModificationResults(ReservedInstancesModificationResult... modificationResults)
Contains target configurations along with their corresponding new Reserved Instance IDs.

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

Parameters:
modificationResults - Contains target configurations along with their corresponding new Reserved Instance IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

withModificationResults

public ReservedInstancesModification withModificationResults(java.util.Collection<ReservedInstancesModificationResult> modificationResults)
Contains target configurations along with their corresponding new Reserved Instance IDs.

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

Parameters:
modificationResults - Contains target configurations along with their corresponding new Reserved Instance IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreateDate

public java.util.Date getCreateDate()
The time when the modification request was created.

Returns:
The time when the modification request was created.

setCreateDate

public void setCreateDate(java.util.Date createDate)
The time when the modification request was created.

Parameters:
createDate - The time when the modification request was created.

withCreateDate

public ReservedInstancesModification withCreateDate(java.util.Date createDate)
The time when the modification request was created.

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

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

getUpdateDate

public java.util.Date getUpdateDate()
The time when the modification request was last updated.

Returns:
The time when the modification request was last updated.

setUpdateDate

public void setUpdateDate(java.util.Date updateDate)
The time when the modification request was last updated.

Parameters:
updateDate - The time when the modification request was last updated.

withUpdateDate

public ReservedInstancesModification withUpdateDate(java.util.Date updateDate)
The time when the modification request was last updated.

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

Parameters:
updateDate - The time when the modification request was last updated.
Returns:
A reference to this updated object so that method calls can be chained together.

getEffectiveDate

public java.util.Date getEffectiveDate()
The time for the modification to become effective.

Returns:
The time for the modification to become effective.

setEffectiveDate

public void setEffectiveDate(java.util.Date effectiveDate)
The time for the modification to become effective.

Parameters:
effectiveDate - The time for the modification to become effective.

withEffectiveDate

public ReservedInstancesModification withEffectiveDate(java.util.Date effectiveDate)
The time for the modification to become effective.

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

Parameters:
effectiveDate - The time for the modification to become effective.
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 Instances modification request.

Returns:
The status of the Reserved Instances modification request.

setStatus

public void setStatus(java.lang.String status)
The status of the Reserved Instances modification request.

Parameters:
status - The status of the Reserved Instances modification request.

withStatus

public ReservedInstancesModification withStatus(java.lang.String status)
The status of the Reserved Instances modification request.

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

Parameters:
status - The status of the Reserved Instances modification request.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatusMessage

public java.lang.String getStatusMessage()
The reason for the status.

Returns:
The reason for the status.

setStatusMessage

public void setStatusMessage(java.lang.String statusMessage)
The reason for the status.

Parameters:
statusMessage - The reason for the status.

withStatusMessage

public ReservedInstancesModification withStatusMessage(java.lang.String statusMessage)
The reason for the status.

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

Parameters:
statusMessage - The reason for the status.
Returns:
A reference to this updated object so that method calls can be chained together.

getClientToken

public java.lang.String getClientToken()
A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.

Returns:
A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.

setClientToken

public void setClientToken(java.lang.String clientToken)
A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.

Parameters:
clientToken - A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.

withClientToken

public ReservedInstancesModification withClientToken(java.lang.String clientToken)
A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.

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

Parameters:
clientToken - A unique, case-sensitive key supplied by the client to ensure that the modification request is idempotent.
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.