Struct aws_sdk_iotanalytics::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 IoT Analytics 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 IoT Analytics 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 IoT Analytics to perform logging.
sourcepub fn level(self, input: LoggingLevel) -> Self
pub fn level(self, input: LoggingLevel) -> Self
The logging level. Currently, only ERROR is supported.
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. Currently, only ERROR is supported.
sourcepub fn get_level(&self) -> &Option<LoggingLevel>
pub fn get_level(&self) -> &Option<LoggingLevel>
The logging level. Currently, only ERROR is supported.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
If true, logging is enabled for IoT Analytics.
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 IoT Analytics.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
If true, logging is enabled for IoT Analytics.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq for LoggingOptionsBuilder
impl PartialEq for LoggingOptionsBuilder
source§fn eq(&self, other: &LoggingOptionsBuilder) -> bool
fn eq(&self, other: &LoggingOptionsBuilder) -> bool
This method tests for
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.