Class ReservedInstancesModification
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a Reserved Instance modification.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.The time when the modification request was created.The time for the modification to become effective.Contains target configurations along with their corresponding new Reserved Instance IDs.The IDs of one or more Reserved Instances.A unique ID for the Reserved Instance modification.The status of the Reserved Instances modification request.The reason for the status.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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withClientToken
(String clientToken) A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.withCreateDate
(Date createDate) The time when the modification request was created.withEffectiveDate
(Date effectiveDate) The time for the modification to become effective.withModificationResults
(ReservedInstancesModificationResult... modificationResults) Contains target configurations along with their corresponding new Reserved Instance IDs.withModificationResults
(Collection<ReservedInstancesModificationResult> modificationResults) Contains target configurations along with their corresponding new Reserved Instance IDs.withReservedInstancesIds
(ReservedInstancesId... reservedInstancesIds) The IDs of one or more Reserved Instances.withReservedInstancesIds
(Collection<ReservedInstancesId> reservedInstancesIds) The IDs of one or more Reserved Instances.withReservedInstancesModificationId
(String reservedInstancesModificationId) A unique ID for the Reserved Instance modification.withStatus
(String status) The status of the Reserved Instances modification request.withStatusMessage
(String statusMessage) The reason for the status.withUpdateDate
(Date updateDate) The time when the modification request was last updated.
-
Constructor Details
-
ReservedInstancesModification
public ReservedInstancesModification()
-
-
Method Details
-
setReservedInstancesModificationId
A unique ID for the Reserved Instance modification.
- Parameters:
reservedInstancesModificationId
- A unique ID for the Reserved Instance modification.
-
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
The IDs of one or more Reserved Instances.
- Returns:
- The IDs of one or more Reserved Instances.
-
setReservedInstancesIds
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
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
The time when the modification request was created.
- Parameters:
createDate
- The time when the modification request was created.
-
getCreateDate
The time when the modification request was created.
- Returns:
- The time when the modification request was created.
-
withCreateDate
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
The time when the modification request was last updated.
- Parameters:
updateDate
- The time when the modification request was last updated.
-
getUpdateDate
The time when the modification request was last updated.
- Returns:
- The time when the modification request was last updated.
-
withUpdateDate
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
The time for the modification to become effective.
- Parameters:
effectiveDate
- The time for the modification to become effective.
-
getEffectiveDate
The time for the modification to become effective.
- Returns:
- The time for the modification to become effective.
-
withEffectiveDate
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
The status of the Reserved Instances modification request.
- Parameters:
status
- The status of the Reserved Instances modification request.
-
getStatus
The status of the Reserved Instances modification request.
- Returns:
- The status of the Reserved Instances modification request.
-
withStatus
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
The reason for the status.
- Parameters:
statusMessage
- The reason for the status.
-
getStatusMessage
The reason for the status.
- Returns:
- The reason for the status.
-
withStatusMessage
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-