public class ModifyReservedInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.
NOOP
Constructor and Description |
---|
ModifyReservedInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyReservedInstancesRequest |
clone() |
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive token you provide to ensure idempotency of
your modification request.
|
List<String> |
getReservedInstancesIds()
The IDs of the Reserved Instances to modify.
|
List<ReservedInstancesConfiguration> |
getTargetConfigurations()
The configuration settings for the Reserved Instances to modify.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of
your modification request.
|
void |
setReservedInstancesIds(Collection<String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.
|
void |
setTargetConfigurations(Collection<ReservedInstancesConfiguration> targetConfigurations)
The configuration settings for the Reserved Instances to modify.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyReservedInstancesRequest |
withClientToken(String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of
your modification request.
|
ModifyReservedInstancesRequest |
withReservedInstancesIds(Collection<String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.
|
ModifyReservedInstancesRequest |
withReservedInstancesIds(String... reservedInstancesIds)
The IDs of the Reserved Instances to modify.
|
ModifyReservedInstancesRequest |
withTargetConfigurations(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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getClientToken()
public void setClientToken(String clientToken)
clientToken
- A unique, case-sensitive token you provide to ensure idempotency of
your modification request. For more information, see Ensuring
Idempotency.public ModifyReservedInstancesRequest withClientToken(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. For more information, see Ensuring
Idempotency.public List<String> getReservedInstancesIds()
public void setReservedInstancesIds(Collection<String> reservedInstancesIds)
reservedInstancesIds
- The IDs of the Reserved Instances to modify.public ModifyReservedInstancesRequest withReservedInstancesIds(String... reservedInstancesIds)
NOTE: This method appends the values to the existing list (if
any). Use setReservedInstancesIds(java.util.Collection)
or
withReservedInstancesIds(java.util.Collection)
if you want to
override the existing values.
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(Collection<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 List<ReservedInstancesConfiguration> getTargetConfigurations()
public void setTargetConfigurations(Collection<ReservedInstancesConfiguration> targetConfigurations)
targetConfigurations
- The configuration settings for the Reserved Instances to modify.public ModifyReservedInstancesRequest withTargetConfigurations(ReservedInstancesConfiguration... targetConfigurations)
NOTE: This method appends the values to the existing list (if
any). Use setTargetConfigurations(java.util.Collection)
or
withTargetConfigurations(java.util.Collection)
if you want to
override the existing values.
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(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 String toString()
toString
in class Object
Object.toString()
public ModifyReservedInstancesRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.