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