Skip to main content

aws_sdk_amplifybackend/operation/remove_all_backends/
_remove_all_backends_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 RemoveAllBackendsOutput {
6    /// <p>The app ID.</p>
7    pub app_id: ::std::option::Option<::std::string::String>,
8    /// <p>If the request fails, this error is returned.</p>
9    pub error: ::std::option::Option<::std::string::String>,
10    /// <p>The ID for the job.</p>
11    pub job_id: ::std::option::Option<::std::string::String>,
12    /// <p>The name of the operation.</p>
13    pub operation: ::std::option::Option<::std::string::String>,
14    /// <p>The current status of the request.</p>
15    pub status: ::std::option::Option<::std::string::String>,
16    _request_id: Option<String>,
17}
18impl RemoveAllBackendsOutput {
19    /// <p>The app ID.</p>
20    pub fn app_id(&self) -> ::std::option::Option<&str> {
21        self.app_id.as_deref()
22    }
23    /// <p>If the request fails, this error is returned.</p>
24    pub fn error(&self) -> ::std::option::Option<&str> {
25        self.error.as_deref()
26    }
27    /// <p>The ID for the job.</p>
28    pub fn job_id(&self) -> ::std::option::Option<&str> {
29        self.job_id.as_deref()
30    }
31    /// <p>The name of the operation.</p>
32    pub fn operation(&self) -> ::std::option::Option<&str> {
33        self.operation.as_deref()
34    }
35    /// <p>The current status of the request.</p>
36    pub fn status(&self) -> ::std::option::Option<&str> {
37        self.status.as_deref()
38    }
39}
40impl ::aws_types::request_id::RequestId for RemoveAllBackendsOutput {
41    fn request_id(&self) -> Option<&str> {
42        self._request_id.as_deref()
43    }
44}
45impl RemoveAllBackendsOutput {
46    /// Creates a new builder-style object to manufacture [`RemoveAllBackendsOutput`](crate::operation::remove_all_backends::RemoveAllBackendsOutput).
47    pub fn builder() -> crate::operation::remove_all_backends::builders::RemoveAllBackendsOutputBuilder {
48        crate::operation::remove_all_backends::builders::RemoveAllBackendsOutputBuilder::default()
49    }
50}
51
52/// A builder for [`RemoveAllBackendsOutput`](crate::operation::remove_all_backends::RemoveAllBackendsOutput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct RemoveAllBackendsOutputBuilder {
56    pub(crate) app_id: ::std::option::Option<::std::string::String>,
57    pub(crate) error: ::std::option::Option<::std::string::String>,
58    pub(crate) job_id: ::std::option::Option<::std::string::String>,
59    pub(crate) operation: ::std::option::Option<::std::string::String>,
60    pub(crate) status: ::std::option::Option<::std::string::String>,
61    _request_id: Option<String>,
62}
63impl RemoveAllBackendsOutputBuilder {
64    /// <p>The app ID.</p>
65    pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.app_id = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The app ID.</p>
70    pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.app_id = input;
72        self
73    }
74    /// <p>The app ID.</p>
75    pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
76        &self.app_id
77    }
78    /// <p>If the request fails, this error is returned.</p>
79    pub fn error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.error = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>If the request fails, this error is returned.</p>
84    pub fn set_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.error = input;
86        self
87    }
88    /// <p>If the request fails, this error is returned.</p>
89    pub fn get_error(&self) -> &::std::option::Option<::std::string::String> {
90        &self.error
91    }
92    /// <p>The ID for the job.</p>
93    pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
94        self.job_id = ::std::option::Option::Some(input.into());
95        self
96    }
97    /// <p>The ID for the job.</p>
98    pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
99        self.job_id = input;
100        self
101    }
102    /// <p>The ID for the job.</p>
103    pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
104        &self.job_id
105    }
106    /// <p>The name of the operation.</p>
107    pub fn operation(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
108        self.operation = ::std::option::Option::Some(input.into());
109        self
110    }
111    /// <p>The name of the operation.</p>
112    pub fn set_operation(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
113        self.operation = input;
114        self
115    }
116    /// <p>The name of the operation.</p>
117    pub fn get_operation(&self) -> &::std::option::Option<::std::string::String> {
118        &self.operation
119    }
120    /// <p>The current status of the request.</p>
121    pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.status = ::std::option::Option::Some(input.into());
123        self
124    }
125    /// <p>The current status of the request.</p>
126    pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127        self.status = input;
128        self
129    }
130    /// <p>The current status of the request.</p>
131    pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
132        &self.status
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 [`RemoveAllBackendsOutput`](crate::operation::remove_all_backends::RemoveAllBackendsOutput).
144    pub fn build(self) -> crate::operation::remove_all_backends::RemoveAllBackendsOutput {
145        crate::operation::remove_all_backends::RemoveAllBackendsOutput {
146            app_id: self.app_id,
147            error: self.error,
148            job_id: self.job_id,
149            operation: self.operation,
150            status: self.status,
151            _request_id: self._request_id,
152        }
153    }
154}