aws_sdk_applicationinsights/operation/describe_component_configuration/
_describe_component_configuration_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 DescribeComponentConfigurationOutput {
6    /// <p>Indicates whether the application component is monitored.</p>
7    pub monitor: ::std::option::Option<bool>,
8    /// <p>The tier of the application component. Supported tiers include <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>, <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code></p>
9    pub tier: ::std::option::Option<crate::types::Tier>,
10    /// <p>The configuration settings of the component. The value is the escaped JSON of the configuration.</p>
11    pub component_configuration: ::std::option::Option<::std::string::String>,
12    _request_id: Option<String>,
13}
14impl DescribeComponentConfigurationOutput {
15    /// <p>Indicates whether the application component is monitored.</p>
16    pub fn monitor(&self) -> ::std::option::Option<bool> {
17        self.monitor
18    }
19    /// <p>The tier of the application component. Supported tiers include <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>, <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code></p>
20    pub fn tier(&self) -> ::std::option::Option<&crate::types::Tier> {
21        self.tier.as_ref()
22    }
23    /// <p>The configuration settings of the component. The value is the escaped JSON of the configuration.</p>
24    pub fn component_configuration(&self) -> ::std::option::Option<&str> {
25        self.component_configuration.as_deref()
26    }
27}
28impl ::aws_types::request_id::RequestId for DescribeComponentConfigurationOutput {
29    fn request_id(&self) -> Option<&str> {
30        self._request_id.as_deref()
31    }
32}
33impl DescribeComponentConfigurationOutput {
34    /// Creates a new builder-style object to manufacture [`DescribeComponentConfigurationOutput`](crate::operation::describe_component_configuration::DescribeComponentConfigurationOutput).
35    pub fn builder() -> crate::operation::describe_component_configuration::builders::DescribeComponentConfigurationOutputBuilder {
36        crate::operation::describe_component_configuration::builders::DescribeComponentConfigurationOutputBuilder::default()
37    }
38}
39
40/// A builder for [`DescribeComponentConfigurationOutput`](crate::operation::describe_component_configuration::DescribeComponentConfigurationOutput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct DescribeComponentConfigurationOutputBuilder {
44    pub(crate) monitor: ::std::option::Option<bool>,
45    pub(crate) tier: ::std::option::Option<crate::types::Tier>,
46    pub(crate) component_configuration: ::std::option::Option<::std::string::String>,
47    _request_id: Option<String>,
48}
49impl DescribeComponentConfigurationOutputBuilder {
50    /// <p>Indicates whether the application component is monitored.</p>
51    pub fn monitor(mut self, input: bool) -> Self {
52        self.monitor = ::std::option::Option::Some(input);
53        self
54    }
55    /// <p>Indicates whether the application component is monitored.</p>
56    pub fn set_monitor(mut self, input: ::std::option::Option<bool>) -> Self {
57        self.monitor = input;
58        self
59    }
60    /// <p>Indicates whether the application component is monitored.</p>
61    pub fn get_monitor(&self) -> &::std::option::Option<bool> {
62        &self.monitor
63    }
64    /// <p>The tier of the application component. Supported tiers include <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>, <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code></p>
65    pub fn tier(mut self, input: crate::types::Tier) -> Self {
66        self.tier = ::std::option::Option::Some(input);
67        self
68    }
69    /// <p>The tier of the application component. Supported tiers include <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>, <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code></p>
70    pub fn set_tier(mut self, input: ::std::option::Option<crate::types::Tier>) -> Self {
71        self.tier = input;
72        self
73    }
74    /// <p>The tier of the application component. Supported tiers include <code>DOT_NET_CORE</code>, <code>DOT_NET_WORKER</code>, <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and <code>DEFAULT</code></p>
75    pub fn get_tier(&self) -> &::std::option::Option<crate::types::Tier> {
76        &self.tier
77    }
78    /// <p>The configuration settings of the component. The value is the escaped JSON of the configuration.</p>
79    pub fn component_configuration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.component_configuration = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The configuration settings of the component. The value is the escaped JSON of the configuration.</p>
84    pub fn set_component_configuration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.component_configuration = input;
86        self
87    }
88    /// <p>The configuration settings of the component. The value is the escaped JSON of the configuration.</p>
89    pub fn get_component_configuration(&self) -> &::std::option::Option<::std::string::String> {
90        &self.component_configuration
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 [`DescribeComponentConfigurationOutput`](crate::operation::describe_component_configuration::DescribeComponentConfigurationOutput).
102    pub fn build(self) -> crate::operation::describe_component_configuration::DescribeComponentConfigurationOutput {
103        crate::operation::describe_component_configuration::DescribeComponentConfigurationOutput {
104            monitor: self.monitor,
105            tier: self.tier,
106            component_configuration: self.component_configuration,
107            _request_id: self._request_id,
108        }
109    }
110}