public class ModifyReservedInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable
ModifyReservedInstances operation.
Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.
| Constructor and Description |
|---|
ModifyReservedInstancesRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
A unique, case-sensitive token you provide to ensure idempotency of
your modification request.
|
java.util.List<java.lang.String> |
getReservedInstancesIds()
The IDs of the Reserved Instances to modify.
|
java.util.List<ReservedInstancesConfiguration> |
getTargetConfigurations()
The configuration settings for the Reserved Instances to modify.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of
your modification request.
|
void |
setReservedInstancesIds(java.util.Collection<java.lang.String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.
|
void |
setTargetConfigurations(java.util.Collection<ReservedInstancesConfiguration> targetConfigurations)
The configuration settings for the Reserved Instances to modify.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyReservedInstancesRequest |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of
your modification request.
|
ModifyReservedInstancesRequest |
withReservedInstancesIds(java.util.Collection<java.lang.String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.
|
ModifyReservedInstancesRequest |
withReservedInstancesIds(java.lang.String... reservedInstancesIds)
The IDs of the Reserved Instances to modify.
|
ModifyReservedInstancesRequest |
withTargetConfigurations(java.util.Collection<ReservedInstancesConfiguration> targetConfigurations)
The configuration settings for the Reserved Instances to modify.
|
ModifyReservedInstancesRequest |
withTargetConfigurations(ReservedInstancesConfiguration... targetConfigurations)
The configuration settings for the Reserved Instances to modify.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken - A unique, case-sensitive token you provide to ensure idempotency of
your modification request.public ModifyReservedInstancesRequest withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken - A unique, case-sensitive token you provide to ensure idempotency of
your modification request.public java.util.List<java.lang.String> getReservedInstancesIds()
public void setReservedInstancesIds(java.util.Collection<java.lang.String> reservedInstancesIds)
reservedInstancesIds - The IDs of the Reserved Instances to modify.public ModifyReservedInstancesRequest withReservedInstancesIds(java.lang.String... reservedInstancesIds)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesIds - The IDs of the Reserved Instances to modify.public ModifyReservedInstancesRequest withReservedInstancesIds(java.util.Collection<java.lang.String> reservedInstancesIds)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesIds - The IDs of the Reserved Instances to modify.public java.util.List<ReservedInstancesConfiguration> getTargetConfigurations()
public void setTargetConfigurations(java.util.Collection<ReservedInstancesConfiguration> targetConfigurations)
targetConfigurations - The configuration settings for the Reserved Instances to modify.public ModifyReservedInstancesRequest withTargetConfigurations(ReservedInstancesConfiguration... targetConfigurations)
Returns a reference to this object so that method calls can be chained together.
targetConfigurations - The configuration settings for the Reserved Instances to modify.public ModifyReservedInstancesRequest withTargetConfigurations(java.util.Collection<ReservedInstancesConfiguration> targetConfigurations)
Returns a reference to this object so that method calls can be chained together.
targetConfigurations - The configuration settings for the Reserved Instances to modify.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object