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
Constructors -
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 theulimittype. This parameter is required. The value can be specified in bytes, seconds, or as a count, depending on thetypeof theulimit.- Returns:
this
-
name
Sets the value ofCfnTaskDefinition.UlimitProperty.getName()- Parameters:
name- Thetypeof theulimit. This parameter is required.- Returns:
this
-
softLimit
Sets the value ofCfnTaskDefinition.UlimitProperty.getSoftLimit()- Parameters:
softLimit- The soft limit for theulimittype. This parameter is required. The value can be specified in bytes, seconds, or as a count, depending on thetypeof theulimit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.UlimitProperty>- Returns:
- a new instance of
CfnTaskDefinition.UlimitProperty - Throws:
NullPointerException- if any required attribute was not provided
-