Class ModifySpotFleetRequestRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ModifySpotFleetRequestRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<ModifySpotFleetRequestRequest>, Serializable, Cloneable

public class ModifySpotFleetRequestRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifySpotFleetRequestRequest>

Contains the parameters for ModifySpotFleetRequest.

See Also:
  • Constructor Details

    • ModifySpotFleetRequestRequest

      public ModifySpotFleetRequestRequest()
  • Method Details

    • setSpotFleetRequestId

      public void setSpotFleetRequestId(String spotFleetRequestId)

      The ID of the Spot fleet request.

      Parameters:
      spotFleetRequestId - The ID of the Spot fleet request.
    • getSpotFleetRequestId

      public String getSpotFleetRequestId()

      The ID of the Spot fleet request.

      Returns:
      The ID of the Spot fleet request.
    • withSpotFleetRequestId

      public ModifySpotFleetRequestRequest withSpotFleetRequestId(String spotFleetRequestId)

      The ID of the Spot fleet request.

      Parameters:
      spotFleetRequestId - The ID of the Spot fleet request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTargetCapacity

      public void setTargetCapacity(Integer targetCapacity)

      The size of the fleet.

      Parameters:
      targetCapacity - The size of the fleet.
    • getTargetCapacity

      public Integer getTargetCapacity()

      The size of the fleet.

      Returns:
      The size of the fleet.
    • withTargetCapacity

      public ModifySpotFleetRequestRequest withTargetCapacity(Integer targetCapacity)

      The size of the fleet.

      Parameters:
      targetCapacity - The size of the fleet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setExcessCapacityTerminationPolicy

      public void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)

      Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

      Parameters:
      excessCapacityTerminationPolicy - Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
      See Also:
    • getExcessCapacityTerminationPolicy

      public String getExcessCapacityTerminationPolicy()

      Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

      Returns:
      Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
      See Also:
    • withExcessCapacityTerminationPolicy

      public ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)

      Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

      Parameters:
      excessCapacityTerminationPolicy - Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setExcessCapacityTerminationPolicy

      public void setExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)

      Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

      Parameters:
      excessCapacityTerminationPolicy - Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
      See Also:
    • withExcessCapacityTerminationPolicy

      public ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)

      Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

      Parameters:
      excessCapacityTerminationPolicy - Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getDryRunRequest

      public Request<ModifySpotFleetRequestRequest> 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<ModifySpotFleetRequestRequest>
    • 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: