#[non_exhaustive]pub struct PlacementConstraintBuilder { /* private fields */ }
Expand description
A builder for PlacementConstraint
.
Implementations§
source§impl PlacementConstraintBuilder
impl PlacementConstraintBuilder
sourcepub fn type(self, input: PlacementConstraintType) -> Self
pub fn type(self, input: PlacementConstraintType) -> Self
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.
sourcepub fn set_type(self, input: Option<PlacementConstraintType>) -> Self
pub fn set_type(self, input: Option<PlacementConstraintType>) -> Self
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.
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. You cannot specify an expression if the constraint type is distinctInstance
. To learn more, 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. You cannot specify an expression if the constraint type is distinctInstance
. To learn more, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide.
sourcepub fn build(self) -> PlacementConstraint
pub fn build(self) -> PlacementConstraint
Consumes the builder and constructs a PlacementConstraint
.
Trait Implementations§
source§impl Clone for PlacementConstraintBuilder
impl Clone for PlacementConstraintBuilder
source§fn clone(&self) -> PlacementConstraintBuilder
fn clone(&self) -> PlacementConstraintBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlacementConstraintBuilder
impl Debug for PlacementConstraintBuilder
source§impl Default for PlacementConstraintBuilder
impl Default for PlacementConstraintBuilder
source§fn default() -> PlacementConstraintBuilder
fn default() -> PlacementConstraintBuilder
source§impl PartialEq<PlacementConstraintBuilder> for PlacementConstraintBuilder
impl PartialEq<PlacementConstraintBuilder> for PlacementConstraintBuilder
source§fn eq(&self, other: &PlacementConstraintBuilder) -> bool
fn eq(&self, other: &PlacementConstraintBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.