aws_sdk_quicksight/operation/create_dashboard/
_create_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 CreateDashboardOutput {
6    /// <p>The ARN of the dashboard.</p>
7    pub arn: ::std::option::Option<::std::string::String>,
8    /// <p>The ARN of the dashboard, including the version number of the first version that is created.</p>
9    pub version_arn: ::std::option::Option<::std::string::String>,
10    /// <p>The ID for the dashboard.</p>
11    pub dashboard_id: ::std::option::Option<::std::string::String>,
12    /// <p>The status of the dashboard creation request.</p>
13    pub creation_status: ::std::option::Option<crate::types::ResourceStatus>,
14    /// <p>The HTTP status of the request.</p>
15    pub status: i32,
16    /// <p>The Amazon Web Services request ID for this operation.</p>
17    pub request_id: ::std::option::Option<::std::string::String>,
18    _request_id: Option<String>,
19}
20impl CreateDashboardOutput {
21    /// <p>The ARN of the dashboard.</p>
22    pub fn arn(&self) -> ::std::option::Option<&str> {
23        self.arn.as_deref()
24    }
25    /// <p>The ARN of the dashboard, including the version number of the first version that is created.</p>
26    pub fn version_arn(&self) -> ::std::option::Option<&str> {
27        self.version_arn.as_deref()
28    }
29    /// <p>The ID for the dashboard.</p>
30    pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
31        self.dashboard_id.as_deref()
32    }
33    /// <p>The status of the dashboard creation request.</p>
34    pub fn creation_status(&self) -> ::std::option::Option<&crate::types::ResourceStatus> {
35        self.creation_status.as_ref()
36    }
37    /// <p>The HTTP status of the request.</p>
38    pub fn status(&self) -> i32 {
39        self.status
40    }
41    /// <p>The Amazon Web Services request ID for this operation.</p>
42    pub fn request_id(&self) -> ::std::option::Option<&str> {
43        self.request_id.as_deref()
44    }
45}
46impl ::aws_types::request_id::RequestId for CreateDashboardOutput {
47    fn request_id(&self) -> Option<&str> {
48        self._request_id.as_deref()
49    }
50}
51impl CreateDashboardOutput {
52    /// Creates a new builder-style object to manufacture [`CreateDashboardOutput`](crate::operation::create_dashboard::CreateDashboardOutput).
53    pub fn builder() -> crate::operation::create_dashboard::builders::CreateDashboardOutputBuilder {
54        crate::operation::create_dashboard::builders::CreateDashboardOutputBuilder::default()
55    }
56}
57
58/// A builder for [`CreateDashboardOutput`](crate::operation::create_dashboard::CreateDashboardOutput).
59#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
60#[non_exhaustive]
61pub struct CreateDashboardOutputBuilder {
62    pub(crate) arn: ::std::option::Option<::std::string::String>,
63    pub(crate) version_arn: ::std::option::Option<::std::string::String>,
64    pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
65    pub(crate) creation_status: ::std::option::Option<crate::types::ResourceStatus>,
66    pub(crate) status: ::std::option::Option<i32>,
67    pub(crate) request_id: ::std::option::Option<::std::string::String>,
68    _request_id: Option<String>,
69}
70impl CreateDashboardOutputBuilder {
71    /// <p>The ARN of the dashboard.</p>
72    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73        self.arn = ::std::option::Option::Some(input.into());
74        self
75    }
76    /// <p>The ARN of the dashboard.</p>
77    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78        self.arn = input;
79        self
80    }
81    /// <p>The ARN of the dashboard.</p>
82    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
83        &self.arn
84    }
85    /// <p>The ARN of the dashboard, including the version number of the first version that is created.</p>
86    pub fn version_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87        self.version_arn = ::std::option::Option::Some(input.into());
88        self
89    }
90    /// <p>The ARN of the dashboard, including the version number of the first version that is created.</p>
91    pub fn set_version_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92        self.version_arn = input;
93        self
94    }
95    /// <p>The ARN of the dashboard, including the version number of the first version that is created.</p>
96    pub fn get_version_arn(&self) -> &::std::option::Option<::std::string::String> {
97        &self.version_arn
98    }
99    /// <p>The ID for the dashboard.</p>
100    pub fn dashboard_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101        self.dashboard_id = ::std::option::Option::Some(input.into());
102        self
103    }
104    /// <p>The ID for the dashboard.</p>
105    pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106        self.dashboard_id = input;
107        self
108    }
109    /// <p>The ID for the dashboard.</p>
110    pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
111        &self.dashboard_id
112    }
113    /// <p>The status of the dashboard creation request.</p>
114    pub fn creation_status(mut self, input: crate::types::ResourceStatus) -> Self {
115        self.creation_status = ::std::option::Option::Some(input);
116        self
117    }
118    /// <p>The status of the dashboard creation request.</p>
119    pub fn set_creation_status(mut self, input: ::std::option::Option<crate::types::ResourceStatus>) -> Self {
120        self.creation_status = input;
121        self
122    }
123    /// <p>The status of the dashboard creation request.</p>
124    pub fn get_creation_status(&self) -> &::std::option::Option<crate::types::ResourceStatus> {
125        &self.creation_status
126    }
127    /// <p>The HTTP status of the request.</p>
128    pub fn status(mut self, input: i32) -> Self {
129        self.status = ::std::option::Option::Some(input);
130        self
131    }
132    /// <p>The HTTP status of the request.</p>
133    pub fn set_status(mut self, input: ::std::option::Option<i32>) -> Self {
134        self.status = input;
135        self
136    }
137    /// <p>The HTTP status of the request.</p>
138    pub fn get_status(&self) -> &::std::option::Option<i32> {
139        &self.status
140    }
141    /// <p>The Amazon Web Services request ID for this operation.</p>
142    pub fn request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
143        self.request_id = ::std::option::Option::Some(input.into());
144        self
145    }
146    /// <p>The Amazon Web Services request ID for this operation.</p>
147    pub fn set_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
148        self.request_id = input;
149        self
150    }
151    /// <p>The Amazon Web Services request ID for this operation.</p>
152    pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
153        &self.request_id
154    }
155    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
156        self._request_id = Some(request_id.into());
157        self
158    }
159
160    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
161        self._request_id = request_id;
162        self
163    }
164    /// Consumes the builder and constructs a [`CreateDashboardOutput`](crate::operation::create_dashboard::CreateDashboardOutput).
165    pub fn build(self) -> crate::operation::create_dashboard::CreateDashboardOutput {
166        crate::operation::create_dashboard::CreateDashboardOutput {
167            arn: self.arn,
168            version_arn: self.version_arn,
169            dashboard_id: self.dashboard_id,
170            creation_status: self.creation_status,
171            status: self.status.unwrap_or_default(),
172            request_id: self.request_id,
173            _request_id: self._request_id,
174        }
175    }
176}