Struct aws_sdk_datasync::types::builders::TaskFilterBuilder
source · #[non_exhaustive]pub struct TaskFilterBuilder { /* private fields */ }
Expand description
A builder for TaskFilter
.
Implementations§
source§impl TaskFilterBuilder
impl TaskFilterBuilder
sourcepub fn name(self, input: TaskFilterName) -> Self
pub fn name(self, input: TaskFilterName) -> Self
The name of the filter being used. Each API call supports a list of filters that are available for it. For example, LocationId
for ListTasks
.
sourcepub fn set_name(self, input: Option<TaskFilterName>) -> Self
pub fn set_name(self, input: Option<TaskFilterName>) -> Self
The name of the filter being used. Each API call supports a list of filters that are available for it. For example, LocationId
for ListTasks
.
sourcepub fn get_name(&self) -> &Option<TaskFilterName>
pub fn get_name(&self) -> &Option<TaskFilterName>
The name of the filter being used. Each API call supports a list of filters that are available for it. For example, LocationId
for ListTasks
.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The values that you want to filter for. For example, you might want to display only tasks for a specific destination location.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The values that you want to filter for. For example, you might want to display only tasks for a specific destination location.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The values that you want to filter for. For example, you might want to display only tasks for a specific destination location.
sourcepub fn operator(self, input: Operator) -> Self
pub fn operator(self, input: Operator) -> Self
The operator that is used to compare filter values (for example, Equals
or Contains
).
sourcepub fn set_operator(self, input: Option<Operator>) -> Self
pub fn set_operator(self, input: Option<Operator>) -> Self
The operator that is used to compare filter values (for example, Equals
or Contains
).
sourcepub fn get_operator(&self) -> &Option<Operator>
pub fn get_operator(&self) -> &Option<Operator>
The operator that is used to compare filter values (for example, Equals
or Contains
).
sourcepub fn build(self) -> Result<TaskFilter, BuildError>
pub fn build(self) -> Result<TaskFilter, BuildError>
Consumes the builder and constructs a TaskFilter
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TaskFilterBuilder
impl Clone for TaskFilterBuilder
source§fn clone(&self) -> TaskFilterBuilder
fn clone(&self) -> TaskFilterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskFilterBuilder
impl Debug for TaskFilterBuilder
source§impl Default for TaskFilterBuilder
impl Default for TaskFilterBuilder
source§fn default() -> TaskFilterBuilder
fn default() -> TaskFilterBuilder
source§impl PartialEq for TaskFilterBuilder
impl PartialEq for TaskFilterBuilder
source§fn eq(&self, other: &TaskFilterBuilder) -> bool
fn eq(&self, other: &TaskFilterBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskFilterBuilder
Auto Trait Implementations§
impl Freeze for TaskFilterBuilder
impl RefUnwindSafe for TaskFilterBuilder
impl Send for TaskFilterBuilder
impl Sync for TaskFilterBuilder
impl Unpin for TaskFilterBuilder
impl UnwindSafe for TaskFilterBuilder
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