Class CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty>
- Enclosing interface:
CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty
@Stability(Stable)
public static final class CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty>
A builder for
CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.getMax()Sets the value ofCfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.getMin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
max
@Stability(Stable) public CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.Builder max(Number max) Sets the value ofCfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.getMax()- Parameters:
max- The maximum number of accelerators. To specify no maximum limit, omit this parameter. To exclude accelerator-enabled instance types, setMaxto0.- Returns:
this
-
min
@Stability(Stable) public CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.Builder min(Number min) Sets the value ofCfnEC2FleetPropsMixin.AcceleratorCountRequestProperty.getMin()- Parameters:
min- The minimum number of accelerators. To specify no minimum limit, omit this parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty>- Returns:
- a new instance of
CfnEC2FleetPropsMixin.AcceleratorCountRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-