aws_sdk_apigatewayv2/operation/get_api/
_get_api_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 GetApiOutput {
6    /// <p>The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.</p>
7    pub api_endpoint: ::std::option::Option<::std::string::String>,
8    /// <p>Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.</p>
9    pub api_gateway_managed: ::std::option::Option<bool>,
10    /// <p>The API ID.</p>
11    pub api_id: ::std::option::Option<::std::string::String>,
12    /// <p>An API key selection expression. Supported only for WebSocket APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions">API Key Selection Expressions</a>.</p>
13    pub api_key_selection_expression: ::std::option::Option<::std::string::String>,
14    /// <p>A CORS configuration. Supported only for HTTP APIs.</p>
15    pub cors_configuration: ::std::option::Option<crate::types::Cors>,
16    /// <p>The timestamp when the API was created.</p>
17    pub created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
18    /// <p>The description of the API.</p>
19    pub description: ::std::option::Option<::std::string::String>,
20    /// <p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>
21    pub disable_schema_validation: ::std::option::Option<bool>,
22    /// <p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>
23    pub disable_execute_api_endpoint: ::std::option::Option<bool>,
24    /// <p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>
25    pub import_info: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
26    /// <p>The IP address types that can invoke the API.</p>
27    pub ip_address_type: ::std::option::Option<crate::types::IpAddressType>,
28    /// <p>The name of the API.</p>
29    pub name: ::std::option::Option<::std::string::String>,
30    /// <p>The API protocol.</p>
31    pub protocol_type: ::std::option::Option<crate::types::ProtocolType>,
32    /// <p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p>
33    pub route_selection_expression: ::std::option::Option<::std::string::String>,
34    /// <p>A collection of tags associated with the API.</p>
35    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
36    /// <p>A version identifier for the API.</p>
37    pub version: ::std::option::Option<::std::string::String>,
38    /// <p>The warning messages reported when failonwarnings is turned on during API import.</p>
39    pub warnings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
40    _request_id: Option<String>,
41}
42impl GetApiOutput {
43    /// <p>The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.</p>
44    pub fn api_endpoint(&self) -> ::std::option::Option<&str> {
45        self.api_endpoint.as_deref()
46    }
47    /// <p>Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.</p>
48    pub fn api_gateway_managed(&self) -> ::std::option::Option<bool> {
49        self.api_gateway_managed
50    }
51    /// <p>The API ID.</p>
52    pub fn api_id(&self) -> ::std::option::Option<&str> {
53        self.api_id.as_deref()
54    }
55    /// <p>An API key selection expression. Supported only for WebSocket APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions">API Key Selection Expressions</a>.</p>
56    pub fn api_key_selection_expression(&self) -> ::std::option::Option<&str> {
57        self.api_key_selection_expression.as_deref()
58    }
59    /// <p>A CORS configuration. Supported only for HTTP APIs.</p>
60    pub fn cors_configuration(&self) -> ::std::option::Option<&crate::types::Cors> {
61        self.cors_configuration.as_ref()
62    }
63    /// <p>The timestamp when the API was created.</p>
64    pub fn created_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
65        self.created_date.as_ref()
66    }
67    /// <p>The description of the API.</p>
68    pub fn description(&self) -> ::std::option::Option<&str> {
69        self.description.as_deref()
70    }
71    /// <p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>
72    pub fn disable_schema_validation(&self) -> ::std::option::Option<bool> {
73        self.disable_schema_validation
74    }
75    /// <p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>
76    pub fn disable_execute_api_endpoint(&self) -> ::std::option::Option<bool> {
77        self.disable_execute_api_endpoint
78    }
79    /// <p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>
80    ///
81    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.import_info.is_none()`.
82    pub fn import_info(&self) -> &[::std::string::String] {
83        self.import_info.as_deref().unwrap_or_default()
84    }
85    /// <p>The IP address types that can invoke the API.</p>
86    pub fn ip_address_type(&self) -> ::std::option::Option<&crate::types::IpAddressType> {
87        self.ip_address_type.as_ref()
88    }
89    /// <p>The name of the API.</p>
90    pub fn name(&self) -> ::std::option::Option<&str> {
91        self.name.as_deref()
92    }
93    /// <p>The API protocol.</p>
94    pub fn protocol_type(&self) -> ::std::option::Option<&crate::types::ProtocolType> {
95        self.protocol_type.as_ref()
96    }
97    /// <p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p>
98    pub fn route_selection_expression(&self) -> ::std::option::Option<&str> {
99        self.route_selection_expression.as_deref()
100    }
101    /// <p>A collection of tags associated with the API.</p>
102    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
103        self.tags.as_ref()
104    }
105    /// <p>A version identifier for the API.</p>
106    pub fn version(&self) -> ::std::option::Option<&str> {
107        self.version.as_deref()
108    }
109    /// <p>The warning messages reported when failonwarnings is turned on during API import.</p>
110    ///
111    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.warnings.is_none()`.
112    pub fn warnings(&self) -> &[::std::string::String] {
113        self.warnings.as_deref().unwrap_or_default()
114    }
115}
116impl ::aws_types::request_id::RequestId for GetApiOutput {
117    fn request_id(&self) -> Option<&str> {
118        self._request_id.as_deref()
119    }
120}
121impl GetApiOutput {
122    /// Creates a new builder-style object to manufacture [`GetApiOutput`](crate::operation::get_api::GetApiOutput).
123    pub fn builder() -> crate::operation::get_api::builders::GetApiOutputBuilder {
124        crate::operation::get_api::builders::GetApiOutputBuilder::default()
125    }
126}
127
128/// A builder for [`GetApiOutput`](crate::operation::get_api::GetApiOutput).
129#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
130#[non_exhaustive]
131pub struct GetApiOutputBuilder {
132    pub(crate) api_endpoint: ::std::option::Option<::std::string::String>,
133    pub(crate) api_gateway_managed: ::std::option::Option<bool>,
134    pub(crate) api_id: ::std::option::Option<::std::string::String>,
135    pub(crate) api_key_selection_expression: ::std::option::Option<::std::string::String>,
136    pub(crate) cors_configuration: ::std::option::Option<crate::types::Cors>,
137    pub(crate) created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
138    pub(crate) description: ::std::option::Option<::std::string::String>,
139    pub(crate) disable_schema_validation: ::std::option::Option<bool>,
140    pub(crate) disable_execute_api_endpoint: ::std::option::Option<bool>,
141    pub(crate) import_info: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
142    pub(crate) ip_address_type: ::std::option::Option<crate::types::IpAddressType>,
143    pub(crate) name: ::std::option::Option<::std::string::String>,
144    pub(crate) protocol_type: ::std::option::Option<crate::types::ProtocolType>,
145    pub(crate) route_selection_expression: ::std::option::Option<::std::string::String>,
146    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
147    pub(crate) version: ::std::option::Option<::std::string::String>,
148    pub(crate) warnings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
149    _request_id: Option<String>,
150}
151impl GetApiOutputBuilder {
152    /// <p>The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.</p>
153    pub fn api_endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
154        self.api_endpoint = ::std::option::Option::Some(input.into());
155        self
156    }
157    /// <p>The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.</p>
158    pub fn set_api_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
159        self.api_endpoint = input;
160        self
161    }
162    /// <p>The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.</p>
163    pub fn get_api_endpoint(&self) -> &::std::option::Option<::std::string::String> {
164        &self.api_endpoint
165    }
166    /// <p>Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.</p>
167    pub fn api_gateway_managed(mut self, input: bool) -> Self {
168        self.api_gateway_managed = ::std::option::Option::Some(input);
169        self
170    }
171    /// <p>Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.</p>
172    pub fn set_api_gateway_managed(mut self, input: ::std::option::Option<bool>) -> Self {
173        self.api_gateway_managed = input;
174        self
175    }
176    /// <p>Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.</p>
177    pub fn get_api_gateway_managed(&self) -> &::std::option::Option<bool> {
178        &self.api_gateway_managed
179    }
180    /// <p>The API ID.</p>
181    pub fn api_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
182        self.api_id = ::std::option::Option::Some(input.into());
183        self
184    }
185    /// <p>The API ID.</p>
186    pub fn set_api_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
187        self.api_id = input;
188        self
189    }
190    /// <p>The API ID.</p>
191    pub fn get_api_id(&self) -> &::std::option::Option<::std::string::String> {
192        &self.api_id
193    }
194    /// <p>An API key selection expression. Supported only for WebSocket APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions">API Key Selection Expressions</a>.</p>
195    pub fn api_key_selection_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
196        self.api_key_selection_expression = ::std::option::Option::Some(input.into());
197        self
198    }
199    /// <p>An API key selection expression. Supported only for WebSocket APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions">API Key Selection Expressions</a>.</p>
200    pub fn set_api_key_selection_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
201        self.api_key_selection_expression = input;
202        self
203    }
204    /// <p>An API key selection expression. Supported only for WebSocket APIs. See <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions">API Key Selection Expressions</a>.</p>
205    pub fn get_api_key_selection_expression(&self) -> &::std::option::Option<::std::string::String> {
206        &self.api_key_selection_expression
207    }
208    /// <p>A CORS configuration. Supported only for HTTP APIs.</p>
209    pub fn cors_configuration(mut self, input: crate::types::Cors) -> Self {
210        self.cors_configuration = ::std::option::Option::Some(input);
211        self
212    }
213    /// <p>A CORS configuration. Supported only for HTTP APIs.</p>
214    pub fn set_cors_configuration(mut self, input: ::std::option::Option<crate::types::Cors>) -> Self {
215        self.cors_configuration = input;
216        self
217    }
218    /// <p>A CORS configuration. Supported only for HTTP APIs.</p>
219    pub fn get_cors_configuration(&self) -> &::std::option::Option<crate::types::Cors> {
220        &self.cors_configuration
221    }
222    /// <p>The timestamp when the API was created.</p>
223    pub fn created_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
224        self.created_date = ::std::option::Option::Some(input);
225        self
226    }
227    /// <p>The timestamp when the API was created.</p>
228    pub fn set_created_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
229        self.created_date = input;
230        self
231    }
232    /// <p>The timestamp when the API was created.</p>
233    pub fn get_created_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
234        &self.created_date
235    }
236    /// <p>The description of the API.</p>
237    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
238        self.description = ::std::option::Option::Some(input.into());
239        self
240    }
241    /// <p>The description of the API.</p>
242    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
243        self.description = input;
244        self
245    }
246    /// <p>The description of the API.</p>
247    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
248        &self.description
249    }
250    /// <p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>
251    pub fn disable_schema_validation(mut self, input: bool) -> Self {
252        self.disable_schema_validation = ::std::option::Option::Some(input);
253        self
254    }
255    /// <p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>
256    pub fn set_disable_schema_validation(mut self, input: ::std::option::Option<bool>) -> Self {
257        self.disable_schema_validation = input;
258        self
259    }
260    /// <p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>
261    pub fn get_disable_schema_validation(&self) -> &::std::option::Option<bool> {
262        &self.disable_schema_validation
263    }
264    /// <p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>
265    pub fn disable_execute_api_endpoint(mut self, input: bool) -> Self {
266        self.disable_execute_api_endpoint = ::std::option::Option::Some(input);
267        self
268    }
269    /// <p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>
270    pub fn set_disable_execute_api_endpoint(mut self, input: ::std::option::Option<bool>) -> Self {
271        self.disable_execute_api_endpoint = input;
272        self
273    }
274    /// <p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>
275    pub fn get_disable_execute_api_endpoint(&self) -> &::std::option::Option<bool> {
276        &self.disable_execute_api_endpoint
277    }
278    /// Appends an item to `import_info`.
279    ///
280    /// To override the contents of this collection use [`set_import_info`](Self::set_import_info).
281    ///
282    /// <p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>
283    pub fn import_info(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
284        let mut v = self.import_info.unwrap_or_default();
285        v.push(input.into());
286        self.import_info = ::std::option::Option::Some(v);
287        self
288    }
289    /// <p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>
290    pub fn set_import_info(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
291        self.import_info = input;
292        self
293    }
294    /// <p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>
295    pub fn get_import_info(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
296        &self.import_info
297    }
298    /// <p>The IP address types that can invoke the API.</p>
299    pub fn ip_address_type(mut self, input: crate::types::IpAddressType) -> Self {
300        self.ip_address_type = ::std::option::Option::Some(input);
301        self
302    }
303    /// <p>The IP address types that can invoke the API.</p>
304    pub fn set_ip_address_type(mut self, input: ::std::option::Option<crate::types::IpAddressType>) -> Self {
305        self.ip_address_type = input;
306        self
307    }
308    /// <p>The IP address types that can invoke the API.</p>
309    pub fn get_ip_address_type(&self) -> &::std::option::Option<crate::types::IpAddressType> {
310        &self.ip_address_type
311    }
312    /// <p>The name of the API.</p>
313    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
314        self.name = ::std::option::Option::Some(input.into());
315        self
316    }
317    /// <p>The name of the API.</p>
318    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
319        self.name = input;
320        self
321    }
322    /// <p>The name of the API.</p>
323    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
324        &self.name
325    }
326    /// <p>The API protocol.</p>
327    pub fn protocol_type(mut self, input: crate::types::ProtocolType) -> Self {
328        self.protocol_type = ::std::option::Option::Some(input);
329        self
330    }
331    /// <p>The API protocol.</p>
332    pub fn set_protocol_type(mut self, input: ::std::option::Option<crate::types::ProtocolType>) -> Self {
333        self.protocol_type = input;
334        self
335    }
336    /// <p>The API protocol.</p>
337    pub fn get_protocol_type(&self) -> &::std::option::Option<crate::types::ProtocolType> {
338        &self.protocol_type
339    }
340    /// <p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p>
341    pub fn route_selection_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
342        self.route_selection_expression = ::std::option::Option::Some(input.into());
343        self
344    }
345    /// <p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p>
346    pub fn set_route_selection_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
347        self.route_selection_expression = input;
348        self
349    }
350    /// <p>The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.</p>
351    pub fn get_route_selection_expression(&self) -> &::std::option::Option<::std::string::String> {
352        &self.route_selection_expression
353    }
354    /// Adds a key-value pair to `tags`.
355    ///
356    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
357    ///
358    /// <p>A collection of tags associated with the API.</p>
359    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
360        let mut hash_map = self.tags.unwrap_or_default();
361        hash_map.insert(k.into(), v.into());
362        self.tags = ::std::option::Option::Some(hash_map);
363        self
364    }
365    /// <p>A collection of tags associated with the API.</p>
366    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
367        self.tags = input;
368        self
369    }
370    /// <p>A collection of tags associated with the API.</p>
371    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
372        &self.tags
373    }
374    /// <p>A version identifier for the API.</p>
375    pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
376        self.version = ::std::option::Option::Some(input.into());
377        self
378    }
379    /// <p>A version identifier for the API.</p>
380    pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
381        self.version = input;
382        self
383    }
384    /// <p>A version identifier for the API.</p>
385    pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
386        &self.version
387    }
388    /// Appends an item to `warnings`.
389    ///
390    /// To override the contents of this collection use [`set_warnings`](Self::set_warnings).
391    ///
392    /// <p>The warning messages reported when failonwarnings is turned on during API import.</p>
393    pub fn warnings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
394        let mut v = self.warnings.unwrap_or_default();
395        v.push(input.into());
396        self.warnings = ::std::option::Option::Some(v);
397        self
398    }
399    /// <p>The warning messages reported when failonwarnings is turned on during API import.</p>
400    pub fn set_warnings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
401        self.warnings = input;
402        self
403    }
404    /// <p>The warning messages reported when failonwarnings is turned on during API import.</p>
405    pub fn get_warnings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
406        &self.warnings
407    }
408    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
409        self._request_id = Some(request_id.into());
410        self
411    }
412
413    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
414        self._request_id = request_id;
415        self
416    }
417    /// Consumes the builder and constructs a [`GetApiOutput`](crate::operation::get_api::GetApiOutput).
418    pub fn build(self) -> crate::operation::get_api::GetApiOutput {
419        crate::operation::get_api::GetApiOutput {
420            api_endpoint: self.api_endpoint,
421            api_gateway_managed: self.api_gateway_managed,
422            api_id: self.api_id,
423            api_key_selection_expression: self.api_key_selection_expression,
424            cors_configuration: self.cors_configuration,
425            created_date: self.created_date,
426            description: self.description,
427            disable_schema_validation: self.disable_schema_validation,
428            disable_execute_api_endpoint: self.disable_execute_api_endpoint,
429            import_info: self.import_info,
430            ip_address_type: self.ip_address_type,
431            name: self.name,
432            protocol_type: self.protocol_type,
433            route_selection_expression: self.route_selection_expression,
434            tags: self.tags,
435            version: self.version,
436            warnings: self.warnings,
437            _request_id: self._request_id,
438        }
439    }
440}