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