Class CfnContainerGroupDefinition.MemoryLimitsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerGroupDefinition.MemoryLimitsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerGroupDefinition.MemoryLimitsProperty>
- Enclosing interface:
CfnContainerGroupDefinition.MemoryLimitsProperty
@Stability(Stable)
public static final class CfnContainerGroupDefinition.MemoryLimitsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerGroupDefinition.MemoryLimitsProperty>
A builder for
CfnContainerGroupDefinition.MemoryLimitsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnContainerGroupDefinition.MemoryLimitsProperty.getHardLimit()
Sets the value ofCfnContainerGroupDefinition.MemoryLimitsProperty.getSoftLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hardLimit
@Stability(Stable) public CfnContainerGroupDefinition.MemoryLimitsProperty.Builder hardLimit(Number hardLimit) Sets the value ofCfnContainerGroupDefinition.MemoryLimitsProperty.getHardLimit()
- Parameters:
hardLimit
- The hard limit of memory to reserve for the container.- Returns:
this
-
softLimit
@Stability(Stable) public CfnContainerGroupDefinition.MemoryLimitsProperty.Builder softLimit(Number softLimit) Sets the value ofCfnContainerGroupDefinition.MemoryLimitsProperty.getSoftLimit()
- Parameters:
softLimit
- The amount of memory that is reserved for the container.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerGroupDefinition.MemoryLimitsProperty>
- Returns:
- a new instance of
CfnContainerGroupDefinition.MemoryLimitsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-