aws_sdk_networkmanager/operation/get_sites/
builders.rs1pub use crate::operation::get_sites::_get_sites_output::GetSitesOutputBuilder;
3
4pub use crate::operation::get_sites::_get_sites_input::GetSitesInputBuilder;
5
6impl crate::operation::get_sites::builders::GetSitesInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::get_sites::GetSitesOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_sites::GetSitesError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_sites();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct GetSitesFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::get_sites::builders::GetSitesInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl crate::client::customize::internal::CustomizableSend<crate::operation::get_sites::GetSitesOutput, crate::operation::get_sites::GetSitesError>
33 for GetSitesFluentBuilder
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_sites::GetSitesOutput, crate::operation::get_sites::GetSitesError>,
40 > {
41 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
42 }
43}
44impl GetSitesFluentBuilder {
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_sites::builders::GetSitesInputBuilder {
55 &self.inner
56 }
57 pub async fn send(
66 self,
67 ) -> ::std::result::Result<
68 crate::operation::get_sites::GetSitesOutput,
69 ::aws_smithy_runtime_api::client::result::SdkError<
70 crate::operation::get_sites::GetSitesError,
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_sites::GetSites::operation_runtime_plugins(
79 self.handle.runtime_plugins.clone(),
80 &self.handle.conf,
81 self.config_override,
82 );
83 crate::operation::get_sites::GetSites::orchestrate(&runtime_plugins, input).await
84 }
85
86 pub fn customize(
88 self,
89 ) -> crate::client::customize::CustomizableOperation<crate::operation::get_sites::GetSitesOutput, crate::operation::get_sites::GetSitesError, 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 into_paginator(self) -> crate::operation::get_sites::paginator::GetSitesPaginator {
106 crate::operation::get_sites::paginator::GetSitesPaginator::new(self.handle, self.inner)
107 }
108 pub fn global_network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
110 self.inner = self.inner.global_network_id(input.into());
111 self
112 }
113 pub fn set_global_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
115 self.inner = self.inner.set_global_network_id(input);
116 self
117 }
118 pub fn get_global_network_id(&self) -> &::std::option::Option<::std::string::String> {
120 self.inner.get_global_network_id()
121 }
122 pub fn site_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.inner = self.inner.site_ids(input.into());
130 self
131 }
132 pub fn set_site_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
134 self.inner = self.inner.set_site_ids(input);
135 self
136 }
137 pub fn get_site_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
139 self.inner.get_site_ids()
140 }
141 pub fn max_results(mut self, input: i32) -> Self {
143 self.inner = self.inner.max_results(input);
144 self
145 }
146 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
148 self.inner = self.inner.set_max_results(input);
149 self
150 }
151 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
153 self.inner.get_max_results()
154 }
155 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
157 self.inner = self.inner.next_token(input.into());
158 self
159 }
160 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
162 self.inner = self.inner.set_next_token(input);
163 self
164 }
165 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
167 self.inner.get_next_token()
168 }
169}