#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeLogPatternOutput {
pub resource_group_name: ::std::option::Option<::std::string::String>,
pub account_id: ::std::option::Option<::std::string::String>,
pub log_pattern: ::std::option::Option<crate::types::LogPattern>,
_request_id: Option<String>,
}
impl DescribeLogPatternOutput {
pub fn resource_group_name(&self) -> ::std::option::Option<&str> {
self.resource_group_name.as_deref()
}
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn log_pattern(&self) -> ::std::option::Option<&crate::types::LogPattern> {
self.log_pattern.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeLogPatternOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeLogPatternOutput {
pub fn builder() -> crate::operation::describe_log_pattern::builders::DescribeLogPatternOutputBuilder {
crate::operation::describe_log_pattern::builders::DescribeLogPatternOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeLogPatternOutputBuilder {
pub(crate) resource_group_name: ::std::option::Option<::std::string::String>,
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) log_pattern: ::std::option::Option<crate::types::LogPattern>,
_request_id: Option<String>,
}
impl DescribeLogPatternOutputBuilder {
pub fn resource_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_group_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_resource_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_group_name = input;
self
}
pub fn get_resource_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_group_name
}
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.account_id
}
pub fn log_pattern(mut self, input: crate::types::LogPattern) -> Self {
self.log_pattern = ::std::option::Option::Some(input);
self
}
pub fn set_log_pattern(mut self, input: ::std::option::Option<crate::types::LogPattern>) -> Self {
self.log_pattern = input;
self
}
pub fn get_log_pattern(&self) -> &::std::option::Option<crate::types::LogPattern> {
&self.log_pattern
}
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::describe_log_pattern::DescribeLogPatternOutput {
crate::operation::describe_log_pattern::DescribeLogPatternOutput {
resource_group_name: self.resource_group_name,
account_id: self.account_id,
log_pattern: self.log_pattern,
_request_id: self._request_id,
}
}
}