aws_sdk_ec2/operation/describe_prefix_lists/
builders.rs1pub use crate::operation::describe_prefix_lists::_describe_prefix_lists_output::DescribePrefixListsOutputBuilder;
3
4pub use crate::operation::describe_prefix_lists::_describe_prefix_lists_input::DescribePrefixListsInputBuilder;
5
6impl crate::operation::describe_prefix_lists::builders::DescribePrefixListsInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::describe_prefix_lists::DescribePrefixListsOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::describe_prefix_lists::DescribePrefixListsError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.describe_prefix_lists();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct DescribePrefixListsFluentBuilder {
29 handle: ::std::sync::Arc<crate::client::Handle>,
30 inner: crate::operation::describe_prefix_lists::builders::DescribePrefixListsInputBuilder,
31 config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34 crate::client::customize::internal::CustomizableSend<
35 crate::operation::describe_prefix_lists::DescribePrefixListsOutput,
36 crate::operation::describe_prefix_lists::DescribePrefixListsError,
37 > for DescribePrefixListsFluentBuilder
38{
39 fn send(
40 self,
41 config_override: crate::config::Builder,
42 ) -> crate::client::customize::internal::BoxFuture<
43 crate::client::customize::internal::SendResult<
44 crate::operation::describe_prefix_lists::DescribePrefixListsOutput,
45 crate::operation::describe_prefix_lists::DescribePrefixListsError,
46 >,
47 > {
48 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49 }
50}
51impl DescribePrefixListsFluentBuilder {
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54 Self {
55 handle,
56 inner: ::std::default::Default::default(),
57 config_override: ::std::option::Option::None,
58 }
59 }
60 pub fn as_input(&self) -> &crate::operation::describe_prefix_lists::builders::DescribePrefixListsInputBuilder {
62 &self.inner
63 }
64 pub async fn send(
73 self,
74 ) -> ::std::result::Result<
75 crate::operation::describe_prefix_lists::DescribePrefixListsOutput,
76 ::aws_smithy_runtime_api::client::result::SdkError<
77 crate::operation::describe_prefix_lists::DescribePrefixListsError,
78 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
79 >,
80 > {
81 let input = self
82 .inner
83 .build()
84 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
85 let runtime_plugins = crate::operation::describe_prefix_lists::DescribePrefixLists::operation_runtime_plugins(
86 self.handle.runtime_plugins.clone(),
87 &self.handle.conf,
88 self.config_override,
89 );
90 crate::operation::describe_prefix_lists::DescribePrefixLists::orchestrate(&runtime_plugins, input).await
91 }
92
93 pub fn customize(
95 self,
96 ) -> crate::client::customize::CustomizableOperation<
97 crate::operation::describe_prefix_lists::DescribePrefixListsOutput,
98 crate::operation::describe_prefix_lists::DescribePrefixListsError,
99 Self,
100 > {
101 crate::client::customize::CustomizableOperation::new(self)
102 }
103 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
104 self.set_config_override(::std::option::Option::Some(config_override.into()));
105 self
106 }
107
108 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
109 self.config_override = config_override;
110 self
111 }
112 pub fn into_paginator(self) -> crate::operation::describe_prefix_lists::paginator::DescribePrefixListsPaginator {
116 crate::operation::describe_prefix_lists::paginator::DescribePrefixListsPaginator::new(self.handle, self.inner)
117 }
118 pub fn dry_run(mut self, input: bool) -> Self {
120 self.inner = self.inner.dry_run(input);
121 self
122 }
123 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
125 self.inner = self.inner.set_dry_run(input);
126 self
127 }
128 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
130 self.inner.get_dry_run()
131 }
132 pub fn filters(mut self, input: crate::types::Filter) -> Self {
145 self.inner = self.inner.filters(input);
146 self
147 }
148 pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Filter>>) -> Self {
156 self.inner = self.inner.set_filters(input);
157 self
158 }
159 pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Filter>> {
167 self.inner.get_filters()
168 }
169 pub fn max_results(mut self, input: i32) -> Self {
171 self.inner = self.inner.max_results(input);
172 self
173 }
174 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
176 self.inner = self.inner.set_max_results(input);
177 self
178 }
179 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
181 self.inner.get_max_results()
182 }
183 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
185 self.inner = self.inner.next_token(input.into());
186 self
187 }
188 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
190 self.inner = self.inner.set_next_token(input);
191 self
192 }
193 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
195 self.inner.get_next_token()
196 }
197 pub fn prefix_list_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
204 self.inner = self.inner.prefix_list_ids(input.into());
205 self
206 }
207 pub fn set_prefix_list_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
209 self.inner = self.inner.set_prefix_list_ids(input);
210 self
211 }
212 pub fn get_prefix_list_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
214 self.inner.get_prefix_list_ids()
215 }
216}