@Generated(value="software.amazon.awssdk:codegen") public final class FleetSpotCapacityRebalance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FleetSpotCapacityRebalance.Builder,FleetSpotCapacityRebalance>
The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FleetSpotCapacityRebalance.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FleetSpotCapacityRebalance.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
FleetReplacementStrategy |
replacementStrategy()
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. |
String |
replacementStrategyAsString()
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. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends FleetSpotCapacityRebalance.Builder> |
serializableBuilderClass() |
FleetSpotCapacityRebalance.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic FleetReplacementStrategy replacementStrategy()
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. Only available for fleets of type
maintain.
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 both instances while they are running.
If the service returns an enum value that is not available in the current SDK version,
replacementStrategy will return FleetReplacementStrategy.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from replacementStrategyAsString().
launch. Only available for
fleets of type maintain. 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 both instances while they are running.
FleetReplacementStrategypublic String replacementStrategyAsString()
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. Only available for fleets of type
maintain.
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 both instances while they are running.
If the service returns an enum value that is not available in the current SDK version,
replacementStrategy will return FleetReplacementStrategy.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from replacementStrategyAsString().
launch. Only available for
fleets of type maintain. 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 both instances while they are running.
FleetReplacementStrategypublic FleetSpotCapacityRebalance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FleetSpotCapacityRebalance.Builder,FleetSpotCapacityRebalance>public static FleetSpotCapacityRebalance.Builder builder()
public static Class<? extends FleetSpotCapacityRebalance.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.