aws_sdk_apigateway/operation/test_invoke_method/
builders.rs1pub use crate::operation::test_invoke_method::_test_invoke_method_output::TestInvokeMethodOutputBuilder;
3
4pub use crate::operation::test_invoke_method::_test_invoke_method_input::TestInvokeMethodInputBuilder;
5
6impl crate::operation::test_invoke_method::builders::TestInvokeMethodInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::test_invoke_method::TestInvokeMethodOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::test_invoke_method::TestInvokeMethodError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.test_invoke_method();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct TestInvokeMethodFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::test_invoke_method::builders::TestInvokeMethodInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::test_invoke_method::TestInvokeMethodOutput,
35 crate::operation::test_invoke_method::TestInvokeMethodError,
36 > for TestInvokeMethodFluentBuilder
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::test_invoke_method::TestInvokeMethodOutput,
44 crate::operation::test_invoke_method::TestInvokeMethodError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl TestInvokeMethodFluentBuilder {
51 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 pub fn as_input(&self) -> &crate::operation::test_invoke_method::builders::TestInvokeMethodInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::test_invoke_method::TestInvokeMethodOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::test_invoke_method::TestInvokeMethodError,
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::test_invoke_method::TestInvokeMethod::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::test_invoke_method::TestInvokeMethod::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::test_invoke_method::TestInvokeMethodOutput,
97 crate::operation::test_invoke_method::TestInvokeMethodError,
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 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 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 pub fn get_rest_api_id(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_rest_api_id()
124 }
125 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 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 pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
137 self.inner.get_resource_id()
138 }
139 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 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 pub fn get_http_method(&self) -> &::std::option::Option<::std::string::String> {
151 self.inner.get_http_method()
152 }
153 pub fn path_with_query_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
155 self.inner = self.inner.path_with_query_string(input.into());
156 self
157 }
158 pub fn set_path_with_query_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
160 self.inner = self.inner.set_path_with_query_string(input);
161 self
162 }
163 pub fn get_path_with_query_string(&self) -> &::std::option::Option<::std::string::String> {
165 self.inner.get_path_with_query_string()
166 }
167 pub fn body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
169 self.inner = self.inner.body(input.into());
170 self
171 }
172 pub fn set_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
174 self.inner = self.inner.set_body(input);
175 self
176 }
177 pub fn get_body(&self) -> &::std::option::Option<::std::string::String> {
179 self.inner.get_body()
180 }
181 pub fn headers(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
188 self.inner = self.inner.headers(k.into(), v.into());
189 self
190 }
191 pub fn set_headers(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
193 self.inner = self.inner.set_headers(input);
194 self
195 }
196 pub fn get_headers(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
198 self.inner.get_headers()
199 }
200 pub fn multi_value_headers(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
207 self.inner = self.inner.multi_value_headers(k.into(), v);
208 self
209 }
210 pub fn set_multi_value_headers(
212 mut self,
213 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
214 ) -> Self {
215 self.inner = self.inner.set_multi_value_headers(input);
216 self
217 }
218 pub fn get_multi_value_headers(
220 &self,
221 ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
222 self.inner.get_multi_value_headers()
223 }
224 pub fn client_certificate_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
226 self.inner = self.inner.client_certificate_id(input.into());
227 self
228 }
229 pub fn set_client_certificate_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
231 self.inner = self.inner.set_client_certificate_id(input);
232 self
233 }
234 pub fn get_client_certificate_id(&self) -> &::std::option::Option<::std::string::String> {
236 self.inner.get_client_certificate_id()
237 }
238 pub fn stage_variables(
245 mut self,
246 k: impl ::std::convert::Into<::std::string::String>,
247 v: impl ::std::convert::Into<::std::string::String>,
248 ) -> Self {
249 self.inner = self.inner.stage_variables(k.into(), v.into());
250 self
251 }
252 pub fn set_stage_variables(
254 mut self,
255 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
256 ) -> Self {
257 self.inner = self.inner.set_stage_variables(input);
258 self
259 }
260 pub fn get_stage_variables(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
262 self.inner.get_stage_variables()
263 }
264}