public class ReservedInstancesModification
extends java.lang.Object
implements java.io.Serializable
Describes a Reserved Instance modification.
Constructor and Description |
---|
ReservedInstancesModification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
A unique, case-sensitive key supplied by the client to ensure that the
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
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
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.
|
public java.lang.String getReservedInstancesModificationId()
public void setReservedInstancesModificationId(java.lang.String reservedInstancesModificationId)
reservedInstancesModificationId
- A unique ID for the Reserved Instance modification.public ReservedInstancesModification withReservedInstancesModificationId(java.lang.String reservedInstancesModificationId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesModificationId
- A unique ID for the Reserved Instance modification.public java.util.List<ReservedInstancesId> getReservedInstancesIds()
public void setReservedInstancesIds(java.util.Collection<ReservedInstancesId> reservedInstancesIds)
reservedInstancesIds
- The IDs of one or more Reserved Instances.public ReservedInstancesModification withReservedInstancesIds(ReservedInstancesId... reservedInstancesIds)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesIds
- The IDs of one or more Reserved Instances.public ReservedInstancesModification withReservedInstancesIds(java.util.Collection<ReservedInstancesId> reservedInstancesIds)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesIds
- The IDs of one or more Reserved Instances.public java.util.List<ReservedInstancesModificationResult> getModificationResults()
public void setModificationResults(java.util.Collection<ReservedInstancesModificationResult> modificationResults)
modificationResults
- Contains target configurations along with their corresponding new
Reserved Instance IDs.public ReservedInstancesModification withModificationResults(ReservedInstancesModificationResult... modificationResults)
Returns a reference to this object so that method calls can be chained together.
modificationResults
- Contains target configurations along with their corresponding new
Reserved Instance IDs.public ReservedInstancesModification withModificationResults(java.util.Collection<ReservedInstancesModificationResult> modificationResults)
Returns a reference to this object so that method calls can be chained together.
modificationResults
- Contains target configurations along with their corresponding new
Reserved Instance IDs.public java.util.Date getCreateDate()
public void setCreateDate(java.util.Date createDate)
createDate
- The time when the modification request was created.public ReservedInstancesModification withCreateDate(java.util.Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate
- The time when the modification request was created.public java.util.Date getUpdateDate()
public void setUpdateDate(java.util.Date updateDate)
updateDate
- The time when the modification request was last updated.public ReservedInstancesModification withUpdateDate(java.util.Date updateDate)
Returns a reference to this object so that method calls can be chained together.
updateDate
- The time when the modification request was last updated.public java.util.Date getEffectiveDate()
public void setEffectiveDate(java.util.Date effectiveDate)
effectiveDate
- The time for the modification to become effective.public ReservedInstancesModification withEffectiveDate(java.util.Date effectiveDate)
Returns a reference to this object so that method calls can be chained together.
effectiveDate
- The time for the modification to become effective.public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- The status of the Reserved Instances modification request.public ReservedInstancesModification withStatus(java.lang.String status)
Returns a reference to this object so that method calls can be chained together.
status
- The status of the Reserved Instances modification request.public java.lang.String getStatusMessage()
public void setStatusMessage(java.lang.String statusMessage)
statusMessage
- The reason for the status.public ReservedInstancesModification withStatusMessage(java.lang.String statusMessage)
Returns a reference to this object so that method calls can be chained together.
statusMessage
- The reason for the status.public java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken
- A unique, case-sensitive key supplied by the client to ensure that the
request is idempotent. For more information, see Ensuring
Idempotency.public ReservedInstancesModification withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- A unique, case-sensitive key supplied by the client to ensure that the
request is idempotent. For more information, see Ensuring
Idempotency.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.