Struct aws_sdk_iotevents::types::builders::LoggingOptionsBuilder
source · #[non_exhaustive]pub struct LoggingOptionsBuilder { /* private fields */ }
Expand description
A builder for LoggingOptions
.
Implementations§
source§impl LoggingOptionsBuilder
impl LoggingOptionsBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the role that grants permission to AWS IoT Events to perform logging.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the role that grants permission to AWS IoT Events to perform logging.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the role that grants permission to AWS IoT Events to perform logging.
sourcepub fn level(self, input: LoggingLevel) -> Self
pub fn level(self, input: LoggingLevel) -> Self
The logging level.
This field is required.sourcepub fn set_level(self, input: Option<LoggingLevel>) -> Self
pub fn set_level(self, input: Option<LoggingLevel>) -> Self
The logging level.
sourcepub fn get_level(&self) -> &Option<LoggingLevel>
pub fn get_level(&self) -> &Option<LoggingLevel>
The logging level.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
If TRUE, logging is enabled for AWS IoT Events.
This field is required.sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
If TRUE, logging is enabled for AWS IoT Events.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
If TRUE, logging is enabled for AWS IoT Events.
sourcepub fn detector_debug_options(self, input: DetectorDebugOption) -> Self
pub fn detector_debug_options(self, input: DetectorDebugOption) -> Self
Appends an item to detector_debug_options
.
To override the contents of this collection use set_detector_debug_options
.
Information that identifies those detector models and their detectors (instances) for which the logging level is given.
sourcepub fn set_detector_debug_options(
self,
input: Option<Vec<DetectorDebugOption>>
) -> Self
pub fn set_detector_debug_options( self, input: Option<Vec<DetectorDebugOption>> ) -> Self
Information that identifies those detector models and their detectors (instances) for which the logging level is given.
sourcepub fn get_detector_debug_options(&self) -> &Option<Vec<DetectorDebugOption>>
pub fn get_detector_debug_options(&self) -> &Option<Vec<DetectorDebugOption>>
Information that identifies those detector models and their detectors (instances) for which the logging level is given.
sourcepub fn build(self) -> Result<LoggingOptions, BuildError>
pub fn build(self) -> Result<LoggingOptions, BuildError>
Consumes the builder and constructs a LoggingOptions
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LoggingOptionsBuilder
impl Clone for LoggingOptionsBuilder
source§fn clone(&self) -> LoggingOptionsBuilder
fn clone(&self) -> LoggingOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoggingOptionsBuilder
impl Debug for LoggingOptionsBuilder
source§impl Default for LoggingOptionsBuilder
impl Default for LoggingOptionsBuilder
source§fn default() -> LoggingOptionsBuilder
fn default() -> LoggingOptionsBuilder
source§impl PartialEq for LoggingOptionsBuilder
impl PartialEq for LoggingOptionsBuilder
source§fn eq(&self, other: &LoggingOptionsBuilder) -> bool
fn eq(&self, other: &LoggingOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoggingOptionsBuilder
Auto Trait Implementations§
impl Freeze for LoggingOptionsBuilder
impl RefUnwindSafe for LoggingOptionsBuilder
impl Send for LoggingOptionsBuilder
impl Sync for LoggingOptionsBuilder
impl Unpin for LoggingOptionsBuilder
impl UnwindSafe for LoggingOptionsBuilder
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