Class CfnComputeNodeGroup.SpotOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.SpotOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroup.SpotOptionsProperty>
- Enclosing interface:
CfnComputeNodeGroup.SpotOptionsProperty
@Stability(Stable)
public static final class CfnComputeNodeGroup.SpotOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroup.SpotOptionsProperty>
A builder for
CfnComputeNodeGroup.SpotOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) Sets the value ofCfnComputeNodeGroup.SpotOptionsProperty.getAllocationStrategy()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocationStrategy
@Stability(Stable) public CfnComputeNodeGroup.SpotOptionsProperty.Builder allocationStrategy(String allocationStrategy) Sets the value ofCfnComputeNodeGroup.SpotOptionsProperty.getAllocationStrategy()- Parameters:
allocationStrategy- The Amazon EC2 allocation strategy AWS PCS uses to provision EC2 instances. AWS 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroup.SpotOptionsProperty>- Returns:
- a new instance of
CfnComputeNodeGroup.SpotOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-