Struct aws_sdk_iot::types::builders::ActiveViolationBuilder
source · #[non_exhaustive]pub struct ActiveViolationBuilder { /* private fields */ }Expand description
A builder for ActiveViolation.
Implementations§
source§impl ActiveViolationBuilder
impl ActiveViolationBuilder
sourcepub fn violation_id(self, input: impl Into<String>) -> Self
pub fn violation_id(self, input: impl Into<String>) -> Self
The ID of the active violation.
sourcepub fn set_violation_id(self, input: Option<String>) -> Self
pub fn set_violation_id(self, input: Option<String>) -> Self
The ID of the active violation.
sourcepub fn get_violation_id(&self) -> &Option<String>
pub fn get_violation_id(&self) -> &Option<String>
The ID of the active violation.
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The name of the thing responsible for the active violation.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The name of the thing responsible for the active violation.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The name of the thing responsible for the active violation.
sourcepub fn security_profile_name(self, input: impl Into<String>) -> Self
pub fn security_profile_name(self, input: impl Into<String>) -> Self
The security profile with the behavior is in violation.
sourcepub fn set_security_profile_name(self, input: Option<String>) -> Self
pub fn set_security_profile_name(self, input: Option<String>) -> Self
The security profile with the behavior is in violation.
sourcepub fn get_security_profile_name(&self) -> &Option<String>
pub fn get_security_profile_name(&self) -> &Option<String>
The security profile with the behavior is in violation.
sourcepub fn set_behavior(self, input: Option<Behavior>) -> Self
pub fn set_behavior(self, input: Option<Behavior>) -> Self
The behavior that is being violated.
sourcepub fn get_behavior(&self) -> &Option<Behavior>
pub fn get_behavior(&self) -> &Option<Behavior>
The behavior that is being violated.
sourcepub fn last_violation_value(self, input: MetricValue) -> Self
pub fn last_violation_value(self, input: MetricValue) -> Self
The value of the metric (the measurement) that caused the most recent violation.
sourcepub fn set_last_violation_value(self, input: Option<MetricValue>) -> Self
pub fn set_last_violation_value(self, input: Option<MetricValue>) -> Self
The value of the metric (the measurement) that caused the most recent violation.
sourcepub fn get_last_violation_value(&self) -> &Option<MetricValue>
pub fn get_last_violation_value(&self) -> &Option<MetricValue>
The value of the metric (the measurement) that caused the most recent violation.
sourcepub fn violation_event_additional_info(
self,
input: ViolationEventAdditionalInfo
) -> Self
pub fn violation_event_additional_info( self, input: ViolationEventAdditionalInfo ) -> Self
The details of a violation event.
sourcepub fn set_violation_event_additional_info(
self,
input: Option<ViolationEventAdditionalInfo>
) -> Self
pub fn set_violation_event_additional_info( self, input: Option<ViolationEventAdditionalInfo> ) -> Self
The details of a violation event.
sourcepub fn get_violation_event_additional_info(
&self
) -> &Option<ViolationEventAdditionalInfo>
pub fn get_violation_event_additional_info( &self ) -> &Option<ViolationEventAdditionalInfo>
The details of a violation event.
sourcepub fn verification_state(self, input: VerificationState) -> Self
pub fn verification_state(self, input: VerificationState) -> Self
The verification state of the violation (detect alarm).
sourcepub fn set_verification_state(self, input: Option<VerificationState>) -> Self
pub fn set_verification_state(self, input: Option<VerificationState>) -> Self
The verification state of the violation (detect alarm).
sourcepub fn get_verification_state(&self) -> &Option<VerificationState>
pub fn get_verification_state(&self) -> &Option<VerificationState>
The verification state of the violation (detect alarm).
sourcepub fn verification_state_description(self, input: impl Into<String>) -> Self
pub fn verification_state_description(self, input: impl Into<String>) -> Self
The description of the verification state of the violation.
sourcepub fn set_verification_state_description(self, input: Option<String>) -> Self
pub fn set_verification_state_description(self, input: Option<String>) -> Self
The description of the verification state of the violation.
sourcepub fn get_verification_state_description(&self) -> &Option<String>
pub fn get_verification_state_description(&self) -> &Option<String>
The description of the verification state of the violation.
sourcepub fn last_violation_time(self, input: DateTime) -> Self
pub fn last_violation_time(self, input: DateTime) -> Self
The time the most recent violation occurred.
sourcepub fn set_last_violation_time(self, input: Option<DateTime>) -> Self
pub fn set_last_violation_time(self, input: Option<DateTime>) -> Self
The time the most recent violation occurred.
sourcepub fn get_last_violation_time(&self) -> &Option<DateTime>
pub fn get_last_violation_time(&self) -> &Option<DateTime>
The time the most recent violation occurred.
sourcepub fn violation_start_time(self, input: DateTime) -> Self
pub fn violation_start_time(self, input: DateTime) -> Self
The time the violation started.
sourcepub fn set_violation_start_time(self, input: Option<DateTime>) -> Self
pub fn set_violation_start_time(self, input: Option<DateTime>) -> Self
The time the violation started.
sourcepub fn get_violation_start_time(&self) -> &Option<DateTime>
pub fn get_violation_start_time(&self) -> &Option<DateTime>
The time the violation started.
sourcepub fn build(self) -> ActiveViolation
pub fn build(self) -> ActiveViolation
Consumes the builder and constructs a ActiveViolation.
Trait Implementations§
source§impl Clone for ActiveViolationBuilder
impl Clone for ActiveViolationBuilder
source§fn clone(&self) -> ActiveViolationBuilder
fn clone(&self) -> ActiveViolationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ActiveViolationBuilder
impl Debug for ActiveViolationBuilder
source§impl Default for ActiveViolationBuilder
impl Default for ActiveViolationBuilder
source§fn default() -> ActiveViolationBuilder
fn default() -> ActiveViolationBuilder
source§impl PartialEq<ActiveViolationBuilder> for ActiveViolationBuilder
impl PartialEq<ActiveViolationBuilder> for ActiveViolationBuilder
source§fn eq(&self, other: &ActiveViolationBuilder) -> bool
fn eq(&self, other: &ActiveViolationBuilder) -> bool
self and other values to be equal, and is used
by ==.