Class CfnLaunchTemplate.AcceleratorCountProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLaunchTemplate.AcceleratorCountProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplate.AcceleratorCountProperty>
- Enclosing interface:
CfnLaunchTemplate.AcceleratorCountProperty
@Stability(Stable)
public static final class CfnLaunchTemplate.AcceleratorCountProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplate.AcceleratorCountProperty>
A builder for
CfnLaunchTemplate.AcceleratorCountProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLaunchTemplate.AcceleratorCountProperty.getMax()Sets the value ofCfnLaunchTemplate.AcceleratorCountProperty.getMin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
max
Sets the value ofCfnLaunchTemplate.AcceleratorCountProperty.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
Sets the value ofCfnLaunchTemplate.AcceleratorCountProperty.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<CfnLaunchTemplate.AcceleratorCountProperty>- Returns:
- a new instance of
CfnLaunchTemplate.AcceleratorCountProperty - Throws:
NullPointerException- if any required attribute was not provided
-