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