#[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 ==
.impl StructuralPartialEq for TaskDefinitionPlacementConstraintBuilder
Auto Trait Implementations§
impl Freeze for TaskDefinitionPlacementConstraintBuilder
impl RefUnwindSafe for TaskDefinitionPlacementConstraintBuilder
impl Send for TaskDefinitionPlacementConstraintBuilder
impl Sync for TaskDefinitionPlacementConstraintBuilder
impl Unpin for TaskDefinitionPlacementConstraintBuilder
impl UnwindSafe for TaskDefinitionPlacementConstraintBuilder
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