Class CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty>
- Enclosing interface:
CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty
@Stability(Stable)
public static final class CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty>
A builder for
CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnEC2Fleet.MemoryGiBPerVCpuRequestProperty.getMax()
Sets the value ofCfnEC2Fleet.MemoryGiBPerVCpuRequestProperty.getMin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
max
Sets the value ofCfnEC2Fleet.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 ofCfnEC2Fleet.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<CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty>
- Returns:
- a new instance of
CfnEC2Fleet.MemoryGiBPerVCpuRequestProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-