@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FleetSpotCapacityRebalanceRequest extends Object implements Serializable, Cloneable
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon Elastic Compute Cloud User Guide.
Constructor and Description |
---|
FleetSpotCapacityRebalanceRequest() |
Modifier and Type | Method and Description |
---|---|
FleetSpotCapacityRebalanceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getReplacementStrategy()
The replacement strategy to use.
|
int |
hashCode() |
void |
setReplacementStrategy(String replacementStrategy)
The replacement strategy to use.
|
String |
toString()
Returns a string representation of this object.
|
FleetSpotCapacityRebalanceRequest |
withReplacementStrategy(FleetReplacementStrategy replacementStrategy)
The replacement strategy to use.
|
FleetSpotCapacityRebalanceRequest |
withReplacementStrategy(String replacementStrategy)
The replacement strategy to use.
|
public void setReplacementStrategy(String replacementStrategy)
The replacement strategy to use. Only available for fleets of type maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. You must specify a value, otherwise you get
an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
replacementStrategy
- The replacement strategy to use. Only available for fleets of type maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is
emitted for an existing Spot Instance in the fleet, specify launch
. You must specify a value,
otherwise you get an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
FleetReplacementStrategy
public String getReplacementStrategy()
The replacement strategy to use. Only available for fleets of type maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. You must specify a value, otherwise you get
an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is
emitted for an existing Spot Instance in the fleet, specify launch
. You must specify a
value, otherwise you get an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
FleetReplacementStrategy
public FleetSpotCapacityRebalanceRequest withReplacementStrategy(String replacementStrategy)
The replacement strategy to use. Only available for fleets of type maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. You must specify a value, otherwise you get
an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
replacementStrategy
- The replacement strategy to use. Only available for fleets of type maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is
emitted for an existing Spot Instance in the fleet, specify launch
. You must specify a value,
otherwise you get an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
FleetReplacementStrategy
public FleetSpotCapacityRebalanceRequest withReplacementStrategy(FleetReplacementStrategy replacementStrategy)
The replacement strategy to use. Only available for fleets of type maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for
an existing Spot Instance in the fleet, specify launch
. You must specify a value, otherwise you get
an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
replacementStrategy
- The replacement strategy to use. Only available for fleets of type maintain
.
To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is
emitted for an existing Spot Instance in the fleet, specify launch
. You must specify a value,
otherwise you get an error.
When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can wait until Amazon EC2 interrupts it. You are charged for all instances while they are running.
FleetReplacementStrategy
public String toString()
toString
in class Object
Object.toString()
public FleetSpotCapacityRebalanceRequest clone()
Copyright © 2020. All rights reserved.