Class CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty>
- Enclosing interface:
CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty
@Stability(Stable)
public static final class CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.expression
(String expression) Sets the value ofCfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.Builder type(String type) Sets the value ofCfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.getType()
- Parameters:
type
- The type of constraint. This parameter is required. TheMemberOf
constraint restricts selection to be from a group of valid candidates.- Returns:
this
-
expression
@Stability(Stable) public CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty.Builder expression(String expression) - Parameters:
expression
- A cluster query language expression to apply to the constraint. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty>
- Returns:
- a new instance of
CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-