aws_sdk_quicksight/operation/delete_analysis/
_delete_analysis_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 DeleteAnalysisOutput {
6    /// <p>The HTTP status of the request.</p>
7    pub status: i32,
8    /// <p>The Amazon Resource Name (ARN) of the deleted analysis.</p>
9    pub arn: ::std::option::Option<::std::string::String>,
10    /// <p>The ID of the deleted analysis.</p>
11    pub analysis_id: ::std::option::Option<::std::string::String>,
12    /// <p>The date and time that the analysis is scheduled to be deleted.</p>
13    pub deletion_time: ::std::option::Option<::aws_smithy_types::DateTime>,
14    /// <p>The Amazon Web Services request ID for this operation.</p>
15    pub request_id: ::std::option::Option<::std::string::String>,
16    _request_id: Option<String>,
17}
18impl DeleteAnalysisOutput {
19    /// <p>The HTTP status of the request.</p>
20    pub fn status(&self) -> i32 {
21        self.status
22    }
23    /// <p>The Amazon Resource Name (ARN) of the deleted analysis.</p>
24    pub fn arn(&self) -> ::std::option::Option<&str> {
25        self.arn.as_deref()
26    }
27    /// <p>The ID of the deleted analysis.</p>
28    pub fn analysis_id(&self) -> ::std::option::Option<&str> {
29        self.analysis_id.as_deref()
30    }
31    /// <p>The date and time that the analysis is scheduled to be deleted.</p>
32    pub fn deletion_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
33        self.deletion_time.as_ref()
34    }
35    /// <p>The Amazon Web Services request ID for this operation.</p>
36    pub fn request_id(&self) -> ::std::option::Option<&str> {
37        self.request_id.as_deref()
38    }
39}
40impl ::aws_types::request_id::RequestId for DeleteAnalysisOutput {
41    fn request_id(&self) -> Option<&str> {
42        self._request_id.as_deref()
43    }
44}
45impl DeleteAnalysisOutput {
46    /// Creates a new builder-style object to manufacture [`DeleteAnalysisOutput`](crate::operation::delete_analysis::DeleteAnalysisOutput).
47    pub fn builder() -> crate::operation::delete_analysis::builders::DeleteAnalysisOutputBuilder {
48        crate::operation::delete_analysis::builders::DeleteAnalysisOutputBuilder::default()
49    }
50}
51
52/// A builder for [`DeleteAnalysisOutput`](crate::operation::delete_analysis::DeleteAnalysisOutput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct DeleteAnalysisOutputBuilder {
56    pub(crate) status: ::std::option::Option<i32>,
57    pub(crate) arn: ::std::option::Option<::std::string::String>,
58    pub(crate) analysis_id: ::std::option::Option<::std::string::String>,
59    pub(crate) deletion_time: ::std::option::Option<::aws_smithy_types::DateTime>,
60    pub(crate) request_id: ::std::option::Option<::std::string::String>,
61    _request_id: Option<String>,
62}
63impl DeleteAnalysisOutputBuilder {
64    /// <p>The HTTP status of the request.</p>
65    pub fn status(mut self, input: i32) -> Self {
66        self.status = ::std::option::Option::Some(input);
67        self
68    }
69    /// <p>The HTTP status of the request.</p>
70    pub fn set_status(mut self, input: ::std::option::Option<i32>) -> Self {
71        self.status = input;
72        self
73    }
74    /// <p>The HTTP status of the request.</p>
75    pub fn get_status(&self) -> &::std::option::Option<i32> {
76        &self.status
77    }
78    /// <p>The Amazon Resource Name (ARN) of the deleted analysis.</p>
79    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.arn = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The Amazon Resource Name (ARN) of the deleted analysis.</p>
84    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.arn = input;
86        self
87    }
88    /// <p>The Amazon Resource Name (ARN) of the deleted analysis.</p>
89    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
90        &self.arn
91    }
92    /// <p>The ID of the deleted analysis.</p>
93    pub fn analysis_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
94        self.analysis_id = ::std::option::Option::Some(input.into());
95        self
96    }
97    /// <p>The ID of the deleted analysis.</p>
98    pub fn set_analysis_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
99        self.analysis_id = input;
100        self
101    }
102    /// <p>The ID of the deleted analysis.</p>
103    pub fn get_analysis_id(&self) -> &::std::option::Option<::std::string::String> {
104        &self.analysis_id
105    }
106    /// <p>The date and time that the analysis is scheduled to be deleted.</p>
107    pub fn deletion_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
108        self.deletion_time = ::std::option::Option::Some(input);
109        self
110    }
111    /// <p>The date and time that the analysis is scheduled to be deleted.</p>
112    pub fn set_deletion_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
113        self.deletion_time = input;
114        self
115    }
116    /// <p>The date and time that the analysis is scheduled to be deleted.</p>
117    pub fn get_deletion_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
118        &self.deletion_time
119    }
120    /// <p>The Amazon Web Services request ID for this operation.</p>
121    pub fn request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.request_id = ::std::option::Option::Some(input.into());
123        self
124    }
125    /// <p>The Amazon Web Services request ID for this operation.</p>
126    pub fn set_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127        self.request_id = input;
128        self
129    }
130    /// <p>The Amazon Web Services request ID for this operation.</p>
131    pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
132        &self.request_id
133    }
134    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
135        self._request_id = Some(request_id.into());
136        self
137    }
138
139    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
140        self._request_id = request_id;
141        self
142    }
143    /// Consumes the builder and constructs a [`DeleteAnalysisOutput`](crate::operation::delete_analysis::DeleteAnalysisOutput).
144    pub fn build(self) -> crate::operation::delete_analysis::DeleteAnalysisOutput {
145        crate::operation::delete_analysis::DeleteAnalysisOutput {
146            status: self.status.unwrap_or_default(),
147            arn: self.arn,
148            analysis_id: self.analysis_id,
149            deletion_time: self.deletion_time,
150            request_id: self.request_id,
151            _request_id: self._request_id,
152        }
153    }
154}