#[non_exhaustive]pub struct TaskDefinitionPlacementConstraintBuilder { /* private fields */ }
Expand description
A builder for TaskDefinitionPlacementConstraint
.
Implementations§
source§impl TaskDefinitionPlacementConstraintBuilder
impl TaskDefinitionPlacementConstraintBuilder
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 get_type(&self) -> &Option<TaskDefinitionPlacementConstraintType>
pub fn get_type(&self) -> &Option<TaskDefinitionPlacementConstraintType>
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 get_expression(&self) -> &Option<String>
pub fn get_expression(&self) -> &Option<String>
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
.
Trait Implementations§
source§impl Clone for TaskDefinitionPlacementConstraintBuilder
impl Clone for TaskDefinitionPlacementConstraintBuilder
source§fn clone(&self) -> TaskDefinitionPlacementConstraintBuilder
fn clone(&self) -> TaskDefinitionPlacementConstraintBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TaskDefinitionPlacementConstraintBuilder
impl Default for TaskDefinitionPlacementConstraintBuilder
source§fn default() -> TaskDefinitionPlacementConstraintBuilder
fn default() -> TaskDefinitionPlacementConstraintBuilder
source§impl PartialEq for TaskDefinitionPlacementConstraintBuilder
impl PartialEq for TaskDefinitionPlacementConstraintBuilder
source§fn eq(&self, other: &TaskDefinitionPlacementConstraintBuilder) -> bool
fn eq(&self, other: &TaskDefinitionPlacementConstraintBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.