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