#[non_exhaustive]pub struct TimeSeriesConditionBuilder { /* private fields */ }
Expand description
A builder for TimeSeriesCondition
.
Implementations§
source§impl TimeSeriesConditionBuilder
impl TimeSeriesConditionBuilder
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The item_id, dimension name, IM name, or timestamp that you are modifying.
This field is required.sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The item_id, dimension name, IM name, or timestamp that you are modifying.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The item_id, dimension name, IM name, or timestamp that you are modifying.
sourcepub fn attribute_value(self, input: impl Into<String>) -> Self
pub fn attribute_value(self, input: impl Into<String>) -> Self
The value that is applied for the chosen Condition
.
sourcepub fn set_attribute_value(self, input: Option<String>) -> Self
pub fn set_attribute_value(self, input: Option<String>) -> Self
The value that is applied for the chosen Condition
.
sourcepub fn get_attribute_value(&self) -> &Option<String>
pub fn get_attribute_value(&self) -> &Option<String>
The value that is applied for the chosen Condition
.
sourcepub fn condition(self, input: Condition) -> Self
pub fn condition(self, input: Condition) -> Self
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and GREATER_THAN
.
sourcepub fn set_condition(self, input: Option<Condition>) -> Self
pub fn set_condition(self, input: Option<Condition>) -> Self
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and GREATER_THAN
.
sourcepub fn get_condition(&self) -> &Option<Condition>
pub fn get_condition(&self) -> &Option<Condition>
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and GREATER_THAN
.
sourcepub fn build(self) -> Result<TimeSeriesCondition, BuildError>
pub fn build(self) -> Result<TimeSeriesCondition, BuildError>
Consumes the builder and constructs a TimeSeriesCondition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TimeSeriesConditionBuilder
impl Clone for TimeSeriesConditionBuilder
source§fn clone(&self) -> TimeSeriesConditionBuilder
fn clone(&self) -> TimeSeriesConditionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimeSeriesConditionBuilder
impl Debug for TimeSeriesConditionBuilder
source§impl Default for TimeSeriesConditionBuilder
impl Default for TimeSeriesConditionBuilder
source§fn default() -> TimeSeriesConditionBuilder
fn default() -> TimeSeriesConditionBuilder
source§impl PartialEq for TimeSeriesConditionBuilder
impl PartialEq for TimeSeriesConditionBuilder
source§fn eq(&self, other: &TimeSeriesConditionBuilder) -> bool
fn eq(&self, other: &TimeSeriesConditionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimeSeriesConditionBuilder
Auto Trait Implementations§
impl Freeze for TimeSeriesConditionBuilder
impl RefUnwindSafe for TimeSeriesConditionBuilder
impl Send for TimeSeriesConditionBuilder
impl Sync for TimeSeriesConditionBuilder
impl Unpin for TimeSeriesConditionBuilder
impl UnwindSafe for TimeSeriesConditionBuilder
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