pub use crate::operation::get_network_routes::_get_network_routes_output::GetNetworkRoutesOutputBuilder;
pub use crate::operation::get_network_routes::_get_network_routes_input::GetNetworkRoutesInputBuilder;
impl GetNetworkRoutesInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::get_network_routes::GetNetworkRoutesOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_network_routes::GetNetworkRoutesError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.get_network_routes();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct GetNetworkRoutesFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::get_network_routes::builders::GetNetworkRoutesInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::get_network_routes::GetNetworkRoutesOutput,
crate::operation::get_network_routes::GetNetworkRoutesError,
> for GetNetworkRoutesFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::get_network_routes::GetNetworkRoutesOutput,
crate::operation::get_network_routes::GetNetworkRoutesError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl GetNetworkRoutesFluentBuilder {
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_routes::builders::GetNetworkRoutesInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::get_network_routes::GetNetworkRoutesOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_network_routes::GetNetworkRoutesError,
::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_routes::GetNetworkRoutes::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::get_network_routes::GetNetworkRoutes::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::get_network_routes::GetNetworkRoutesOutput,
crate::operation::get_network_routes::GetNetworkRoutesError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl Into<crate::config::Builder>) -> Self {
self.set_config_override(Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
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 route_table_identifier(mut self, input: crate::types::RouteTableIdentifier) -> Self {
self.inner = self.inner.route_table_identifier(input);
self
}
pub fn set_route_table_identifier(mut self, input: ::std::option::Option<crate::types::RouteTableIdentifier>) -> Self {
self.inner = self.inner.set_route_table_identifier(input);
self
}
pub fn get_route_table_identifier(&self) -> &::std::option::Option<crate::types::RouteTableIdentifier> {
self.inner.get_route_table_identifier()
}
pub fn exact_cidr_matches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.exact_cidr_matches(input.into());
self
}
pub fn set_exact_cidr_matches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_exact_cidr_matches(input);
self
}
pub fn get_exact_cidr_matches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_exact_cidr_matches()
}
pub fn longest_prefix_matches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.longest_prefix_matches(input.into());
self
}
pub fn set_longest_prefix_matches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_longest_prefix_matches(input);
self
}
pub fn get_longest_prefix_matches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_longest_prefix_matches()
}
pub fn subnet_of_matches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.subnet_of_matches(input.into());
self
}
pub fn set_subnet_of_matches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_subnet_of_matches(input);
self
}
pub fn get_subnet_of_matches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_subnet_of_matches()
}
pub fn supernet_of_matches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.supernet_of_matches(input.into());
self
}
pub fn set_supernet_of_matches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_supernet_of_matches(input);
self
}
pub fn get_supernet_of_matches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_supernet_of_matches()
}
pub fn prefix_list_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.prefix_list_ids(input.into());
self
}
pub fn set_prefix_list_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_prefix_list_ids(input);
self
}
pub fn get_prefix_list_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_prefix_list_ids()
}
pub fn states(mut self, input: crate::types::RouteState) -> Self {
self.inner = self.inner.states(input);
self
}
pub fn set_states(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RouteState>>) -> Self {
self.inner = self.inner.set_states(input);
self
}
pub fn get_states(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RouteState>> {
self.inner.get_states()
}
pub fn types(mut self, input: crate::types::RouteType) -> Self {
self.inner = self.inner.types(input);
self
}
pub fn set_types(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RouteType>>) -> Self {
self.inner = self.inner.set_types(input);
self
}
pub fn get_types(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RouteType>> {
self.inner.get_types()
}
pub fn destination_filters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
self.inner = self.inner.destination_filters(k.into(), v);
self
}
pub fn set_destination_filters(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
) -> Self {
self.inner = self.inner.set_destination_filters(input);
self
}
pub fn get_destination_filters(
&self,
) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
self.inner.get_destination_filters()
}
}