Struct aws_sdk_forecast::types::TimeSeriesCondition
source · #[non_exhaustive]pub struct TimeSeriesCondition {
pub attribute_name: String,
pub attribute_value: String,
pub condition: Condition,
}
Expand description
Creates a subset of items within an attribute that are modified. For example, you can use this operation to create a subset of items that cost $5 or less. To do this, you specify "AttributeName": "price"
, "AttributeValue": "5"
, and "Condition": "LESS_THAN"
. Pair this operation with the Action
operation within the CreateWhatIfForecastRequest$TimeSeriesTransformations
operation to define how the attribute is modified.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attribute_name: String
The item_id, dimension name, IM name, or timestamp that you are modifying.
attribute_value: String
The value that is applied for the chosen Condition
.
condition: Condition
The condition to apply. Valid values are EQUALS
, NOT_EQUALS
, LESS_THAN
and GREATER_THAN
.
Implementations§
source§impl TimeSeriesCondition
impl TimeSeriesCondition
sourcepub fn attribute_name(&self) -> &str
pub fn attribute_name(&self) -> &str
The item_id, dimension name, IM name, or timestamp that you are modifying.
sourcepub fn attribute_value(&self) -> &str
pub fn attribute_value(&self) -> &str
The value that is applied for the chosen Condition
.
source§impl TimeSeriesCondition
impl TimeSeriesCondition
sourcepub fn builder() -> TimeSeriesConditionBuilder
pub fn builder() -> TimeSeriesConditionBuilder
Creates a new builder-style object to manufacture TimeSeriesCondition
.
Trait Implementations§
source§impl Clone for TimeSeriesCondition
impl Clone for TimeSeriesCondition
source§fn clone(&self) -> TimeSeriesCondition
fn clone(&self) -> TimeSeriesCondition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimeSeriesCondition
impl Debug for TimeSeriesCondition
source§impl PartialEq for TimeSeriesCondition
impl PartialEq for TimeSeriesCondition
source§fn eq(&self, other: &TimeSeriesCondition) -> bool
fn eq(&self, other: &TimeSeriesCondition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimeSeriesCondition
Auto Trait Implementations§
impl Freeze for TimeSeriesCondition
impl RefUnwindSafe for TimeSeriesCondition
impl Send for TimeSeriesCondition
impl Sync for TimeSeriesCondition
impl Unpin for TimeSeriesCondition
impl UnwindSafe for TimeSeriesCondition
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