public class ModifySpotFleetRequestRequest extends AmazonWebServiceRequest implements Serializable
ModifySpotFleetRequest operation.
 Modifies the specified Spot fleet request.
 While the Spot fleet request is being modified, it is in the
 modifying state.
 
 To scale up your Spot fleet, increase its target capacity. The Spot
 fleet launches the additional Spot instances according to the
 allocation strategy for the Spot fleet request. If the allocation
 strategy is lowestPrice , the Spot fleet launches
 instances using the Spot pool with the lowest price. If the allocation
 strategy is diversified , the Spot fleet distributes the
 instances across the Spot pools.
 
 To scale down your Spot fleet, decrease its target capacity. First,
 the Spot fleet cancels any open bids that exceed the new target
 capacity. You can request that the Spot fleet terminate Spot instances
 until the size of the fleet no longer exceeds the new target capacity.
 If the allocation strategy is lowestPrice , the Spot
 fleet terminates the instances with the highest price per unit. If the
 allocation strategy is diversified , the Spot fleet
 terminates instances across the Spot pools. Alternatively, you can
 request that the Spot fleet keep the fleet at its current size, but
 not replace any Spot instances that are interrupted or that you
 terminate manually.
 
| Constructor and Description | 
|---|
| ModifySpotFleetRequestRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| 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. | 
| String | getSpotFleetRequestId()The ID of the Spot fleet request. | 
| Integer | getTargetCapacity()The size of the fleet. | 
| int | hashCode() | 
| 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. | 
| 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. | 
| void | setSpotFleetRequestId(String spotFleetRequestId)The ID of the Spot fleet request. | 
| void | setTargetCapacity(Integer targetCapacity)The size of the fleet. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| 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. | 
| 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. | 
| ModifySpotFleetRequestRequest | withSpotFleetRequestId(String spotFleetRequestId)The ID of the Spot fleet request. | 
| ModifySpotFleetRequestRequest | withTargetCapacity(Integer targetCapacity)The size of the fleet. | 
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getSpotFleetRequestId()
public void setSpotFleetRequestId(String spotFleetRequestId)
spotFleetRequestId - The ID of the Spot fleet request.public ModifySpotFleetRequestRequest withSpotFleetRequestId(String spotFleetRequestId)
Returns a reference to this object so that method calls can be chained together.
spotFleetRequestId - The ID of the Spot fleet request.public Integer getTargetCapacity()
public void setTargetCapacity(Integer targetCapacity)
targetCapacity - The size of the fleet.public ModifySpotFleetRequestRequest withTargetCapacity(Integer targetCapacity)
Returns a reference to this object so that method calls can be chained together.
targetCapacity - The size of the fleet.public String getExcessCapacityTerminationPolicy()
 Constraints:
 Allowed Values: noTermination, default
ExcessCapacityTerminationPolicypublic void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
 Constraints:
 Allowed Values: noTermination, default
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.ExcessCapacityTerminationPolicypublic ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: noTermination, default
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.ExcessCapacityTerminationPolicypublic void setExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
 Constraints:
 Allowed Values: noTermination, default
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.ExcessCapacityTerminationPolicypublic ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: noTermination, default
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.ExcessCapacityTerminationPolicypublic String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.