Class CfnPipe.PlacementConstraintProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.PlacementConstraintProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.PlacementConstraintProperty>
- Enclosing interface:
- CfnPipe.PlacementConstraintProperty
@Stability(Stable)
public static final class CfnPipe.PlacementConstraintProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.PlacementConstraintProperty>
A builder for
CfnPipe.PlacementConstraintProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.expression(String expression) Sets the value ofCfnPipe.PlacementConstraintProperty.getExpression()Sets the value ofCfnPipe.PlacementConstraintProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
expression
Sets the value ofCfnPipe.PlacementConstraintProperty.getExpression()- Parameters:
expression- A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type isdistinctInstance. To learn more, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide.- Returns:
this
-
type
Sets the value ofCfnPipe.PlacementConstraintProperty.getType()- Parameters:
type- The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipe.PlacementConstraintProperty>- Returns:
- a new instance of
CfnPipe.PlacementConstraintProperty - Throws:
NullPointerException- if any required attribute was not provided
-