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:
  • Constructor Details

    • ModifyReservedInstancesRequest

      public ModifyReservedInstancesRequest()
  • Method Details

    • 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) or withReservedInstancesIds(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) or withTargetConfigurations(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 interface DryRunSupportedRequest<ModifyReservedInstancesRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: