pub use crate::operation::get_network_telemetry::_get_network_telemetry_output::GetNetworkTelemetryOutputBuilder;
pub use crate::operation::get_network_telemetry::_get_network_telemetry_input::GetNetworkTelemetryInputBuilder;
impl crate::operation::get_network_telemetry::builders::GetNetworkTelemetryInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_network_telemetry::GetNetworkTelemetryError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.get_network_telemetry();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GetNetworkTelemetryFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::get_network_telemetry::builders::GetNetworkTelemetryInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
crate::operation::get_network_telemetry::GetNetworkTelemetryError,
> for GetNetworkTelemetryFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
crate::operation::get_network_telemetry::GetNetworkTelemetryError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl GetNetworkTelemetryFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::get_network_telemetry::builders::GetNetworkTelemetryInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_network_telemetry::GetNetworkTelemetryError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::get_network_telemetry::GetNetworkTelemetry::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::get_network_telemetry::GetNetworkTelemetry::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::get_network_telemetry::GetNetworkTelemetryOutput,
crate::operation::get_network_telemetry::GetNetworkTelemetryError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn into_paginator(self) -> crate::operation::get_network_telemetry::paginator::GetNetworkTelemetryPaginator {
crate::operation::get_network_telemetry::paginator::GetNetworkTelemetryPaginator::new(self.handle, self.inner)
}
pub fn global_network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.global_network_id(input.into());
self
}
pub fn set_global_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_global_network_id(input);
self
}
pub fn get_global_network_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_global_network_id()
}
pub fn core_network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.core_network_id(input.into());
self
}
pub fn set_core_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_core_network_id(input);
self
}
pub fn get_core_network_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_core_network_id()
}
pub fn registered_gateway_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.registered_gateway_arn(input.into());
self
}
pub fn set_registered_gateway_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_registered_gateway_arn(input);
self
}
pub fn get_registered_gateway_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_registered_gateway_arn()
}
pub fn aws_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.aws_region(input.into());
self
}
pub fn set_aws_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_aws_region(input);
self
}
pub fn get_aws_region(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_aws_region()
}
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.account_id(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_account_id(input);
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_account_id()
}
pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.resource_type(input.into());
self
}
pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_resource_type(input);
self
}
pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_resource_type()
}
pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_resource_arn()
}
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
self.inner.get_max_results()
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_next_token()
}
}