#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetLoggingOptionsOutput {
pub role_arn: ::std::option::Option<::std::string::String>,
pub log_level: ::std::option::Option<crate::types::LogLevel>,
_request_id: Option<String>,
}
impl GetLoggingOptionsOutput {
pub fn role_arn(&self) -> ::std::option::Option<&str> {
self.role_arn.as_deref()
}
pub fn log_level(&self) -> ::std::option::Option<&crate::types::LogLevel> {
self.log_level.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetLoggingOptionsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetLoggingOptionsOutput {
pub fn builder() -> crate::operation::get_logging_options::builders::GetLoggingOptionsOutputBuilder {
crate::operation::get_logging_options::builders::GetLoggingOptionsOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetLoggingOptionsOutputBuilder {
pub(crate) role_arn: ::std::option::Option<::std::string::String>,
pub(crate) log_level: ::std::option::Option<crate::types::LogLevel>,
_request_id: Option<String>,
}
impl GetLoggingOptionsOutputBuilder {
pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.role_arn
}
pub fn log_level(mut self, input: crate::types::LogLevel) -> Self {
self.log_level = ::std::option::Option::Some(input);
self
}
pub fn set_log_level(mut self, input: ::std::option::Option<crate::types::LogLevel>) -> Self {
self.log_level = input;
self
}
pub fn get_log_level(&self) -> &::std::option::Option<crate::types::LogLevel> {
&self.log_level
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_logging_options::GetLoggingOptionsOutput {
crate::operation::get_logging_options::GetLoggingOptionsOutput {
role_arn: self.role_arn,
log_level: self.log_level,
_request_id: self._request_id,
}
}
}