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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedInstancesModification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReservedInstancesModification
clone()
boolean
equals(Object obj)
String
getClientToken()
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.Date
getCreateDate()
The time when the modification request was created.Date
getEffectiveDate()
The time for the modification to become effective.List<ReservedInstancesModificationResult>
getModificationResults()
Contains target configurations along with their corresponding new Reserved Instance IDs.List<ReservedInstancesId>
getReservedInstancesIds()
The IDs of one or more Reserved Instances.String
getReservedInstancesModificationId()
A unique ID for the Reserved Instance modification.String
getStatus()
The status of the Reserved Instances modification request.String
getStatusMessage()
The reason for the status.Date
getUpdateDate()
The time when the modification request was last updated.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 when the modification request was created.void
setEffectiveDate(Date effectiveDate)
The time for the modification to become effective.void
setModificationResults(Collection<ReservedInstancesModificationResult> modificationResults)
Contains target configurations along with their corresponding new Reserved Instance IDs.void
setReservedInstancesIds(Collection<ReservedInstancesId> reservedInstancesIds)
The IDs of one or more Reserved Instances.void
setReservedInstancesModificationId(String reservedInstancesModificationId)
A unique ID for the Reserved Instance modification.void
setStatus(String status)
The status of the Reserved Instances modification request.void
setStatusMessage(String statusMessage)
The reason for the status.void
setUpdateDate(Date updateDate)
The time when the modification request was last updated.String
toString()
Returns a string representation of this object; useful for testing and debugging.ReservedInstancesModification
withClientToken(String clientToken)
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.ReservedInstancesModification
withCreateDate(Date createDate)
The time when the modification request was created.ReservedInstancesModification
withEffectiveDate(Date effectiveDate)
The time for the modification to become effective.ReservedInstancesModification
withModificationResults(ReservedInstancesModificationResult... modificationResults)
Contains target configurations along with their corresponding new Reserved Instance IDs.ReservedInstancesModification
withModificationResults(Collection<ReservedInstancesModificationResult> modificationResults)
Contains target configurations along with their corresponding new Reserved Instance IDs.ReservedInstancesModification
withReservedInstancesIds(ReservedInstancesId... reservedInstancesIds)
The IDs of one or more Reserved Instances.ReservedInstancesModification
withReservedInstancesIds(Collection<ReservedInstancesId> reservedInstancesIds)
The IDs of one or more Reserved Instances.ReservedInstancesModification
withReservedInstancesModificationId(String reservedInstancesModificationId)
A unique ID for the Reserved Instance modification.ReservedInstancesModification
withStatus(String status)
The status of the Reserved Instances modification request.ReservedInstancesModification
withStatusMessage(String statusMessage)
The reason for the status.ReservedInstancesModification
withUpdateDate(Date updateDate)
The time when the modification request was last updated.
-
-
-
Method Detail
-
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)
orwithReservedInstancesIds(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)
orwithModificationResults(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedInstancesModification clone()
-
-