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