aws_sdk_applicationinsights/operation/describe_log_pattern/
_describe_log_pattern_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeLogPatternOutput {
6    /// <p>The name of the resource group.</p>
7    pub resource_group_name: ::std::option::Option<::std::string::String>,
8    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
9    pub account_id: ::std::option::Option<::std::string::String>,
10    /// <p>The successfully created log pattern.</p>
11    pub log_pattern: ::std::option::Option<crate::types::LogPattern>,
12    _request_id: Option<String>,
13}
14impl DescribeLogPatternOutput {
15    /// <p>The name of the resource group.</p>
16    pub fn resource_group_name(&self) -> ::std::option::Option<&str> {
17        self.resource_group_name.as_deref()
18    }
19    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
20    pub fn account_id(&self) -> ::std::option::Option<&str> {
21        self.account_id.as_deref()
22    }
23    /// <p>The successfully created log pattern.</p>
24    pub fn log_pattern(&self) -> ::std::option::Option<&crate::types::LogPattern> {
25        self.log_pattern.as_ref()
26    }
27}
28impl ::aws_types::request_id::RequestId for DescribeLogPatternOutput {
29    fn request_id(&self) -> Option<&str> {
30        self._request_id.as_deref()
31    }
32}
33impl DescribeLogPatternOutput {
34    /// Creates a new builder-style object to manufacture [`DescribeLogPatternOutput`](crate::operation::describe_log_pattern::DescribeLogPatternOutput).
35    pub fn builder() -> crate::operation::describe_log_pattern::builders::DescribeLogPatternOutputBuilder {
36        crate::operation::describe_log_pattern::builders::DescribeLogPatternOutputBuilder::default()
37    }
38}
39
40/// A builder for [`DescribeLogPatternOutput`](crate::operation::describe_log_pattern::DescribeLogPatternOutput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct DescribeLogPatternOutputBuilder {
44    pub(crate) resource_group_name: ::std::option::Option<::std::string::String>,
45    pub(crate) account_id: ::std::option::Option<::std::string::String>,
46    pub(crate) log_pattern: ::std::option::Option<crate::types::LogPattern>,
47    _request_id: Option<String>,
48}
49impl DescribeLogPatternOutputBuilder {
50    /// <p>The name of the resource group.</p>
51    pub fn resource_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52        self.resource_group_name = ::std::option::Option::Some(input.into());
53        self
54    }
55    /// <p>The name of the resource group.</p>
56    pub fn set_resource_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57        self.resource_group_name = input;
58        self
59    }
60    /// <p>The name of the resource group.</p>
61    pub fn get_resource_group_name(&self) -> &::std::option::Option<::std::string::String> {
62        &self.resource_group_name
63    }
64    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
65    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.account_id = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
70    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.account_id = input;
72        self
73    }
74    /// <p>The Amazon Web Services account ID for the resource group owner.</p>
75    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
76        &self.account_id
77    }
78    /// <p>The successfully created log pattern.</p>
79    pub fn log_pattern(mut self, input: crate::types::LogPattern) -> Self {
80        self.log_pattern = ::std::option::Option::Some(input);
81        self
82    }
83    /// <p>The successfully created log pattern.</p>
84    pub fn set_log_pattern(mut self, input: ::std::option::Option<crate::types::LogPattern>) -> Self {
85        self.log_pattern = input;
86        self
87    }
88    /// <p>The successfully created log pattern.</p>
89    pub fn get_log_pattern(&self) -> &::std::option::Option<crate::types::LogPattern> {
90        &self.log_pattern
91    }
92    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
93        self._request_id = Some(request_id.into());
94        self
95    }
96
97    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
98        self._request_id = request_id;
99        self
100    }
101    /// Consumes the builder and constructs a [`DescribeLogPatternOutput`](crate::operation::describe_log_pattern::DescribeLogPatternOutput).
102    pub fn build(self) -> crate::operation::describe_log_pattern::DescribeLogPatternOutput {
103        crate::operation::describe_log_pattern::DescribeLogPatternOutput {
104            resource_group_name: self.resource_group_name,
105            account_id: self.account_id,
106            log_pattern: self.log_pattern,
107            _request_id: self._request_id,
108        }
109    }
110}