aws_sdk_networkmanager/operation/get_network_telemetry/
builders.rs1pub use crate::operation::get_network_telemetry::_get_network_telemetry_output::GetNetworkTelemetryOutputBuilder;
3
4pub use crate::operation::get_network_telemetry::_get_network_telemetry_input::GetNetworkTelemetryInputBuilder;
5
6impl crate::operation::get_network_telemetry::builders::GetNetworkTelemetryInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_network_telemetry::GetNetworkTelemetryError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_network_telemetry();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct GetNetworkTelemetryFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::get_network_telemetry::builders::GetNetworkTelemetryInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
35 crate::operation::get_network_telemetry::GetNetworkTelemetryError,
36 > for GetNetworkTelemetryFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
44 crate::operation::get_network_telemetry::GetNetworkTelemetryError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl GetNetworkTelemetryFluentBuilder {
51 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 pub fn as_input(&self) -> &crate::operation::get_network_telemetry::builders::GetNetworkTelemetryInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::get_network_telemetry::GetNetworkTelemetryError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::get_network_telemetry::GetNetworkTelemetry::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::get_network_telemetry::GetNetworkTelemetry::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
97 crate::operation::get_network_telemetry::GetNetworkTelemetryError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 pub fn into_paginator(self) -> crate::operation::get_network_telemetry::paginator::GetNetworkTelemetryPaginator {
115 crate::operation::get_network_telemetry::paginator::GetNetworkTelemetryPaginator::new(self.handle, self.inner)
116 }
117 pub fn global_network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
119 self.inner = self.inner.global_network_id(input.into());
120 self
121 }
122 pub fn set_global_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
124 self.inner = self.inner.set_global_network_id(input);
125 self
126 }
127 pub fn get_global_network_id(&self) -> &::std::option::Option<::std::string::String> {
129 self.inner.get_global_network_id()
130 }
131 pub fn core_network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
133 self.inner = self.inner.core_network_id(input.into());
134 self
135 }
136 pub fn set_core_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
138 self.inner = self.inner.set_core_network_id(input);
139 self
140 }
141 pub fn get_core_network_id(&self) -> &::std::option::Option<::std::string::String> {
143 self.inner.get_core_network_id()
144 }
145 pub fn registered_gateway_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
147 self.inner = self.inner.registered_gateway_arn(input.into());
148 self
149 }
150 pub fn set_registered_gateway_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
152 self.inner = self.inner.set_registered_gateway_arn(input);
153 self
154 }
155 pub fn get_registered_gateway_arn(&self) -> &::std::option::Option<::std::string::String> {
157 self.inner.get_registered_gateway_arn()
158 }
159 pub fn aws_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
161 self.inner = self.inner.aws_region(input.into());
162 self
163 }
164 pub fn set_aws_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
166 self.inner = self.inner.set_aws_region(input);
167 self
168 }
169 pub fn get_aws_region(&self) -> &::std::option::Option<::std::string::String> {
171 self.inner.get_aws_region()
172 }
173 pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
175 self.inner = self.inner.account_id(input.into());
176 self
177 }
178 pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
180 self.inner = self.inner.set_account_id(input);
181 self
182 }
183 pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
185 self.inner.get_account_id()
186 }
187 pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
197 self.inner = self.inner.resource_type(input.into());
198 self
199 }
200 pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
210 self.inner = self.inner.set_resource_type(input);
211 self
212 }
213 pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
223 self.inner.get_resource_type()
224 }
225 pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
227 self.inner = self.inner.resource_arn(input.into());
228 self
229 }
230 pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
232 self.inner = self.inner.set_resource_arn(input);
233 self
234 }
235 pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
237 self.inner.get_resource_arn()
238 }
239 pub fn max_results(mut self, input: i32) -> Self {
241 self.inner = self.inner.max_results(input);
242 self
243 }
244 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
246 self.inner = self.inner.set_max_results(input);
247 self
248 }
249 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
251 self.inner.get_max_results()
252 }
253 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
255 self.inner = self.inner.next_token(input.into());
256 self
257 }
258 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
260 self.inner = self.inner.set_next_token(input);
261 self
262 }
263 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
265 self.inner.get_next_token()
266 }
267}