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 ReservedInstancesModificationclone()booleanequals(Object obj)StringgetClientToken()A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.DategetCreateDate()The time when the modification request was created.DategetEffectiveDate()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.StringgetReservedInstancesModificationId()A unique ID for the Reserved Instance modification.StringgetStatus()The status of the Reserved Instances modification request.StringgetStatusMessage()The reason for the status.DategetUpdateDate()The time when the modification request was last updated.inthashCode()voidsetClientToken(String clientToken)A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.voidsetCreateDate(Date createDate)The time when the modification request was created.voidsetEffectiveDate(Date effectiveDate)The time for the modification to become effective.voidsetModificationResults(Collection<ReservedInstancesModificationResult> modificationResults)Contains target configurations along with their corresponding new Reserved Instance IDs.voidsetReservedInstancesIds(Collection<ReservedInstancesId> reservedInstancesIds)The IDs of one or more Reserved Instances.voidsetReservedInstancesModificationId(String reservedInstancesModificationId)A unique ID for the Reserved Instance modification.voidsetStatus(String status)The status of the Reserved Instances modification request.voidsetStatusMessage(String statusMessage)The reason for the status.voidsetUpdateDate(Date updateDate)The time when the modification request was last updated.StringtoString()Returns a string representation of this object; useful for testing and debugging.ReservedInstancesModificationwithClientToken(String clientToken)A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.ReservedInstancesModificationwithCreateDate(Date createDate)The time when the modification request was created.ReservedInstancesModificationwithEffectiveDate(Date effectiveDate)The time for the modification to become effective.ReservedInstancesModificationwithModificationResults(ReservedInstancesModificationResult... modificationResults)Contains target configurations along with their corresponding new Reserved Instance IDs.ReservedInstancesModificationwithModificationResults(Collection<ReservedInstancesModificationResult> modificationResults)Contains target configurations along with their corresponding new Reserved Instance IDs.ReservedInstancesModificationwithReservedInstancesIds(ReservedInstancesId... reservedInstancesIds)The IDs of one or more Reserved Instances.ReservedInstancesModificationwithReservedInstancesIds(Collection<ReservedInstancesId> reservedInstancesIds)The IDs of one or more Reserved Instances.ReservedInstancesModificationwithReservedInstancesModificationId(String reservedInstancesModificationId)A unique ID for the Reserved Instance modification.ReservedInstancesModificationwithStatus(String status)The status of the Reserved Instances modification request.ReservedInstancesModificationwithStatusMessage(String statusMessage)The reason for the status.ReservedInstancesModificationwithUpdateDate(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedInstancesModification clone()
-
-