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