Struct aws_sdk_iotevents::operation::update_alarm_model::builders::UpdateAlarmModelOutputBuilder
source · #[non_exhaustive]pub struct UpdateAlarmModelOutputBuilder { /* private fields */ }
Expand description
A builder for UpdateAlarmModelOutput
.
Implementations§
source§impl UpdateAlarmModelOutputBuilder
impl UpdateAlarmModelOutputBuilder
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time the alarm model was created, in the Unix epoch format.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time the alarm model was created, in the Unix epoch format.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time the alarm model was created, in the Unix epoch format.
sourcepub fn alarm_model_arn(self, input: impl Into<String>) -> Self
pub fn alarm_model_arn(self, input: impl Into<String>) -> Self
The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
sourcepub fn set_alarm_model_arn(self, input: Option<String>) -> Self
pub fn set_alarm_model_arn(self, input: Option<String>) -> Self
The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
sourcepub fn get_alarm_model_arn(&self) -> &Option<String>
pub fn get_alarm_model_arn(&self) -> &Option<String>
The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
sourcepub fn alarm_model_version(self, input: impl Into<String>) -> Self
pub fn alarm_model_version(self, input: impl Into<String>) -> Self
The version of the alarm model.
sourcepub fn set_alarm_model_version(self, input: Option<String>) -> Self
pub fn set_alarm_model_version(self, input: Option<String>) -> Self
The version of the alarm model.
sourcepub fn get_alarm_model_version(&self) -> &Option<String>
pub fn get_alarm_model_version(&self) -> &Option<String>
The version of the alarm model.
sourcepub fn last_update_time(self, input: DateTime) -> Self
pub fn last_update_time(self, input: DateTime) -> Self
The time the alarm model was last updated, in the Unix epoch format.
sourcepub fn set_last_update_time(self, input: Option<DateTime>) -> Self
pub fn set_last_update_time(self, input: Option<DateTime>) -> Self
The time the alarm model was last updated, in the Unix epoch format.
sourcepub fn get_last_update_time(&self) -> &Option<DateTime>
pub fn get_last_update_time(&self) -> &Option<DateTime>
The time the alarm model was last updated, in the Unix epoch format.
sourcepub fn status(self, input: AlarmModelVersionStatus) -> Self
pub fn status(self, input: AlarmModelVersionStatus) -> Self
The status of the alarm model. The status can be one of the following values:
-
ACTIVE
- The alarm model is active and it's ready to evaluate data. -
ACTIVATING
- AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes. -
INACTIVE
- The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model. -
FAILED
- You couldn't create or update the alarm model. Check your alarm model information and try again.
sourcepub fn set_status(self, input: Option<AlarmModelVersionStatus>) -> Self
pub fn set_status(self, input: Option<AlarmModelVersionStatus>) -> Self
The status of the alarm model. The status can be one of the following values:
-
ACTIVE
- The alarm model is active and it's ready to evaluate data. -
ACTIVATING
- AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes. -
INACTIVE
- The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model. -
FAILED
- You couldn't create or update the alarm model. Check your alarm model information and try again.
sourcepub fn get_status(&self) -> &Option<AlarmModelVersionStatus>
pub fn get_status(&self) -> &Option<AlarmModelVersionStatus>
The status of the alarm model. The status can be one of the following values:
-
ACTIVE
- The alarm model is active and it's ready to evaluate data. -
ACTIVATING
- AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes. -
INACTIVE
- The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model. -
FAILED
- You couldn't create or update the alarm model. Check your alarm model information and try again.
sourcepub fn build(self) -> UpdateAlarmModelOutput
pub fn build(self) -> UpdateAlarmModelOutput
Consumes the builder and constructs a UpdateAlarmModelOutput
.
Trait Implementations§
source§impl Clone for UpdateAlarmModelOutputBuilder
impl Clone for UpdateAlarmModelOutputBuilder
source§fn clone(&self) -> UpdateAlarmModelOutputBuilder
fn clone(&self) -> UpdateAlarmModelOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateAlarmModelOutputBuilder
impl Default for UpdateAlarmModelOutputBuilder
source§fn default() -> UpdateAlarmModelOutputBuilder
fn default() -> UpdateAlarmModelOutputBuilder
source§impl PartialEq for UpdateAlarmModelOutputBuilder
impl PartialEq for UpdateAlarmModelOutputBuilder
source§fn eq(&self, other: &UpdateAlarmModelOutputBuilder) -> bool
fn eq(&self, other: &UpdateAlarmModelOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateAlarmModelOutputBuilder
Auto Trait Implementations§
impl Freeze for UpdateAlarmModelOutputBuilder
impl RefUnwindSafe for UpdateAlarmModelOutputBuilder
impl Send for UpdateAlarmModelOutputBuilder
impl Sync for UpdateAlarmModelOutputBuilder
impl Unpin for UpdateAlarmModelOutputBuilder
impl UnwindSafe for UpdateAlarmModelOutputBuilder
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