aws_sdk_quicksight/operation/delete_dashboard/
_delete_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 DeleteDashboardOutput {
6    /// <p>The HTTP status of the request.</p>
7    pub status: i32,
8    /// <p>The Secure Socket Layer (SSL) properties that apply for the resource.</p>
9    pub arn: ::std::option::Option<::std::string::String>,
10    /// <p>The ID of the dashboard.</p>
11    pub dashboard_id: ::std::option::Option<::std::string::String>,
12    /// <p>The Amazon Web Services request ID for this operation.</p>
13    pub request_id: ::std::option::Option<::std::string::String>,
14    _request_id: Option<String>,
15}
16impl DeleteDashboardOutput {
17    /// <p>The HTTP status of the request.</p>
18    pub fn status(&self) -> i32 {
19        self.status
20    }
21    /// <p>The Secure Socket Layer (SSL) properties that apply for the resource.</p>
22    pub fn arn(&self) -> ::std::option::Option<&str> {
23        self.arn.as_deref()
24    }
25    /// <p>The ID of the dashboard.</p>
26    pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
27        self.dashboard_id.as_deref()
28    }
29    /// <p>The Amazon Web Services request ID for this operation.</p>
30    pub fn request_id(&self) -> ::std::option::Option<&str> {
31        self.request_id.as_deref()
32    }
33}
34impl ::aws_types::request_id::RequestId for DeleteDashboardOutput {
35    fn request_id(&self) -> Option<&str> {
36        self._request_id.as_deref()
37    }
38}
39impl DeleteDashboardOutput {
40    /// Creates a new builder-style object to manufacture [`DeleteDashboardOutput`](crate::operation::delete_dashboard::DeleteDashboardOutput).
41    pub fn builder() -> crate::operation::delete_dashboard::builders::DeleteDashboardOutputBuilder {
42        crate::operation::delete_dashboard::builders::DeleteDashboardOutputBuilder::default()
43    }
44}
45
46/// A builder for [`DeleteDashboardOutput`](crate::operation::delete_dashboard::DeleteDashboardOutput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct DeleteDashboardOutputBuilder {
50    pub(crate) status: ::std::option::Option<i32>,
51    pub(crate) arn: ::std::option::Option<::std::string::String>,
52    pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
53    pub(crate) request_id: ::std::option::Option<::std::string::String>,
54    _request_id: Option<String>,
55}
56impl DeleteDashboardOutputBuilder {
57    /// <p>The HTTP status of the request.</p>
58    pub fn status(mut self, input: i32) -> Self {
59        self.status = ::std::option::Option::Some(input);
60        self
61    }
62    /// <p>The HTTP status of the request.</p>
63    pub fn set_status(mut self, input: ::std::option::Option<i32>) -> Self {
64        self.status = input;
65        self
66    }
67    /// <p>The HTTP status of the request.</p>
68    pub fn get_status(&self) -> &::std::option::Option<i32> {
69        &self.status
70    }
71    /// <p>The Secure Socket Layer (SSL) properties that apply for the resource.</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 Secure Socket Layer (SSL) properties that apply for the resource.</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 Secure Socket Layer (SSL) properties that apply for the resource.</p>
82    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
83        &self.arn
84    }
85    /// <p>The ID of the dashboard.</p>
86    pub fn dashboard_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87        self.dashboard_id = ::std::option::Option::Some(input.into());
88        self
89    }
90    /// <p>The ID of the dashboard.</p>
91    pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92        self.dashboard_id = input;
93        self
94    }
95    /// <p>The ID of the dashboard.</p>
96    pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
97        &self.dashboard_id
98    }
99    /// <p>The Amazon Web Services request ID for this operation.</p>
100    pub fn request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101        self.request_id = ::std::option::Option::Some(input.into());
102        self
103    }
104    /// <p>The Amazon Web Services request ID for this operation.</p>
105    pub fn set_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106        self.request_id = input;
107        self
108    }
109    /// <p>The Amazon Web Services request ID for this operation.</p>
110    pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
111        &self.request_id
112    }
113    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
114        self._request_id = Some(request_id.into());
115        self
116    }
117
118    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
119        self._request_id = request_id;
120        self
121    }
122    /// Consumes the builder and constructs a [`DeleteDashboardOutput`](crate::operation::delete_dashboard::DeleteDashboardOutput).
123    pub fn build(self) -> crate::operation::delete_dashboard::DeleteDashboardOutput {
124        crate::operation::delete_dashboard::DeleteDashboardOutput {
125            status: self.status.unwrap_or_default(),
126            arn: self.arn,
127            dashboard_id: self.dashboard_id,
128            request_id: self.request_id,
129            _request_id: self._request_id,
130        }
131    }
132}