Class CfnTaskDefinition.UlimitProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.UlimitProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.UlimitProperty>
- Enclosing interface:
- CfnTaskDefinition.UlimitProperty
@Stability(Stable)
public static final class CfnTaskDefinition.UlimitProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.UlimitProperty>
A builder for
CfnTaskDefinition.UlimitProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTaskDefinition.UlimitProperty.getHardLimit()
Sets the value ofCfnTaskDefinition.UlimitProperty.getName()
Sets the value ofCfnTaskDefinition.UlimitProperty.getSoftLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hardLimit
Sets the value ofCfnTaskDefinition.UlimitProperty.getHardLimit()
- Parameters:
hardLimit
- The hard limit for theulimit
type. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnTaskDefinition.UlimitProperty.getName()
- Parameters:
name
- Thetype
of theulimit
. This parameter is required.- Returns:
this
-
softLimit
Sets the value ofCfnTaskDefinition.UlimitProperty.getSoftLimit()
- Parameters:
softLimit
- The soft limit for theulimit
type. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.UlimitProperty>
- Returns:
- a new instance of
CfnTaskDefinition.UlimitProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-