Class CfnTaskDefinitionPropsMixin.UlimitProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnTaskDefinitionPropsMixin.UlimitProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.UlimitProperty>
- Enclosing interface:
CfnTaskDefinitionPropsMixin.UlimitProperty
@Stability(Stable)
public static final class CfnTaskDefinitionPropsMixin.UlimitProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.UlimitProperty>
A builder for
CfnTaskDefinitionPropsMixin.UlimitProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTaskDefinitionPropsMixin.UlimitProperty.getHardLimit()Sets the value ofCfnTaskDefinitionPropsMixin.UlimitProperty.getName()Sets the value ofCfnTaskDefinitionPropsMixin.UlimitProperty.getSoftLimit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hardLimit
@Stability(Stable) public CfnTaskDefinitionPropsMixin.UlimitProperty.Builder hardLimit(Number hardLimit) Sets the value ofCfnTaskDefinitionPropsMixin.UlimitProperty.getHardLimit()- Parameters:
hardLimit- The hard limit for theulimittype. The value can be specified in bytes, seconds, or as a count, depending on thetypeof theulimit.- Returns:
this
-
name
Sets the value ofCfnTaskDefinitionPropsMixin.UlimitProperty.getName()- Parameters:
name- Thetypeof theulimit.- Returns:
this
-
softLimit
@Stability(Stable) public CfnTaskDefinitionPropsMixin.UlimitProperty.Builder softLimit(Number softLimit) Sets the value ofCfnTaskDefinitionPropsMixin.UlimitProperty.getSoftLimit()- Parameters:
softLimit- The soft limit for theulimittype. 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<CfnTaskDefinitionPropsMixin.UlimitProperty>- Returns:
- a new instance of
CfnTaskDefinitionPropsMixin.UlimitProperty - Throws:
NullPointerException- if any required attribute was not provided
-