Class CfnLimitMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.deadline.CfnLimitMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLimitMixinProps>
- Enclosing interface:
CfnLimitMixinProps
@Stability(Stable)
public static final class CfnLimitMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLimitMixinProps>
A builder for
CfnLimitMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamountRequirementName(String amountRequirementName) Sets the value ofCfnLimitMixinProps.getAmountRequirementName()build()Builds the configured instance.description(String description) Sets the value ofCfnLimitMixinProps.getDescription()displayName(String displayName) Sets the value ofCfnLimitMixinProps.getDisplayName()Sets the value ofCfnLimitMixinProps.getFarmId()Sets the value ofCfnLimitMixinProps.getMaxCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amountRequirementName
@Stability(Stable) public CfnLimitMixinProps.Builder amountRequirementName(String amountRequirementName) Sets the value ofCfnLimitMixinProps.getAmountRequirementName()- Parameters:
amountRequirementName- The value that you specify as thenamein theamountsfield of thehostRequirementsin a step of a job template to declare the limit requirement.- Returns:
this
-
description
Sets the value ofCfnLimitMixinProps.getDescription()- Parameters:
description- A description of the limit. A clear description helps you identify the purpose of the limit.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Returns:
this
-
displayName
Sets the value ofCfnLimitMixinProps.getDisplayName()- Parameters:
displayName- The name of the limit used in lists to identify the limit.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Returns:
this
-
farmId
Sets the value ofCfnLimitMixinProps.getFarmId()- Parameters:
farmId- The unique identifier of the farm that contains the limit.- Returns:
this
-
maxCount
Sets the value ofCfnLimitMixinProps.getMaxCount()- Parameters:
maxCount- The maximum number of resources constrained by this limit. When all of the resources are in use, steps that require the limit won't be scheduled until the resource is available.The
maxValuemust not be 0. If the value is -1, there is no restriction on the number of resources that can be acquired for this limit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLimitMixinProps>- Returns:
- a new instance of
CfnLimitMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-