Class CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.getMax()Sets the value ofCfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.getMin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
max
@Stability(Stable) public CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.Builder max(Number max) Sets the value ofCfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.getMax()- Parameters:
max- The maximum number of accelerators. Instance types with more accelerators are excluded from selection.- Returns:
this
-
min
@Stability(Stable) public CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.Builder min(Number min) Sets the value ofCfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty.getMin()- Parameters:
min- The minimum number of accelerators. Instance types with fewer accelerators are excluded from selection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.AcceleratorCountRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-