Class ReservedInstancesModification

java.lang.Object
com.amazonaws.services.ec2.model.ReservedInstancesModification
All Implemented Interfaces:
Serializable, Cloneable

public class ReservedInstancesModification extends Object implements Serializable, Cloneable

Describes a Reserved Instance modification.

See Also:
  • Constructor Details

    • ReservedInstancesModification

      public ReservedInstancesModification()
  • Method Details

    • setReservedInstancesModificationId

      public void setReservedInstancesModificationId(String reservedInstancesModificationId)

      A unique ID for the Reserved Instance modification.

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

      public String getReservedInstancesModificationId()

      A unique ID for the Reserved Instance modification.

      Returns:
      A unique ID for the Reserved Instance modification.
    • withReservedInstancesModificationId

      public ReservedInstancesModification withReservedInstancesModificationId(String reservedInstancesModificationId)

      A unique ID for the Reserved Instance modification.

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

      public List<ReservedInstancesId> getReservedInstancesIds()

      The IDs of one or more Reserved Instances.

      Returns:
      The IDs of one or more Reserved Instances.
    • setReservedInstancesIds

      public void setReservedInstancesIds(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.

      NOTE: This method appends the values to the existing list (if any). Use setReservedInstancesIds(java.util.Collection) or withReservedInstancesIds(java.util.Collection) if you want to override the existing values.

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

      public ReservedInstancesModification withReservedInstancesIds(Collection<ReservedInstancesId> reservedInstancesIds)

      The IDs of one or more Reserved Instances.

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

      public 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(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.

      NOTE: This method appends the values to the existing list (if any). Use setModificationResults(java.util.Collection) or withModificationResults(java.util.Collection) if you want to override the existing values.

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

      public ReservedInstancesModification withModificationResults(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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreateDate

      public void setCreateDate(Date createDate)

      The time when the modification request was created.

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

      public Date getCreateDate()

      The time when the modification request was created.

      Returns:
      The time when the modification request was created.
    • withCreateDate

      public ReservedInstancesModification withCreateDate(Date createDate)

      The time when the modification request was created.

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

      public void setUpdateDate(Date updateDate)

      The time when the modification request was last updated.

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

      public Date getUpdateDate()

      The time when the modification request was last updated.

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

      public ReservedInstancesModification withUpdateDate(Date updateDate)

      The time when the modification request was last updated.

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

      public void setEffectiveDate(Date effectiveDate)

      The time for the modification to become effective.

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

      public Date getEffectiveDate()

      The time for the modification to become effective.

      Returns:
      The time for the modification to become effective.
    • withEffectiveDate

      public ReservedInstancesModification withEffectiveDate(Date effectiveDate)

      The time for the modification to become effective.

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

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

      public String getStatus()

      The status of the Reserved Instances modification request.

      Returns:
      The status of the Reserved Instances modification request.
    • withStatus

      public ReservedInstancesModification withStatus(String status)

      The status of the Reserved Instances modification request.

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

      public void setStatusMessage(String statusMessage)

      The reason for the status.

      Parameters:
      statusMessage - The reason for the status.
    • getStatusMessage

      public String getStatusMessage()

      The reason for the status.

      Returns:
      The reason for the status.
    • withStatusMessage

      public ReservedInstancesModification withStatusMessage(String statusMessage)

      The reason for the status.

      Parameters:
      statusMessage - The reason for the status.
      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 ReservedInstancesModification 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object