Struct aws_sdk_ecs::types::builders::PlacementConstraintBuilder
source · #[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 get_type(&self) -> &Option<PlacementConstraintType>
pub fn get_type(&self) -> &Option<PlacementConstraintType>
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. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance
. 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. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance
. 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. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance
. For more information, 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 for PlacementConstraintBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for PlacementConstraintBuilder
Auto Trait Implementations§
impl Freeze for PlacementConstraintBuilder
impl RefUnwindSafe for PlacementConstraintBuilder
impl Send for PlacementConstraintBuilder
impl Sync for PlacementConstraintBuilder
impl Unpin for PlacementConstraintBuilder
impl UnwindSafe for PlacementConstraintBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more