public class ModifySpotFleetRequestRequest extends AmazonWebServiceRequest implements java.io.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(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getSpotFleetRequestId()
The ID of the Spot fleet request.
|
java.lang.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(java.lang.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(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
|
void |
setTargetCapacity(java.lang.Integer targetCapacity)
The size of the fleet.
|
java.lang.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(java.lang.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(java.lang.String spotFleetRequestId)
The ID of the Spot fleet request.
|
ModifySpotFleetRequestRequest |
withTargetCapacity(java.lang.Integer targetCapacity)
The size of the fleet.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getSpotFleetRequestId()
public void setSpotFleetRequestId(java.lang.String spotFleetRequestId)
spotFleetRequestId
- The ID of the Spot fleet request.public ModifySpotFleetRequestRequest withSpotFleetRequestId(java.lang.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 java.lang.Integer getTargetCapacity()
public void setTargetCapacity(java.lang.Integer targetCapacity)
targetCapacity
- The size of the fleet.public ModifySpotFleetRequestRequest withTargetCapacity(java.lang.Integer targetCapacity)
Returns a reference to this object so that method calls can be chained together.
targetCapacity
- The size of the fleet.public java.lang.String getExcessCapacityTerminationPolicy()
Constraints:
Allowed Values: noTermination, default
ExcessCapacityTerminationPolicy
public void setExcessCapacityTerminationPolicy(java.lang.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.ExcessCapacityTerminationPolicy
public ModifySpotFleetRequestRequest withExcessCapacityTerminationPolicy(java.lang.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.ExcessCapacityTerminationPolicy
public 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.ExcessCapacityTerminationPolicy
public 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.ExcessCapacityTerminationPolicy
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.