aws_sdk_cloudwatch/operation/get_dashboard/
_get_dashboard_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 GetDashboardOutput {
6    /// <p>The Amazon Resource Name (ARN) of the dashboard.</p>
7    pub dashboard_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the <code>DashboardBody</code> syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html">Dashboard Body Structure and Syntax</a>.</p>
9    pub dashboard_body: ::std::option::Option<::std::string::String>,
10    /// <p>The name of the dashboard.</p>
11    pub dashboard_name: ::std::option::Option<::std::string::String>,
12    _request_id: Option<String>,
13}
14impl GetDashboardOutput {
15    /// <p>The Amazon Resource Name (ARN) of the dashboard.</p>
16    pub fn dashboard_arn(&self) -> ::std::option::Option<&str> {
17        self.dashboard_arn.as_deref()
18    }
19    /// <p>The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the <code>DashboardBody</code> syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html">Dashboard Body Structure and Syntax</a>.</p>
20    pub fn dashboard_body(&self) -> ::std::option::Option<&str> {
21        self.dashboard_body.as_deref()
22    }
23    /// <p>The name of the dashboard.</p>
24    pub fn dashboard_name(&self) -> ::std::option::Option<&str> {
25        self.dashboard_name.as_deref()
26    }
27}
28impl ::aws_types::request_id::RequestId for GetDashboardOutput {
29    fn request_id(&self) -> Option<&str> {
30        self._request_id.as_deref()
31    }
32}
33impl GetDashboardOutput {
34    /// Creates a new builder-style object to manufacture [`GetDashboardOutput`](crate::operation::get_dashboard::GetDashboardOutput).
35    pub fn builder() -> crate::operation::get_dashboard::builders::GetDashboardOutputBuilder {
36        crate::operation::get_dashboard::builders::GetDashboardOutputBuilder::default()
37    }
38}
39
40/// A builder for [`GetDashboardOutput`](crate::operation::get_dashboard::GetDashboardOutput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct GetDashboardOutputBuilder {
44    pub(crate) dashboard_arn: ::std::option::Option<::std::string::String>,
45    pub(crate) dashboard_body: ::std::option::Option<::std::string::String>,
46    pub(crate) dashboard_name: ::std::option::Option<::std::string::String>,
47    _request_id: Option<String>,
48}
49impl GetDashboardOutputBuilder {
50    /// <p>The Amazon Resource Name (ARN) of the dashboard.</p>
51    pub fn dashboard_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52        self.dashboard_arn = ::std::option::Option::Some(input.into());
53        self
54    }
55    /// <p>The Amazon Resource Name (ARN) of the dashboard.</p>
56    pub fn set_dashboard_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57        self.dashboard_arn = input;
58        self
59    }
60    /// <p>The Amazon Resource Name (ARN) of the dashboard.</p>
61    pub fn get_dashboard_arn(&self) -> &::std::option::Option<::std::string::String> {
62        &self.dashboard_arn
63    }
64    /// <p>The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the <code>DashboardBody</code> syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html">Dashboard Body Structure and Syntax</a>.</p>
65    pub fn dashboard_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.dashboard_body = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the <code>DashboardBody</code> syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html">Dashboard Body Structure and Syntax</a>.</p>
70    pub fn set_dashboard_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.dashboard_body = input;
72        self
73    }
74    /// <p>The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the <code>DashboardBody</code> syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html">Dashboard Body Structure and Syntax</a>.</p>
75    pub fn get_dashboard_body(&self) -> &::std::option::Option<::std::string::String> {
76        &self.dashboard_body
77    }
78    /// <p>The name of the dashboard.</p>
79    pub fn dashboard_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.dashboard_name = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The name of the dashboard.</p>
84    pub fn set_dashboard_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.dashboard_name = input;
86        self
87    }
88    /// <p>The name of the dashboard.</p>
89    pub fn get_dashboard_name(&self) -> &::std::option::Option<::std::string::String> {
90        &self.dashboard_name
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 [`GetDashboardOutput`](crate::operation::get_dashboard::GetDashboardOutput).
102    pub fn build(self) -> crate::operation::get_dashboard::GetDashboardOutput {
103        crate::operation::get_dashboard::GetDashboardOutput {
104            dashboard_arn: self.dashboard_arn,
105            dashboard_body: self.dashboard_body,
106            dashboard_name: self.dashboard_name,
107            _request_id: self._request_id,
108        }
109    }
110}