aws-sdk-devicefarm 1.104.0

AWS SDK for AWS Device Farm
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::update_network_profile::_update_network_profile_input::UpdateNetworkProfileInputBuilder;

pub use crate::operation::update_network_profile::_update_network_profile_output::UpdateNetworkProfileOutputBuilder;

impl crate::operation::update_network_profile::builders::UpdateNetworkProfileInputBuilder {
    /// Sends a request with this input using the given client.
    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
    }
}
/// Fluent builder constructing a request to `UpdateNetworkProfile`.
///
/// <p>Updates the network profile.</p>
#[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 {
    /// Creates a new `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,
        }
    }
    /// Access the UpdateNetworkProfile as a reference.
    pub fn as_input(&self) -> &crate::operation::update_network_profile::builders::UpdateNetworkProfileInputBuilder {
        &self.inner
    }
    /// Sends the request and returns the response.
    ///
    /// If an error occurs, an `SdkError` will be returned with additional details that
    /// can be matched against.
    ///
    /// By default, any retryable failures will be retried twice. Retry behavior
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
    /// set when configuring the client.
    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
    }

    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
    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
    }
    /// <p>The Amazon Resource Name (ARN) of the project for which you want to update network profile settings.</p>
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.arn(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the project for which you want to update network profile settings.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_arn(input);
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the project for which you want to update network profile settings.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_arn()
    }
    /// <p>The name of the network profile about which you are returning information.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.name(input.into());
        self
    }
    /// <p>The name of the network profile about which you are returning information.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_name(input);
        self
    }
    /// <p>The name of the network profile about which you are returning information.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_name()
    }
    /// <p>The description of the network profile about which you are returning information.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.description(input.into());
        self
    }
    /// <p>The description of the network profile about which you are returning information.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_description(input);
        self
    }
    /// <p>The description of the network profile about which you are returning information.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_description()
    }
    /// <p>The type of network profile to return information about. Valid values are listed here.</p>
    pub fn r#type(mut self, input: crate::types::NetworkProfileType) -> Self {
        self.inner = self.inner.r#type(input);
        self
    }
    /// <p>The type of network profile to return information about. Valid values are listed here.</p>
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::NetworkProfileType>) -> Self {
        self.inner = self.inner.set_type(input);
        self
    }
    /// <p>The type of network profile to return information about. Valid values are listed here.</p>
    pub fn get_type(&self) -> &::std::option::Option<crate::types::NetworkProfileType> {
        self.inner.get_type()
    }
    /// <p>The data throughput rate in bits per second, as an integer from 0 to 104857600.</p>
    pub fn uplink_bandwidth_bits(mut self, input: i64) -> Self {
        self.inner = self.inner.uplink_bandwidth_bits(input);
        self
    }
    /// <p>The data throughput rate in bits per second, as an integer from 0 to 104857600.</p>
    pub fn set_uplink_bandwidth_bits(mut self, input: ::std::option::Option<i64>) -> Self {
        self.inner = self.inner.set_uplink_bandwidth_bits(input);
        self
    }
    /// <p>The data throughput rate in bits per second, as an integer from 0 to 104857600.</p>
    pub fn get_uplink_bandwidth_bits(&self) -> &::std::option::Option<i64> {
        self.inner.get_uplink_bandwidth_bits()
    }
    /// <p>The data throughput rate in bits per second, as an integer from 0 to 104857600.</p>
    pub fn downlink_bandwidth_bits(mut self, input: i64) -> Self {
        self.inner = self.inner.downlink_bandwidth_bits(input);
        self
    }
    /// <p>The data throughput rate in bits per second, as an integer from 0 to 104857600.</p>
    pub fn set_downlink_bandwidth_bits(mut self, input: ::std::option::Option<i64>) -> Self {
        self.inner = self.inner.set_downlink_bandwidth_bits(input);
        self
    }
    /// <p>The data throughput rate in bits per second, as an integer from 0 to 104857600.</p>
    pub fn get_downlink_bandwidth_bits(&self) -> &::std::option::Option<i64> {
        self.inner.get_downlink_bandwidth_bits()
    }
    /// <p>Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.</p>
    pub fn uplink_delay_ms(mut self, input: i64) -> Self {
        self.inner = self.inner.uplink_delay_ms(input);
        self
    }
    /// <p>Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.</p>
    pub fn set_uplink_delay_ms(mut self, input: ::std::option::Option<i64>) -> Self {
        self.inner = self.inner.set_uplink_delay_ms(input);
        self
    }
    /// <p>Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.</p>
    pub fn get_uplink_delay_ms(&self) -> &::std::option::Option<i64> {
        self.inner.get_uplink_delay_ms()
    }
    /// <p>Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.</p>
    pub fn downlink_delay_ms(mut self, input: i64) -> Self {
        self.inner = self.inner.downlink_delay_ms(input);
        self
    }
    /// <p>Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.</p>
    pub fn set_downlink_delay_ms(mut self, input: ::std::option::Option<i64>) -> Self {
        self.inner = self.inner.set_downlink_delay_ms(input);
        self
    }
    /// <p>Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.</p>
    pub fn get_downlink_delay_ms(&self) -> &::std::option::Option<i64> {
        self.inner.get_downlink_delay_ms()
    }
    /// <p>Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.</p>
    pub fn uplink_jitter_ms(mut self, input: i64) -> Self {
        self.inner = self.inner.uplink_jitter_ms(input);
        self
    }
    /// <p>Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.</p>
    pub fn set_uplink_jitter_ms(mut self, input: ::std::option::Option<i64>) -> Self {
        self.inner = self.inner.set_uplink_jitter_ms(input);
        self
    }
    /// <p>Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.</p>
    pub fn get_uplink_jitter_ms(&self) -> &::std::option::Option<i64> {
        self.inner.get_uplink_jitter_ms()
    }
    /// <p>Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.</p>
    pub fn downlink_jitter_ms(mut self, input: i64) -> Self {
        self.inner = self.inner.downlink_jitter_ms(input);
        self
    }
    /// <p>Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.</p>
    pub fn set_downlink_jitter_ms(mut self, input: ::std::option::Option<i64>) -> Self {
        self.inner = self.inner.set_downlink_jitter_ms(input);
        self
    }
    /// <p>Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.</p>
    pub fn get_downlink_jitter_ms(&self) -> &::std::option::Option<i64> {
        self.inner.get_downlink_jitter_ms()
    }
    /// <p>Proportion of transmitted packets that fail to arrive from 0 to 100 percent.</p>
    pub fn uplink_loss_percent(mut self, input: i32) -> Self {
        self.inner = self.inner.uplink_loss_percent(input);
        self
    }
    /// <p>Proportion of transmitted packets that fail to arrive from 0 to 100 percent.</p>
    pub fn set_uplink_loss_percent(mut self, input: ::std::option::Option<i32>) -> Self {
        self.inner = self.inner.set_uplink_loss_percent(input);
        self
    }
    /// <p>Proportion of transmitted packets that fail to arrive from 0 to 100 percent.</p>
    pub fn get_uplink_loss_percent(&self) -> &::std::option::Option<i32> {
        self.inner.get_uplink_loss_percent()
    }
    /// <p>Proportion of received packets that fail to arrive from 0 to 100 percent.</p>
    pub fn downlink_loss_percent(mut self, input: i32) -> Self {
        self.inner = self.inner.downlink_loss_percent(input);
        self
    }
    /// <p>Proportion of received packets that fail to arrive from 0 to 100 percent.</p>
    pub fn set_downlink_loss_percent(mut self, input: ::std::option::Option<i32>) -> Self {
        self.inner = self.inner.set_downlink_loss_percent(input);
        self
    }
    /// <p>Proportion of received packets that fail to arrive from 0 to 100 percent.</p>
    pub fn get_downlink_loss_percent(&self) -> &::std::option::Option<i32> {
        self.inner.get_downlink_loss_percent()
    }
}