Struct aws_sdk_iot::types::builders::ViolationEventBuilder
source · #[non_exhaustive]pub struct ViolationEventBuilder { /* private fields */ }
Expand description
A builder for ViolationEvent
.
Implementations§
source§impl ViolationEventBuilder
impl ViolationEventBuilder
sourcepub fn violation_id(self, input: impl Into<String>) -> Self
pub fn violation_id(self, input: impl Into<String>) -> Self
The ID of the violation event.
sourcepub fn set_violation_id(self, input: Option<String>) -> Self
pub fn set_violation_id(self, input: Option<String>) -> Self
The ID of the violation event.
sourcepub fn get_violation_id(&self) -> &Option<String>
pub fn get_violation_id(&self) -> &Option<String>
The ID of the violation event.
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 violation event.
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 violation event.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The name of the thing responsible for the violation event.
sourcepub fn security_profile_name(self, input: impl Into<String>) -> Self
pub fn security_profile_name(self, input: impl Into<String>) -> Self
The name of the security profile whose behavior was violated.
sourcepub fn set_security_profile_name(self, input: Option<String>) -> Self
pub fn set_security_profile_name(self, input: Option<String>) -> Self
The name of the security profile whose behavior was violated.
sourcepub fn get_security_profile_name(&self) -> &Option<String>
pub fn get_security_profile_name(&self) -> &Option<String>
The name of the security profile whose behavior was violated.
sourcepub fn set_behavior(self, input: Option<Behavior>) -> Self
pub fn set_behavior(self, input: Option<Behavior>) -> Self
The behavior that was violated.
sourcepub fn get_behavior(&self) -> &Option<Behavior>
pub fn get_behavior(&self) -> &Option<Behavior>
The behavior that was violated.
sourcepub fn metric_value(self, input: MetricValue) -> Self
pub fn metric_value(self, input: MetricValue) -> Self
The value of the metric (the measurement).
sourcepub fn set_metric_value(self, input: Option<MetricValue>) -> Self
pub fn set_metric_value(self, input: Option<MetricValue>) -> Self
The value of the metric (the measurement).
sourcepub fn get_metric_value(&self) -> &Option<MetricValue>
pub fn get_metric_value(&self) -> &Option<MetricValue>
The value of the metric (the measurement).
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 violation_event_type(self, input: ViolationEventType) -> Self
pub fn violation_event_type(self, input: ViolationEventType) -> Self
The type of violation event.
sourcepub fn set_violation_event_type(self, input: Option<ViolationEventType>) -> Self
pub fn set_violation_event_type(self, input: Option<ViolationEventType>) -> Self
The type of violation event.
sourcepub fn get_violation_event_type(&self) -> &Option<ViolationEventType>
pub fn get_violation_event_type(&self) -> &Option<ViolationEventType>
The type of 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 violation_event_time(self, input: DateTime) -> Self
pub fn violation_event_time(self, input: DateTime) -> Self
The time the violation event occurred.
sourcepub fn set_violation_event_time(self, input: Option<DateTime>) -> Self
pub fn set_violation_event_time(self, input: Option<DateTime>) -> Self
The time the violation event occurred.
sourcepub fn get_violation_event_time(&self) -> &Option<DateTime>
pub fn get_violation_event_time(&self) -> &Option<DateTime>
The time the violation event occurred.
sourcepub fn build(self) -> ViolationEvent
pub fn build(self) -> ViolationEvent
Consumes the builder and constructs a ViolationEvent
.
Trait Implementations§
source§impl Clone for ViolationEventBuilder
impl Clone for ViolationEventBuilder
source§fn clone(&self) -> ViolationEventBuilder
fn clone(&self) -> ViolationEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ViolationEventBuilder
impl Debug for ViolationEventBuilder
source§impl Default for ViolationEventBuilder
impl Default for ViolationEventBuilder
source§fn default() -> ViolationEventBuilder
fn default() -> ViolationEventBuilder
source§impl PartialEq for ViolationEventBuilder
impl PartialEq for ViolationEventBuilder
source§fn eq(&self, other: &ViolationEventBuilder) -> bool
fn eq(&self, other: &ViolationEventBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.