aws_sdk_glue/operation/get_tables/
builders.rs1pub use crate::operation::get_tables::_get_tables_output::GetTablesOutputBuilder;
3
4pub use crate::operation::get_tables::_get_tables_input::GetTablesInputBuilder;
5
6impl crate::operation::get_tables::builders::GetTablesInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::get_tables::GetTablesOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_tables::GetTablesError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_tables();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct GetTablesFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::get_tables::builders::GetTablesInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl crate::client::customize::internal::CustomizableSend<crate::operation::get_tables::GetTablesOutput, crate::operation::get_tables::GetTablesError>
33 for GetTablesFluentBuilder
34{
35 fn send(
36 self,
37 config_override: crate::config::Builder,
38 ) -> crate::client::customize::internal::BoxFuture<
39 crate::client::customize::internal::SendResult<crate::operation::get_tables::GetTablesOutput, crate::operation::get_tables::GetTablesError>,
40 > {
41 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
42 }
43}
44impl GetTablesFluentBuilder {
45 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
47 Self {
48 handle,
49 inner: ::std::default::Default::default(),
50 config_override: ::std::option::Option::None,
51 }
52 }
53 pub fn as_input(&self) -> &crate::operation::get_tables::builders::GetTablesInputBuilder {
55 &self.inner
56 }
57 pub async fn send(
66 self,
67 ) -> ::std::result::Result<
68 crate::operation::get_tables::GetTablesOutput,
69 ::aws_smithy_runtime_api::client::result::SdkError<
70 crate::operation::get_tables::GetTablesError,
71 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
72 >,
73 > {
74 let input = self
75 .inner
76 .build()
77 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
78 let runtime_plugins = crate::operation::get_tables::GetTables::operation_runtime_plugins(
79 self.handle.runtime_plugins.clone(),
80 &self.handle.conf,
81 self.config_override,
82 );
83 crate::operation::get_tables::GetTables::orchestrate(&runtime_plugins, input).await
84 }
85
86 pub fn customize(
88 self,
89 ) -> crate::client::customize::CustomizableOperation<
90 crate::operation::get_tables::GetTablesOutput,
91 crate::operation::get_tables::GetTablesError,
92 Self,
93 > {
94 crate::client::customize::CustomizableOperation::new(self)
95 }
96 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
97 self.set_config_override(::std::option::Option::Some(config_override.into()));
98 self
99 }
100
101 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
102 self.config_override = config_override;
103 self
104 }
105 pub fn into_paginator(self) -> crate::operation::get_tables::paginator::GetTablesPaginator {
109 crate::operation::get_tables::paginator::GetTablesPaginator::new(self.handle, self.inner)
110 }
111 pub fn catalog_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.inner = self.inner.catalog_id(input.into());
114 self
115 }
116 pub fn set_catalog_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.inner = self.inner.set_catalog_id(input);
119 self
120 }
121 pub fn get_catalog_id(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_catalog_id()
124 }
125 pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127 self.inner = self.inner.database_name(input.into());
128 self
129 }
130 pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132 self.inner = self.inner.set_database_name(input);
133 self
134 }
135 pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
137 self.inner.get_database_name()
138 }
139 pub fn expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141 self.inner = self.inner.expression(input.into());
142 self
143 }
144 pub fn set_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146 self.inner = self.inner.set_expression(input);
147 self
148 }
149 pub fn get_expression(&self) -> &::std::option::Option<::std::string::String> {
151 self.inner.get_expression()
152 }
153 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
155 self.inner = self.inner.next_token(input.into());
156 self
157 }
158 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
160 self.inner = self.inner.set_next_token(input);
161 self
162 }
163 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
165 self.inner.get_next_token()
166 }
167 pub fn max_results(mut self, input: i32) -> Self {
169 self.inner = self.inner.max_results(input);
170 self
171 }
172 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
174 self.inner = self.inner.set_max_results(input);
175 self
176 }
177 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
179 self.inner.get_max_results()
180 }
181 pub fn transaction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
183 self.inner = self.inner.transaction_id(input.into());
184 self
185 }
186 pub fn set_transaction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
188 self.inner = self.inner.set_transaction_id(input);
189 self
190 }
191 pub fn get_transaction_id(&self) -> &::std::option::Option<::std::string::String> {
193 self.inner.get_transaction_id()
194 }
195 pub fn query_as_of_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
197 self.inner = self.inner.query_as_of_time(input);
198 self
199 }
200 pub fn set_query_as_of_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
202 self.inner = self.inner.set_query_as_of_time(input);
203 self
204 }
205 pub fn get_query_as_of_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
207 self.inner.get_query_as_of_time()
208 }
209 pub fn audit_context(mut self, input: crate::types::AuditContext) -> Self {
211 self.inner = self.inner.audit_context(input);
212 self
213 }
214 pub fn set_audit_context(mut self, input: ::std::option::Option<crate::types::AuditContext>) -> Self {
216 self.inner = self.inner.set_audit_context(input);
217 self
218 }
219 pub fn get_audit_context(&self) -> &::std::option::Option<crate::types::AuditContext> {
221 self.inner.get_audit_context()
222 }
223 pub fn include_status_details(mut self, input: bool) -> Self {
225 self.inner = self.inner.include_status_details(input);
226 self
227 }
228 pub fn set_include_status_details(mut self, input: ::std::option::Option<bool>) -> Self {
230 self.inner = self.inner.set_include_status_details(input);
231 self
232 }
233 pub fn get_include_status_details(&self) -> &::std::option::Option<bool> {
235 self.inner.get_include_status_details()
236 }
237 pub fn attributes_to_get(mut self, input: crate::types::TableAttributes) -> Self {
251 self.inner = self.inner.attributes_to_get(input);
252 self
253 }
254 pub fn set_attributes_to_get(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TableAttributes>>) -> Self {
263 self.inner = self.inner.set_attributes_to_get(input);
264 self
265 }
266 pub fn get_attributes_to_get(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TableAttributes>> {
275 self.inner.get_attributes_to_get()
276 }
277}