aws_sdk_sagemaker/operation/list_hubs/
builders.rs1pub use crate::operation::list_hubs::_list_hubs_output::ListHubsOutputBuilder;
3
4pub use crate::operation::list_hubs::_list_hubs_input::ListHubsInputBuilder;
5
6impl crate::operation::list_hubs::builders::ListHubsInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::list_hubs::ListHubsOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::list_hubs::ListHubsError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.list_hubs();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct ListHubsFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::list_hubs::builders::ListHubsInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl crate::client::customize::internal::CustomizableSend<crate::operation::list_hubs::ListHubsOutput, crate::operation::list_hubs::ListHubsError>
33 for ListHubsFluentBuilder
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::list_hubs::ListHubsOutput, crate::operation::list_hubs::ListHubsError>,
40 > {
41 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
42 }
43}
44impl ListHubsFluentBuilder {
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::list_hubs::builders::ListHubsInputBuilder {
55 &self.inner
56 }
57 pub async fn send(
66 self,
67 ) -> ::std::result::Result<
68 crate::operation::list_hubs::ListHubsOutput,
69 ::aws_smithy_runtime_api::client::result::SdkError<
70 crate::operation::list_hubs::ListHubsError,
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::list_hubs::ListHubs::operation_runtime_plugins(
79 self.handle.runtime_plugins.clone(),
80 &self.handle.conf,
81 self.config_override,
82 );
83 crate::operation::list_hubs::ListHubs::orchestrate(&runtime_plugins, input).await
84 }
85
86 pub fn customize(
88 self,
89 ) -> crate::client::customize::CustomizableOperation<crate::operation::list_hubs::ListHubsOutput, crate::operation::list_hubs::ListHubsError, Self>
90 {
91 crate::client::customize::CustomizableOperation::new(self)
92 }
93 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
94 self.set_config_override(::std::option::Option::Some(config_override.into()));
95 self
96 }
97
98 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
99 self.config_override = config_override;
100 self
101 }
102 pub fn name_contains(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
104 self.inner = self.inner.name_contains(input.into());
105 self
106 }
107 pub fn set_name_contains(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
109 self.inner = self.inner.set_name_contains(input);
110 self
111 }
112 pub fn get_name_contains(&self) -> &::std::option::Option<::std::string::String> {
114 self.inner.get_name_contains()
115 }
116 pub fn creation_time_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
118 self.inner = self.inner.creation_time_before(input);
119 self
120 }
121 pub fn set_creation_time_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
123 self.inner = self.inner.set_creation_time_before(input);
124 self
125 }
126 pub fn get_creation_time_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
128 self.inner.get_creation_time_before()
129 }
130 pub fn creation_time_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
132 self.inner = self.inner.creation_time_after(input);
133 self
134 }
135 pub fn set_creation_time_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
137 self.inner = self.inner.set_creation_time_after(input);
138 self
139 }
140 pub fn get_creation_time_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
142 self.inner.get_creation_time_after()
143 }
144 pub fn last_modified_time_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
146 self.inner = self.inner.last_modified_time_before(input);
147 self
148 }
149 pub fn set_last_modified_time_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
151 self.inner = self.inner.set_last_modified_time_before(input);
152 self
153 }
154 pub fn get_last_modified_time_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
156 self.inner.get_last_modified_time_before()
157 }
158 pub fn last_modified_time_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
160 self.inner = self.inner.last_modified_time_after(input);
161 self
162 }
163 pub fn set_last_modified_time_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
165 self.inner = self.inner.set_last_modified_time_after(input);
166 self
167 }
168 pub fn get_last_modified_time_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
170 self.inner.get_last_modified_time_after()
171 }
172 pub fn sort_by(mut self, input: crate::types::HubSortBy) -> Self {
174 self.inner = self.inner.sort_by(input);
175 self
176 }
177 pub fn set_sort_by(mut self, input: ::std::option::Option<crate::types::HubSortBy>) -> Self {
179 self.inner = self.inner.set_sort_by(input);
180 self
181 }
182 pub fn get_sort_by(&self) -> &::std::option::Option<crate::types::HubSortBy> {
184 self.inner.get_sort_by()
185 }
186 pub fn sort_order(mut self, input: crate::types::SortOrder) -> Self {
188 self.inner = self.inner.sort_order(input);
189 self
190 }
191 pub fn set_sort_order(mut self, input: ::std::option::Option<crate::types::SortOrder>) -> Self {
193 self.inner = self.inner.set_sort_order(input);
194 self
195 }
196 pub fn get_sort_order(&self) -> &::std::option::Option<crate::types::SortOrder> {
198 self.inner.get_sort_order()
199 }
200 pub fn max_results(mut self, input: i32) -> Self {
202 self.inner = self.inner.max_results(input);
203 self
204 }
205 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
207 self.inner = self.inner.set_max_results(input);
208 self
209 }
210 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
212 self.inner.get_max_results()
213 }
214 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
216 self.inner = self.inner.next_token(input.into());
217 self
218 }
219 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
221 self.inner = self.inner.set_next_token(input);
222 self
223 }
224 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
226 self.inner.get_next_token()
227 }
228}