aws_sdk_devicefarm/operation/update_network_profile/
builders.rspub use crate::operation::update_network_profile::_update_network_profile_output::UpdateNetworkProfileOutputBuilder;
pub use crate::operation::update_network_profile::_update_network_profile_input::UpdateNetworkProfileInputBuilder;
impl crate::operation::update_network_profile::builders::UpdateNetworkProfileInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_network_profile::UpdateNetworkProfileOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_network_profile::UpdateNetworkProfileError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_network_profile();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateNetworkProfileFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_network_profile::builders::UpdateNetworkProfileInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_network_profile::UpdateNetworkProfileOutput,
crate::operation::update_network_profile::UpdateNetworkProfileError,
> for UpdateNetworkProfileFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_network_profile::UpdateNetworkProfileOutput,
crate::operation::update_network_profile::UpdateNetworkProfileError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateNetworkProfileFluentBuilder {
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::update_network_profile::builders::UpdateNetworkProfileInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_network_profile::UpdateNetworkProfileOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_network_profile::UpdateNetworkProfileError,
::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::update_network_profile::UpdateNetworkProfile::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_network_profile::UpdateNetworkProfile::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::update_network_profile::UpdateNetworkProfileOutput,
crate::operation::update_network_profile::UpdateNetworkProfileError,
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 arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.arn(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_arn(input);
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_arn()
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.description(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_description(input);
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_description()
}
pub fn r#type(mut self, input: crate::types::NetworkProfileType) -> Self {
self.inner = self.inner.r#type(input);
self
}
pub fn set_type(mut self, input: ::std::option::Option<crate::types::NetworkProfileType>) -> Self {
self.inner = self.inner.set_type(input);
self
}
pub fn get_type(&self) -> &::std::option::Option<crate::types::NetworkProfileType> {
self.inner.get_type()
}
pub fn uplink_bandwidth_bits(mut self, input: i64) -> Self {
self.inner = self.inner.uplink_bandwidth_bits(input);
self
}
pub fn set_uplink_bandwidth_bits(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_uplink_bandwidth_bits(input);
self
}
pub fn get_uplink_bandwidth_bits(&self) -> &::std::option::Option<i64> {
self.inner.get_uplink_bandwidth_bits()
}
pub fn downlink_bandwidth_bits(mut self, input: i64) -> Self {
self.inner = self.inner.downlink_bandwidth_bits(input);
self
}
pub fn set_downlink_bandwidth_bits(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_downlink_bandwidth_bits(input);
self
}
pub fn get_downlink_bandwidth_bits(&self) -> &::std::option::Option<i64> {
self.inner.get_downlink_bandwidth_bits()
}
pub fn uplink_delay_ms(mut self, input: i64) -> Self {
self.inner = self.inner.uplink_delay_ms(input);
self
}
pub fn set_uplink_delay_ms(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_uplink_delay_ms(input);
self
}
pub fn get_uplink_delay_ms(&self) -> &::std::option::Option<i64> {
self.inner.get_uplink_delay_ms()
}
pub fn downlink_delay_ms(mut self, input: i64) -> Self {
self.inner = self.inner.downlink_delay_ms(input);
self
}
pub fn set_downlink_delay_ms(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_downlink_delay_ms(input);
self
}
pub fn get_downlink_delay_ms(&self) -> &::std::option::Option<i64> {
self.inner.get_downlink_delay_ms()
}
pub fn uplink_jitter_ms(mut self, input: i64) -> Self {
self.inner = self.inner.uplink_jitter_ms(input);
self
}
pub fn set_uplink_jitter_ms(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_uplink_jitter_ms(input);
self
}
pub fn get_uplink_jitter_ms(&self) -> &::std::option::Option<i64> {
self.inner.get_uplink_jitter_ms()
}
pub fn downlink_jitter_ms(mut self, input: i64) -> Self {
self.inner = self.inner.downlink_jitter_ms(input);
self
}
pub fn set_downlink_jitter_ms(mut self, input: ::std::option::Option<i64>) -> Self {
self.inner = self.inner.set_downlink_jitter_ms(input);
self
}
pub fn get_downlink_jitter_ms(&self) -> &::std::option::Option<i64> {
self.inner.get_downlink_jitter_ms()
}
pub fn uplink_loss_percent(mut self, input: i32) -> Self {
self.inner = self.inner.uplink_loss_percent(input);
self
}
pub fn set_uplink_loss_percent(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_uplink_loss_percent(input);
self
}
pub fn get_uplink_loss_percent(&self) -> &::std::option::Option<i32> {
self.inner.get_uplink_loss_percent()
}
pub fn downlink_loss_percent(mut self, input: i32) -> Self {
self.inner = self.inner.downlink_loss_percent(input);
self
}
pub fn set_downlink_loss_percent(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_downlink_loss_percent(input);
self
}
pub fn get_downlink_loss_percent(&self) -> &::std::option::Option<i32> {
self.inner.get_downlink_loss_percent()
}
}