pub struct Builder { /* private fields */ }Expand description
A builder for TaskDefinitionPlacementConstraint.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: TaskDefinitionPlacementConstraintType) -> Self
pub fn type(self, input: TaskDefinitionPlacementConstraintType) -> Self
The type of constraint. The MemberOf constraint restricts selection to be from a group of valid candidates.
sourcepub fn set_type(
self,
input: Option<TaskDefinitionPlacementConstraintType>
) -> Self
pub fn set_type(
self,
input: Option<TaskDefinitionPlacementConstraintType>
) -> Self
The type of constraint. The MemberOf constraint restricts selection to be from a group of valid candidates.
sourcepub fn expression(self, input: impl Into<String>) -> Self
pub fn expression(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_expression(self, input: Option<String>) -> Self
pub fn set_expression(self, input: Option<String>) -> Self
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.
sourcepub fn build(self) -> TaskDefinitionPlacementConstraint
pub fn build(self) -> TaskDefinitionPlacementConstraint
Consumes the builder and constructs a TaskDefinitionPlacementConstraint.