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