Class ModifyReservedInstancesRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifyReservedInstancesRequest>
,Serializable
,Cloneable
Contains the parameters for ModifyReservedInstances.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A unique, case-sensitive token you provide to ensure idempotency of your modification request.This method is intended for internal use only.The IDs of the Reserved Instances to modify.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.toString()
Returns a string representation of this object; useful for testing and debugging.withClientToken
(String clientToken) A unique, case-sensitive token you provide to ensure idempotency of your modification request.withReservedInstancesIds
(String... reservedInstancesIds) The IDs of the Reserved Instances to modify.withReservedInstancesIds
(Collection<String> reservedInstancesIds) The IDs of the Reserved Instances to modify.withTargetConfigurations
(ReservedInstancesConfiguration... targetConfigurations) The configuration settings for the Reserved Instances to modify.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
-
Constructor Details
-
ModifyReservedInstancesRequest
public ModifyReservedInstancesRequest()
-
-
Method Details
-
setClientToken
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
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
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
The IDs of the Reserved Instances to modify.
- Returns:
- The IDs of the Reserved Instances to modify.
-
setReservedInstancesIds
The IDs of the Reserved Instances to modify.
- Parameters:
reservedInstancesIds
- The IDs of the Reserved Instances to modify.
-
withReservedInstancesIds
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-