com.amazonaws.services.ec2.model
Class ModifyReservedInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ModifyReservedInstancesRequest
All Implemented Interfaces:
java.io.Serializable

public class ModifyReservedInstancesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the 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.

See Also:
AmazonEC2.modifyReservedInstances(ModifyReservedInstancesRequest), Serialized Form

Constructor Summary
ModifyReservedInstancesRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModifyReservedInstancesRequest

public ModifyReservedInstancesRequest()
Method Detail

getClientToken

public java.lang.String getClientToken()
A unique, case-sensitive token you provide to ensure idempotency of your modification request.

Returns:
A unique, case-sensitive token you provide to ensure idempotency of your modification request.

setClientToken

public void setClientToken(java.lang.String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of your modification request.

Parameters:
clientToken - A unique, case-sensitive token you provide to ensure idempotency of your modification request.

withClientToken

public ModifyReservedInstancesRequest withClientToken(java.lang.String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of your modification request.

Returns a reference to this object so that method calls can be chained together.

Parameters:
clientToken - A unique, case-sensitive token you provide to ensure idempotency of your modification request.
Returns:
A reference to this updated object so that method calls can be chained together.

getReservedInstancesIds

public java.util.List<java.lang.String> getReservedInstancesIds()
The IDs of the Reserved Instances to modify.

Returns:
The IDs of the Reserved Instances to modify.

setReservedInstancesIds

public void setReservedInstancesIds(java.util.Collection<java.lang.String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.

Parameters:
reservedInstancesIds - The IDs of the Reserved Instances to modify.

withReservedInstancesIds

public ModifyReservedInstancesRequest withReservedInstancesIds(java.lang.String... reservedInstancesIds)
The IDs of the Reserved Instances to modify.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesIds - The IDs of the Reserved Instances to modify.
Returns:
A reference to this updated object so that method calls can be chained together.

withReservedInstancesIds

public ModifyReservedInstancesRequest withReservedInstancesIds(java.util.Collection<java.lang.String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesIds - The IDs of the Reserved Instances to modify.
Returns:
A reference to this updated object so that method calls can be chained together.

getTargetConfigurations

public java.util.List<ReservedInstancesConfiguration> getTargetConfigurations()
The configuration settings for the Reserved Instances to modify.

Returns:
The configuration settings for the Reserved Instances to modify.

setTargetConfigurations

public void setTargetConfigurations(java.util.Collection<ReservedInstancesConfiguration> targetConfigurations)
The configuration settings for the Reserved Instances to modify.

Parameters:
targetConfigurations - The configuration settings for the Reserved Instances to modify.

withTargetConfigurations

public ModifyReservedInstancesRequest withTargetConfigurations(ReservedInstancesConfiguration... targetConfigurations)
The configuration settings for the Reserved Instances to modify.

Returns a reference to this object so that method calls can be chained together.

Parameters:
targetConfigurations - The configuration settings for the Reserved Instances to modify.
Returns:
A reference to this updated object so that method calls can be chained together.

withTargetConfigurations

public ModifyReservedInstancesRequest withTargetConfigurations(java.util.Collection<ReservedInstancesConfiguration> targetConfigurations)
The configuration settings for the Reserved Instances to modify.

Returns a reference to this object so that method calls can be chained together.

Parameters:
targetConfigurations - The configuration settings for the Reserved Instances to modify.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.