Class CfnSpotFleet.BaselinePerformanceFactorsRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.BaselinePerformanceFactorsRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleet.BaselinePerformanceFactorsRequestProperty>
- Enclosing interface:
CfnSpotFleet.BaselinePerformanceFactorsRequestProperty
@Stability(Stable)
public static final class CfnSpotFleet.BaselinePerformanceFactorsRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.BaselinePerformanceFactorsRequestProperty>
A builder for
CfnSpotFleet.BaselinePerformanceFactorsRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cpu(IResolvable cpu) Sets the value ofCfnSpotFleet.BaselinePerformanceFactorsRequestProperty.getCpu()Sets the value ofCfnSpotFleet.BaselinePerformanceFactorsRequestProperty.getCpu()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpu
@Stability(Stable) public CfnSpotFleet.BaselinePerformanceFactorsRequestProperty.Builder cpu(IResolvable cpu) Sets the value ofCfnSpotFleet.BaselinePerformanceFactorsRequestProperty.getCpu()- Parameters:
cpu- The CPU performance to consider, using an instance family as the baseline reference.- Returns:
this
-
cpu
@Stability(Stable) public CfnSpotFleet.BaselinePerformanceFactorsRequestProperty.Builder cpu(CfnSpotFleet.CpuPerformanceFactorRequestProperty cpu) Sets the value ofCfnSpotFleet.BaselinePerformanceFactorsRequestProperty.getCpu()- Parameters:
cpu- The CPU performance to consider, using an instance family as the baseline reference.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.BaselinePerformanceFactorsRequestProperty>- Returns:
- a new instance of
CfnSpotFleet.BaselinePerformanceFactorsRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-