Interface SpotOptions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SpotOptions.Builder,SpotOptions>,SdkBuilder<SpotOptions.Builder,SpotOptions>,SdkPojo
- Enclosing class:
- SpotOptions
public static interface SpotOptions.Builder extends SdkPojo, CopyableBuilder<SpotOptions.Builder,SpotOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpotOptions.BuilderallocationStrategy(String allocationStrategy)The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances.SpotOptions.BuilderallocationStrategy(SpotAllocationStrategy allocationStrategy)The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
allocationStrategy
SpotOptions.Builder allocationStrategy(String 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SpotAllocationStrategy,SpotAllocationStrategy
-
allocationStrategy
SpotOptions.Builder allocationStrategy(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SpotAllocationStrategy,SpotAllocationStrategy
-
-