aws_sdk_apigateway/operation/put_integration/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::put_integration::_put_integration_output::PutIntegrationOutputBuilder;
3
4pub use crate::operation::put_integration::_put_integration_input::PutIntegrationInputBuilder;
5
6impl crate::operation::put_integration::builders::PutIntegrationInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::put_integration::PutIntegrationOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::put_integration::PutIntegrationError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.put_integration();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `PutIntegration`.
24///
25/// <p>Sets up a method's integration.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct PutIntegrationFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::put_integration::builders::PutIntegrationInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::put_integration::PutIntegrationOutput,
35        crate::operation::put_integration::PutIntegrationError,
36    > for PutIntegrationFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::put_integration::PutIntegrationOutput,
44            crate::operation::put_integration::PutIntegrationError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl PutIntegrationFluentBuilder {
51    /// Creates a new `PutIntegrationFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the PutIntegration as a reference.
60    pub fn as_input(&self) -> &crate::operation::put_integration::builders::PutIntegrationInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::put_integration::PutIntegrationOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::put_integration::PutIntegrationError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::put_integration::PutIntegration::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::put_integration::PutIntegration::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::put_integration::PutIntegrationOutput,
97        crate::operation::put_integration::PutIntegrationError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The string identifier of the associated RestApi.</p>
112    pub fn rest_api_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.rest_api_id(input.into());
114        self
115    }
116    /// <p>The string identifier of the associated RestApi.</p>
117    pub fn set_rest_api_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_rest_api_id(input);
119        self
120    }
121    /// <p>The string identifier of the associated RestApi.</p>
122    pub fn get_rest_api_id(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_rest_api_id()
124    }
125    /// <p>Specifies a put integration request's resource ID.</p>
126    pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127        self.inner = self.inner.resource_id(input.into());
128        self
129    }
130    /// <p>Specifies a put integration request's resource ID.</p>
131    pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132        self.inner = self.inner.set_resource_id(input);
133        self
134    }
135    /// <p>Specifies a put integration request's resource ID.</p>
136    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
137        self.inner.get_resource_id()
138    }
139    /// <p>Specifies the HTTP method for the integration.</p>
140    pub fn http_method(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141        self.inner = self.inner.http_method(input.into());
142        self
143    }
144    /// <p>Specifies the HTTP method for the integration.</p>
145    pub fn set_http_method(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146        self.inner = self.inner.set_http_method(input);
147        self
148    }
149    /// <p>Specifies the HTTP method for the integration.</p>
150    pub fn get_http_method(&self) -> &::std::option::Option<::std::string::String> {
151        self.inner.get_http_method()
152    }
153    /// <p>Specifies a put integration input's type.</p>
154    pub fn r#type(mut self, input: crate::types::IntegrationType) -> Self {
155        self.inner = self.inner.r#type(input);
156        self
157    }
158    /// <p>Specifies a put integration input's type.</p>
159    pub fn set_type(mut self, input: ::std::option::Option<crate::types::IntegrationType>) -> Self {
160        self.inner = self.inner.set_type(input);
161        self
162    }
163    /// <p>Specifies a put integration input's type.</p>
164    pub fn get_type(&self) -> &::std::option::Option<crate::types::IntegrationType> {
165        self.inner.get_type()
166    }
167    /// <p>The HTTP method for the integration.</p>
168    pub fn integration_http_method(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
169        self.inner = self.inner.integration_http_method(input.into());
170        self
171    }
172    /// <p>The HTTP method for the integration.</p>
173    pub fn set_integration_http_method(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
174        self.inner = self.inner.set_integration_http_method(input);
175        self
176    }
177    /// <p>The HTTP method for the integration.</p>
178    pub fn get_integration_http_method(&self) -> &::std::option::Option<::std::string::String> {
179        self.inner.get_integration_http_method()
180    }
181    /// <p>Specifies Uniform Resource Identifier (URI) of the integration endpoint. For HTTP or <code>HTTP_PROXY</code> integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where <code>connectionType</code> is not <code>VPC_LINK</code>, or private integration, where <code>connectionType</code> is <code>VPC_LINK</code>. For a private HTTP integration, the URI is not used for routing. For <code>AWS</code> or <code>AWS_PROXY</code> integrations, the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api</code>}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast host-name lookup. action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an Amazon Web Services service path-based API. The ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of <code>GetObject</code>, the <code>uri</code> can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code>.</p>
182    pub fn uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
183        self.inner = self.inner.uri(input.into());
184        self
185    }
186    /// <p>Specifies Uniform Resource Identifier (URI) of the integration endpoint. For HTTP or <code>HTTP_PROXY</code> integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where <code>connectionType</code> is not <code>VPC_LINK</code>, or private integration, where <code>connectionType</code> is <code>VPC_LINK</code>. For a private HTTP integration, the URI is not used for routing. For <code>AWS</code> or <code>AWS_PROXY</code> integrations, the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api</code>}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast host-name lookup. action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an Amazon Web Services service path-based API. The ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of <code>GetObject</code>, the <code>uri</code> can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code>.</p>
187    pub fn set_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
188        self.inner = self.inner.set_uri(input);
189        self
190    }
191    /// <p>Specifies Uniform Resource Identifier (URI) of the integration endpoint. For HTTP or <code>HTTP_PROXY</code> integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where <code>connectionType</code> is not <code>VPC_LINK</code>, or private integration, where <code>connectionType</code> is <code>VPC_LINK</code>. For a private HTTP integration, the URI is not used for routing. For <code>AWS</code> or <code>AWS_PROXY</code> integrations, the URI is of the form <code>arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api</code>}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast host-name lookup. action can be used for an Amazon Web Services service action-based API, using an Action={name}&amp;{p1}={v1}&amp;p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an Amazon Web Services service path-based API. The ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of <code>GetObject</code>, the <code>uri</code> can be either <code>arn:aws:apigateway:us-west-2:s3:action/GetObject&amp;Bucket={bucket}&amp;Key={key}</code> or <code>arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}</code>.</p>
192    pub fn get_uri(&self) -> &::std::option::Option<::std::string::String> {
193        self.inner.get_uri()
194    }
195    /// <p>The type of the network connection to the integration endpoint. The valid value is <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> for private connections between API Gateway and a network load balancer in a VPC. The default value is <code>INTERNET</code>.</p>
196    pub fn connection_type(mut self, input: crate::types::ConnectionType) -> Self {
197        self.inner = self.inner.connection_type(input);
198        self
199    }
200    /// <p>The type of the network connection to the integration endpoint. The valid value is <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> for private connections between API Gateway and a network load balancer in a VPC. The default value is <code>INTERNET</code>.</p>
201    pub fn set_connection_type(mut self, input: ::std::option::Option<crate::types::ConnectionType>) -> Self {
202        self.inner = self.inner.set_connection_type(input);
203        self
204    }
205    /// <p>The type of the network connection to the integration endpoint. The valid value is <code>INTERNET</code> for connections through the public routable internet or <code>VPC_LINK</code> for private connections between API Gateway and a network load balancer in a VPC. The default value is <code>INTERNET</code>.</p>
206    pub fn get_connection_type(&self) -> &::std::option::Option<crate::types::ConnectionType> {
207        self.inner.get_connection_type()
208    }
209    /// <p>The ID of the VpcLink used for the integration. Specify this value only if you specify <code>VPC_LINK</code> as the connection type.</p>
210    pub fn connection_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
211        self.inner = self.inner.connection_id(input.into());
212        self
213    }
214    /// <p>The ID of the VpcLink used for the integration. Specify this value only if you specify <code>VPC_LINK</code> as the connection type.</p>
215    pub fn set_connection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
216        self.inner = self.inner.set_connection_id(input);
217        self
218    }
219    /// <p>The ID of the VpcLink used for the integration. Specify this value only if you specify <code>VPC_LINK</code> as the connection type.</p>
220    pub fn get_connection_id(&self) -> &::std::option::Option<::std::string::String> {
221        self.inner.get_connection_id()
222    }
223    /// <p>Specifies whether credentials are required for a put integration.</p>
224    pub fn credentials(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
225        self.inner = self.inner.credentials(input.into());
226        self
227    }
228    /// <p>Specifies whether credentials are required for a put integration.</p>
229    pub fn set_credentials(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
230        self.inner = self.inner.set_credentials(input);
231        self
232    }
233    /// <p>Specifies whether credentials are required for a put integration.</p>
234    pub fn get_credentials(&self) -> &::std::option::Option<::std::string::String> {
235        self.inner.get_credentials()
236    }
237    ///
238    /// Adds a key-value pair to `requestParameters`.
239    ///
240    /// To override the contents of this collection use [`set_request_parameters`](Self::set_request_parameters).
241    ///
242    /// <p>A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> and <code>name</code> must be a valid and unique method request parameter name.</p>
243    pub fn request_parameters(
244        mut self,
245        k: impl ::std::convert::Into<::std::string::String>,
246        v: impl ::std::convert::Into<::std::string::String>,
247    ) -> Self {
248        self.inner = self.inner.request_parameters(k.into(), v.into());
249        self
250    }
251    /// <p>A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> and <code>name</code> must be a valid and unique method request parameter name.</p>
252    pub fn set_request_parameters(
253        mut self,
254        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
255    ) -> Self {
256        self.inner = self.inner.set_request_parameters(input);
257        self
258    }
259    /// <p>A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> and <code>name</code> must be a valid and unique method request parameter name.</p>
260    pub fn get_request_parameters(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
261        self.inner.get_request_parameters()
262    }
263    ///
264    /// Adds a key-value pair to `requestTemplates`.
265    ///
266    /// To override the contents of this collection use [`set_request_templates`](Self::set_request_templates).
267    ///
268    /// <p>Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.</p>
269    pub fn request_templates(
270        mut self,
271        k: impl ::std::convert::Into<::std::string::String>,
272        v: impl ::std::convert::Into<::std::string::String>,
273    ) -> Self {
274        self.inner = self.inner.request_templates(k.into(), v.into());
275        self
276    }
277    /// <p>Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.</p>
278    pub fn set_request_templates(
279        mut self,
280        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
281    ) -> Self {
282        self.inner = self.inner.set_request_templates(input);
283        self
284    }
285    /// <p>Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.</p>
286    pub fn get_request_templates(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
287        self.inner.get_request_templates()
288    }
289    /// <p>Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the <code>requestTemplates</code> property on the Integration resource. There are three valid values: <code>WHEN_NO_MATCH</code>, <code>WHEN_NO_TEMPLATES</code>, and <code>NEVER</code>.</p>
290    pub fn passthrough_behavior(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
291        self.inner = self.inner.passthrough_behavior(input.into());
292        self
293    }
294    /// <p>Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the <code>requestTemplates</code> property on the Integration resource. There are three valid values: <code>WHEN_NO_MATCH</code>, <code>WHEN_NO_TEMPLATES</code>, and <code>NEVER</code>.</p>
295    pub fn set_passthrough_behavior(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
296        self.inner = self.inner.set_passthrough_behavior(input);
297        self
298    }
299    /// <p>Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the <code>requestTemplates</code> property on the Integration resource. There are three valid values: <code>WHEN_NO_MATCH</code>, <code>WHEN_NO_TEMPLATES</code>, and <code>NEVER</code>.</p>
300    pub fn get_passthrough_behavior(&self) -> &::std::option::Option<::std::string::String> {
301        self.inner.get_passthrough_behavior()
302    }
303    /// <p>Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> across resources to return the same cached data for requests to different resources.</p>
304    pub fn cache_namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
305        self.inner = self.inner.cache_namespace(input.into());
306        self
307    }
308    /// <p>Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> across resources to return the same cached data for requests to different resources.</p>
309    pub fn set_cache_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
310        self.inner = self.inner.set_cache_namespace(input);
311        self
312    }
313    /// <p>Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the <code>cacheNamespace</code>. You can specify the same <code>cacheNamespace</code> across resources to return the same cached data for requests to different resources.</p>
314    pub fn get_cache_namespace(&self) -> &::std::option::Option<::std::string::String> {
315        self.inner.get_cache_namespace()
316    }
317    ///
318    /// Appends an item to `cacheKeyParameters`.
319    ///
320    /// To override the contents of this collection use [`set_cache_key_parameters`](Self::set_cache_key_parameters).
321    ///
322    /// <p>A list of request parameters whose values API Gateway caches. To be valid values for <code>cacheKeyParameters</code>, these parameters must also be specified for Method <code>requestParameters</code>.</p>
323    pub fn cache_key_parameters(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
324        self.inner = self.inner.cache_key_parameters(input.into());
325        self
326    }
327    /// <p>A list of request parameters whose values API Gateway caches. To be valid values for <code>cacheKeyParameters</code>, these parameters must also be specified for Method <code>requestParameters</code>.</p>
328    pub fn set_cache_key_parameters(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
329        self.inner = self.inner.set_cache_key_parameters(input);
330        self
331    }
332    /// <p>A list of request parameters whose values API Gateway caches. To be valid values for <code>cacheKeyParameters</code>, these parameters must also be specified for Method <code>requestParameters</code>.</p>
333    pub fn get_cache_key_parameters(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
334        self.inner.get_cache_key_parameters()
335    }
336    /// <p>Specifies how to handle request payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p>
337    /// <p>If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the <code>passthroughBehavior</code> is configured to support payload pass-through.</p>
338    pub fn content_handling(mut self, input: crate::types::ContentHandlingStrategy) -> Self {
339        self.inner = self.inner.content_handling(input);
340        self
341    }
342    /// <p>Specifies how to handle request payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p>
343    /// <p>If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the <code>passthroughBehavior</code> is configured to support payload pass-through.</p>
344    pub fn set_content_handling(mut self, input: ::std::option::Option<crate::types::ContentHandlingStrategy>) -> Self {
345        self.inner = self.inner.set_content_handling(input);
346        self
347    }
348    /// <p>Specifies how to handle request payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p>
349    /// <p>If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the <code>passthroughBehavior</code> is configured to support payload pass-through.</p>
350    pub fn get_content_handling(&self) -> &::std::option::Option<crate::types::ContentHandlingStrategy> {
351        self.inner.get_content_handling()
352    }
353    /// <p>Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. You can increase the default value to longer than 29 seconds for Regional or private APIs only.</p>
354    pub fn timeout_in_millis(mut self, input: i32) -> Self {
355        self.inner = self.inner.timeout_in_millis(input);
356        self
357    }
358    /// <p>Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. You can increase the default value to longer than 29 seconds for Regional or private APIs only.</p>
359    pub fn set_timeout_in_millis(mut self, input: ::std::option::Option<i32>) -> Self {
360        self.inner = self.inner.set_timeout_in_millis(input);
361        self
362    }
363    /// <p>Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. You can increase the default value to longer than 29 seconds for Regional or private APIs only.</p>
364    pub fn get_timeout_in_millis(&self) -> &::std::option::Option<i32> {
365        self.inner.get_timeout_in_millis()
366    }
367    /// <p>Specifies the TLS configuration for an integration.</p>
368    pub fn tls_config(mut self, input: crate::types::TlsConfig) -> Self {
369        self.inner = self.inner.tls_config(input);
370        self
371    }
372    /// <p>Specifies the TLS configuration for an integration.</p>
373    pub fn set_tls_config(mut self, input: ::std::option::Option<crate::types::TlsConfig>) -> Self {
374        self.inner = self.inner.set_tls_config(input);
375        self
376    }
377    /// <p>Specifies the TLS configuration for an integration.</p>
378    pub fn get_tls_config(&self) -> &::std::option::Option<crate::types::TlsConfig> {
379        self.inner.get_tls_config()
380    }
381}