aws_sdk_quicksight/operation/update_analysis/
_update_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 UpdateAnalysisOutput {
6    /// <p>The ARN of the analysis that you're updating.</p>
7    pub arn: ::std::option::Option<::std::string::String>,
8    /// <p>The ID of the analysis.</p>
9    pub analysis_id: ::std::option::Option<::std::string::String>,
10    /// <p>The update status of the last update that was made to the analysis.</p>
11    pub update_status: ::std::option::Option<crate::types::ResourceStatus>,
12    /// <p>The HTTP status of the request.</p>
13    pub status: i32,
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 UpdateAnalysisOutput {
19    /// <p>The ARN of the analysis that you're updating.</p>
20    pub fn arn(&self) -> ::std::option::Option<&str> {
21        self.arn.as_deref()
22    }
23    /// <p>The ID of the analysis.</p>
24    pub fn analysis_id(&self) -> ::std::option::Option<&str> {
25        self.analysis_id.as_deref()
26    }
27    /// <p>The update status of the last update that was made to the analysis.</p>
28    pub fn update_status(&self) -> ::std::option::Option<&crate::types::ResourceStatus> {
29        self.update_status.as_ref()
30    }
31    /// <p>The HTTP status of the request.</p>
32    pub fn status(&self) -> i32 {
33        self.status
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 UpdateAnalysisOutput {
41    fn request_id(&self) -> Option<&str> {
42        self._request_id.as_deref()
43    }
44}
45impl UpdateAnalysisOutput {
46    /// Creates a new builder-style object to manufacture [`UpdateAnalysisOutput`](crate::operation::update_analysis::UpdateAnalysisOutput).
47    pub fn builder() -> crate::operation::update_analysis::builders::UpdateAnalysisOutputBuilder {
48        crate::operation::update_analysis::builders::UpdateAnalysisOutputBuilder::default()
49    }
50}
51
52/// A builder for [`UpdateAnalysisOutput`](crate::operation::update_analysis::UpdateAnalysisOutput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct UpdateAnalysisOutputBuilder {
56    pub(crate) arn: ::std::option::Option<::std::string::String>,
57    pub(crate) analysis_id: ::std::option::Option<::std::string::String>,
58    pub(crate) update_status: ::std::option::Option<crate::types::ResourceStatus>,
59    pub(crate) status: ::std::option::Option<i32>,
60    pub(crate) request_id: ::std::option::Option<::std::string::String>,
61    _request_id: Option<String>,
62}
63impl UpdateAnalysisOutputBuilder {
64    /// <p>The ARN of the analysis that you're updating.</p>
65    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.arn = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The ARN of the analysis that you're updating.</p>
70    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.arn = input;
72        self
73    }
74    /// <p>The ARN of the analysis that you're updating.</p>
75    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
76        &self.arn
77    }
78    /// <p>The ID of the analysis.</p>
79    pub fn analysis_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.analysis_id = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The ID of the analysis.</p>
84    pub fn set_analysis_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.analysis_id = input;
86        self
87    }
88    /// <p>The ID of the analysis.</p>
89    pub fn get_analysis_id(&self) -> &::std::option::Option<::std::string::String> {
90        &self.analysis_id
91    }
92    /// <p>The update status of the last update that was made to the analysis.</p>
93    pub fn update_status(mut self, input: crate::types::ResourceStatus) -> Self {
94        self.update_status = ::std::option::Option::Some(input);
95        self
96    }
97    /// <p>The update status of the last update that was made to the analysis.</p>
98    pub fn set_update_status(mut self, input: ::std::option::Option<crate::types::ResourceStatus>) -> Self {
99        self.update_status = input;
100        self
101    }
102    /// <p>The update status of the last update that was made to the analysis.</p>
103    pub fn get_update_status(&self) -> &::std::option::Option<crate::types::ResourceStatus> {
104        &self.update_status
105    }
106    /// <p>The HTTP status of the request.</p>
107    pub fn status(mut self, input: i32) -> Self {
108        self.status = ::std::option::Option::Some(input);
109        self
110    }
111    /// <p>The HTTP status of the request.</p>
112    pub fn set_status(mut self, input: ::std::option::Option<i32>) -> Self {
113        self.status = input;
114        self
115    }
116    /// <p>The HTTP status of the request.</p>
117    pub fn get_status(&self) -> &::std::option::Option<i32> {
118        &self.status
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 [`UpdateAnalysisOutput`](crate::operation::update_analysis::UpdateAnalysisOutput).
144    pub fn build(self) -> crate::operation::update_analysis::UpdateAnalysisOutput {
145        crate::operation::update_analysis::UpdateAnalysisOutput {
146            arn: self.arn,
147            analysis_id: self.analysis_id,
148            update_status: self.update_status,
149            status: self.status.unwrap_or_default(),
150            request_id: self.request_id,
151            _request_id: self._request_id,
152        }
153    }
154}