Class SpotOptions
- java.lang.Object
-
- software.amazon.awssdk.services.pcs.model.SpotOptions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SpotOptions.Builder,SpotOptions>
@Generated("software.amazon.awssdk:codegen") public final class SpotOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SpotOptions.Builder,SpotOptions>
Additional configuration when you specify
SPOTas thepurchaseOptionfor theCreateComputeNodeGroupAPI action.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSpotOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpotAllocationStrategyallocationStrategy()The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances.StringallocationStrategyAsString()The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances.static SpotOptions.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends SpotOptions.Builder>serializableBuilderClass()SpotOptions.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
allocationStrategy
public final SpotAllocationStrategy allocationStrategy()
The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
If the service returns an enum value that is not available in the current SDK version,
allocationStrategywill returnSpotAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromallocationStrategyAsString().- Returns:
- The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
- See Also:
SpotAllocationStrategy
-
allocationStrategyAsString
public final String allocationStrategyAsString()
The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
If the service returns an enum value that is not available in the current SDK version,
allocationStrategywill returnSpotAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromallocationStrategyAsString().- Returns:
- The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
- See Also:
SpotAllocationStrategy
-
toBuilder
public SpotOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SpotOptions.Builder,SpotOptions>
-
builder
public static SpotOptions.Builder builder()
-
serializableBuilderClass
public static Class<? extends SpotOptions.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-