Class CfnSpotFleet.CpuPerformanceFactorRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.CpuPerformanceFactorRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleet.CpuPerformanceFactorRequestProperty>
- Enclosing interface:
CfnSpotFleet.CpuPerformanceFactorRequestProperty
@Stability(Stable)
public static final class CfnSpotFleet.CpuPerformanceFactorRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.CpuPerformanceFactorRequestProperty>
A builder for
CfnSpotFleet.CpuPerformanceFactorRequestProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.references
(List<? extends Object> references) Sets the value ofCfnSpotFleet.CpuPerformanceFactorRequestProperty.getReferences()
references
(IResolvable references) Sets the value ofCfnSpotFleet.CpuPerformanceFactorRequestProperty.getReferences()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
references
@Stability(Stable) public CfnSpotFleet.CpuPerformanceFactorRequestProperty.Builder references(IResolvable references) Sets the value ofCfnSpotFleet.CpuPerformanceFactorRequestProperty.getReferences()
- Parameters:
references
- Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.Currently, only one instance family can be specified in the list.
- Returns:
this
-
references
@Stability(Stable) public CfnSpotFleet.CpuPerformanceFactorRequestProperty.Builder references(List<? extends Object> references) Sets the value ofCfnSpotFleet.CpuPerformanceFactorRequestProperty.getReferences()
- Parameters:
references
- Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences.Currently, only one instance family can be specified in the list.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.CpuPerformanceFactorRequestProperty>
- Returns:
- a new instance of
CfnSpotFleet.CpuPerformanceFactorRequestProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-