aws_sdk_ec2/operation/describe_ipam_external_resource_verification_tokens/
builders.rs1pub use crate::operation::describe_ipam_external_resource_verification_tokens::_describe_ipam_external_resource_verification_tokens_output::DescribeIpamExternalResourceVerificationTokensOutputBuilder;
3
4pub use crate::operation::describe_ipam_external_resource_verification_tokens::_describe_ipam_external_resource_verification_tokens_input::DescribeIpamExternalResourceVerificationTokensInputBuilder;
5
6impl crate::operation::describe_ipam_external_resource_verification_tokens::builders::DescribeIpamExternalResourceVerificationTokensInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.describe_ipam_external_resource_verification_tokens();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct DescribeIpamExternalResourceVerificationTokensFluentBuilder {
29 handle: ::std::sync::Arc<crate::client::Handle>,
30 inner:
31 crate::operation::describe_ipam_external_resource_verification_tokens::builders::DescribeIpamExternalResourceVerificationTokensInputBuilder,
32 config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl
35 crate::client::customize::internal::CustomizableSend<
36 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensOutput,
37 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
38 > for DescribeIpamExternalResourceVerificationTokensFluentBuilder
39{
40 fn send(
41 self,
42 config_override: crate::config::Builder,
43 ) -> crate::client::customize::internal::BoxFuture<
44 crate::client::customize::internal::SendResult<
45 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensOutput,
46 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
47 >,
48 > {
49 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
50 }
51}
52impl DescribeIpamExternalResourceVerificationTokensFluentBuilder {
53 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
55 Self {
56 handle,
57 inner: ::std::default::Default::default(),
58 config_override: ::std::option::Option::None,
59 }
60 }
61 pub fn as_input(
63 &self,
64 ) -> &crate::operation::describe_ipam_external_resource_verification_tokens::builders::DescribeIpamExternalResourceVerificationTokensInputBuilder
65 {
66 &self.inner
67 }
68 pub async fn send(
77 self,
78 ) -> ::std::result::Result<
79 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensOutput,
80 ::aws_smithy_runtime_api::client::result::SdkError<
81 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
82 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
83 >,
84 > {
85 let input = self
86 .inner
87 .build()
88 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
89 let runtime_plugins = crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokens::operation_runtime_plugins(
90 self.handle.runtime_plugins.clone(),
91 &self.handle.conf,
92 self.config_override,
93 );
94 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokens::orchestrate(
95 &runtime_plugins,
96 input,
97 )
98 .await
99 }
100
101 pub fn customize(
103 self,
104 ) -> crate::client::customize::CustomizableOperation<
105 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensOutput,
106 crate::operation::describe_ipam_external_resource_verification_tokens::DescribeIpamExternalResourceVerificationTokensError,
107 Self,
108 > {
109 crate::client::customize::CustomizableOperation::new(self)
110 }
111 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
112 self.set_config_override(::std::option::Option::Some(config_override.into()));
113 self
114 }
115
116 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
117 self.config_override = config_override;
118 self
119 }
120 pub fn dry_run(mut self, input: bool) -> Self {
122 self.inner = self.inner.dry_run(input);
123 self
124 }
125 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
127 self.inner = self.inner.set_dry_run(input);
128 self
129 }
130 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
132 self.inner.get_dry_run()
133 }
134 pub fn filters(mut self, input: crate::types::Filter) -> Self {
162 self.inner = self.inner.filters(input);
163 self
164 }
165 pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
188 self.inner = self.inner.set_filters(input);
189 self
190 }
191 pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
214 self.inner.get_filters()
215 }
216 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
218 self.inner = self.inner.next_token(input.into());
219 self
220 }
221 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
223 self.inner = self.inner.set_next_token(input);
224 self
225 }
226 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
228 self.inner.get_next_token()
229 }
230 pub fn max_results(mut self, input: i32) -> Self {
232 self.inner = self.inner.max_results(input);
233 self
234 }
235 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
237 self.inner = self.inner.set_max_results(input);
238 self
239 }
240 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
242 self.inner.get_max_results()
243 }
244 pub fn ipam_external_resource_verification_token_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
251 self.inner = self.inner.ipam_external_resource_verification_token_ids(input.into());
252 self
253 }
254 pub fn set_ipam_external_resource_verification_token_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
256 self.inner = self.inner.set_ipam_external_resource_verification_token_ids(input);
257 self
258 }
259 pub fn get_ipam_external_resource_verification_token_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
261 self.inner.get_ipam_external_resource_verification_token_ids()
262 }
263}