Struct aws_sdk_iotevents::operation::describe_alarm_model::builders::DescribeAlarmModelOutputBuilder
source · #[non_exhaustive]pub struct DescribeAlarmModelOutputBuilder { /* private fields */ }
Expand description
A builder for DescribeAlarmModelOutput
.
Implementations§
source§impl DescribeAlarmModelOutputBuilder
impl DescribeAlarmModelOutputBuilder
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 status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
Contains information about the status of the alarm model.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
Contains information about the status of the alarm model.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
Contains information about the status of the alarm model.
sourcepub fn alarm_model_name(self, input: impl Into<String>) -> Self
pub fn alarm_model_name(self, input: impl Into<String>) -> Self
The name of the alarm model.
sourcepub fn set_alarm_model_name(self, input: Option<String>) -> Self
pub fn set_alarm_model_name(self, input: Option<String>) -> Self
The name of the alarm model.
sourcepub fn get_alarm_model_name(&self) -> &Option<String>
pub fn get_alarm_model_name(&self) -> &Option<String>
The name of the alarm model.
sourcepub fn alarm_model_description(self, input: impl Into<String>) -> Self
pub fn alarm_model_description(self, input: impl Into<String>) -> Self
The description of the alarm model.
sourcepub fn set_alarm_model_description(self, input: Option<String>) -> Self
pub fn set_alarm_model_description(self, input: Option<String>) -> Self
The description of the alarm model.
sourcepub fn get_alarm_model_description(&self) -> &Option<String>
pub fn get_alarm_model_description(&self) -> &Option<String>
The description of the alarm model.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
sourcepub fn severity(self, input: i32) -> Self
pub fn severity(self, input: i32) -> Self
A non-negative integer that reflects the severity level of the alarm.
sourcepub fn set_severity(self, input: Option<i32>) -> Self
pub fn set_severity(self, input: Option<i32>) -> Self
A non-negative integer that reflects the severity level of the alarm.
sourcepub fn get_severity(&self) -> &Option<i32>
pub fn get_severity(&self) -> &Option<i32>
A non-negative integer that reflects the severity level of the alarm.
sourcepub fn alarm_rule(self, input: AlarmRule) -> Self
pub fn alarm_rule(self, input: AlarmRule) -> Self
Defines when your alarm is invoked.
sourcepub fn set_alarm_rule(self, input: Option<AlarmRule>) -> Self
pub fn set_alarm_rule(self, input: Option<AlarmRule>) -> Self
Defines when your alarm is invoked.
sourcepub fn get_alarm_rule(&self) -> &Option<AlarmRule>
pub fn get_alarm_rule(&self) -> &Option<AlarmRule>
Defines when your alarm is invoked.
sourcepub fn alarm_notification(self, input: AlarmNotification) -> Self
pub fn alarm_notification(self, input: AlarmNotification) -> Self
Contains information about one or more notification actions.
sourcepub fn set_alarm_notification(self, input: Option<AlarmNotification>) -> Self
pub fn set_alarm_notification(self, input: Option<AlarmNotification>) -> Self
Contains information about one or more notification actions.
sourcepub fn get_alarm_notification(&self) -> &Option<AlarmNotification>
pub fn get_alarm_notification(&self) -> &Option<AlarmNotification>
Contains information about one or more notification actions.
sourcepub fn alarm_event_actions(self, input: AlarmEventActions) -> Self
pub fn alarm_event_actions(self, input: AlarmEventActions) -> Self
Contains information about one or more alarm actions.
sourcepub fn set_alarm_event_actions(self, input: Option<AlarmEventActions>) -> Self
pub fn set_alarm_event_actions(self, input: Option<AlarmEventActions>) -> Self
Contains information about one or more alarm actions.
sourcepub fn get_alarm_event_actions(&self) -> &Option<AlarmEventActions>
pub fn get_alarm_event_actions(&self) -> &Option<AlarmEventActions>
Contains information about one or more alarm actions.
sourcepub fn alarm_capabilities(self, input: AlarmCapabilities) -> Self
pub fn alarm_capabilities(self, input: AlarmCapabilities) -> Self
Contains the configuration information of alarm state changes.
sourcepub fn set_alarm_capabilities(self, input: Option<AlarmCapabilities>) -> Self
pub fn set_alarm_capabilities(self, input: Option<AlarmCapabilities>) -> Self
Contains the configuration information of alarm state changes.
sourcepub fn get_alarm_capabilities(&self) -> &Option<AlarmCapabilities>
pub fn get_alarm_capabilities(&self) -> &Option<AlarmCapabilities>
Contains the configuration information of alarm state changes.
sourcepub fn build(self) -> DescribeAlarmModelOutput
pub fn build(self) -> DescribeAlarmModelOutput
Consumes the builder and constructs a DescribeAlarmModelOutput
.
Trait Implementations§
source§impl Clone for DescribeAlarmModelOutputBuilder
impl Clone for DescribeAlarmModelOutputBuilder
source§fn clone(&self) -> DescribeAlarmModelOutputBuilder
fn clone(&self) -> DescribeAlarmModelOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DescribeAlarmModelOutputBuilder
impl Default for DescribeAlarmModelOutputBuilder
source§fn default() -> DescribeAlarmModelOutputBuilder
fn default() -> DescribeAlarmModelOutputBuilder
source§impl PartialEq for DescribeAlarmModelOutputBuilder
impl PartialEq for DescribeAlarmModelOutputBuilder
source§fn eq(&self, other: &DescribeAlarmModelOutputBuilder) -> bool
fn eq(&self, other: &DescribeAlarmModelOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DescribeAlarmModelOutputBuilder
Auto Trait Implementations§
impl Freeze for DescribeAlarmModelOutputBuilder
impl RefUnwindSafe for DescribeAlarmModelOutputBuilder
impl Send for DescribeAlarmModelOutputBuilder
impl Sync for DescribeAlarmModelOutputBuilder
impl Unpin for DescribeAlarmModelOutputBuilder
impl UnwindSafe for DescribeAlarmModelOutputBuilder
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