Class ModifyReservedInstancesRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.ModifyReservedInstancesRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifyReservedInstancesRequest>
,Serializable
,Cloneable
public class ModifyReservedInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyReservedInstancesRequest>
Contains the parameters for ModifyReservedInstances.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ModifyReservedInstancesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifyReservedInstancesRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getClientToken()
A unique, case-sensitive token you provide to ensure idempotency of your modification request.Request<ModifyReservedInstancesRequest>
getDryRunRequest()
This method is intended for internal use only.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(String... reservedInstancesIds)
The IDs of the Reserved Instances to modify.ModifyReservedInstancesRequest
withReservedInstancesIds(Collection<String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.ModifyReservedInstancesRequest
withTargetConfigurations(ReservedInstancesConfiguration... targetConfigurations)
The configuration settings for the Reserved Instances to modify.ModifyReservedInstancesRequest
withTargetConfigurations(Collection<ReservedInstancesConfiguration> targetConfigurations)
The configuration settings for the Reserved Instances to modify.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setClientToken
public void setClientToken(String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
- Parameters:
clientToken
- A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
-
getClientToken
public String getClientToken()
A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
- Returns:
- A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
-
withClientToken
public ModifyReservedInstancesRequest withClientToken(String clientToken)
A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
- Parameters:
clientToken
- A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getReservedInstancesIds
public List<String> getReservedInstancesIds()
The IDs of the Reserved Instances to modify.
- Returns:
- The IDs of the Reserved Instances to modify.
-
setReservedInstancesIds
public void setReservedInstancesIds(Collection<String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.
- Parameters:
reservedInstancesIds
- The IDs of the Reserved Instances to modify.
-
withReservedInstancesIds
public ModifyReservedInstancesRequest withReservedInstancesIds(String... reservedInstancesIds)
The IDs of the Reserved Instances to modify.
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 the Reserved Instances to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withReservedInstancesIds
public ModifyReservedInstancesRequest withReservedInstancesIds(Collection<String> reservedInstancesIds)
The IDs of the Reserved Instances to modify.
- Parameters:
reservedInstancesIds
- The IDs of the Reserved Instances to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTargetConfigurations
public 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(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.
NOTE: This method appends the values to the existing list (if any). Use
setTargetConfigurations(java.util.Collection)
orwithTargetConfigurations(java.util.Collection)
if you want to override the existing values.- Parameters:
targetConfigurations
- The configuration settings for the Reserved Instances to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTargetConfigurations
public ModifyReservedInstancesRequest withTargetConfigurations(Collection<ReservedInstancesConfiguration> targetConfigurations)
The configuration settings for the Reserved Instances to modify.
- Parameters:
targetConfigurations
- The configuration settings for the Reserved Instances to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<ModifyReservedInstancesRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ModifyReservedInstancesRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifyReservedInstancesRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-