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