aws-sdk-elbproxy 1.0.0

AWS SDK for Elastic Load Balancing for Envoy
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::update_proxy_configuration::_update_proxy_configuration_input::UpdateProxyConfigurationInputBuilder;

pub use crate::operation::update_proxy_configuration::_update_proxy_configuration_output::UpdateProxyConfigurationOutputBuilder;

impl crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationInputBuilder {
    /// 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_proxy_configuration::UpdateProxyConfigurationOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_proxy_configuration::UpdateProxyConfigurationError,
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
        >,
    > {
        let mut fluent_builder = client.update_proxy_configuration();
        fluent_builder.inner = self;
        fluent_builder.send().await
    }
}
/// Fluent builder constructing a request to `UpdateProxyConfiguration`.
///
/// Updates the configuration for the specified proxy. You can update the configuration file, the configuration archive, or both.
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateProxyConfigurationFluentBuilder {
    handle: ::std::sync::Arc<crate::client::Handle>,
    inner: crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationInputBuilder,
    config_override: ::std::option::Option<crate::config::Builder>,
}
impl
    crate::client::customize::internal::CustomizableSend<
        crate::operation::update_proxy_configuration::UpdateProxyConfigurationOutput,
        crate::operation::update_proxy_configuration::UpdateProxyConfigurationError,
    > for UpdateProxyConfigurationFluentBuilder
{
    fn send(
        self,
        config_override: crate::config::Builder,
    ) -> crate::client::customize::internal::BoxFuture<
        crate::client::customize::internal::SendResult<
            crate::operation::update_proxy_configuration::UpdateProxyConfigurationOutput,
            crate::operation::update_proxy_configuration::UpdateProxyConfigurationError,
        >,
    > {
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
    }
}
impl UpdateProxyConfigurationFluentBuilder {
    /// Creates a new `UpdateProxyConfigurationFluentBuilder`.
    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 UpdateProxyConfiguration as a reference.
    pub fn as_input(&self) -> &crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationInputBuilder {
        &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_proxy_configuration::UpdateProxyConfigurationOutput,
        ::aws_smithy_runtime_api::client::result::SdkError<
            crate::operation::update_proxy_configuration::UpdateProxyConfigurationError,
            ::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_proxy_configuration::UpdateProxyConfiguration::operation_runtime_plugins(
            self.handle.runtime_plugins.clone(),
            &self.handle.conf,
            self.config_override,
        );
        crate::operation::update_proxy_configuration::UpdateProxyConfiguration::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_proxy_configuration::UpdateProxyConfigurationOutput,
        crate::operation::update_proxy_configuration::UpdateProxyConfigurationError,
        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
    }
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn proxy_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.proxy_identifier(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn set_proxy_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_proxy_identifier(input);
        self
    }
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn get_proxy_identifier(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_proxy_identifier()
    }
    /// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
    pub fn configuration_file(mut self, input: crate::types::ConfigurationFile) -> Self {
        self.inner = self.inner.configuration_file(input);
        self
    }
    /// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
    pub fn set_configuration_file(mut self, input: ::std::option::Option<crate::types::ConfigurationFile>) -> Self {
        self.inner = self.inner.set_configuration_file(input);
        self
    }
    /// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
    pub fn get_configuration_file(&self) -> &::std::option::Option<crate::types::ConfigurationFile> {
        self.inner.get_configuration_file()
    }
    /// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
    pub fn configuration_archive(mut self, input: crate::types::ConfigurationArchive) -> Self {
        self.inner = self.inner.configuration_archive(input);
        self
    }
    /// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
    pub fn set_configuration_archive(mut self, input: ::std::option::Option<crate::types::ConfigurationArchive>) -> Self {
        self.inner = self.inner.set_configuration_archive(input);
        self
    }
    /// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
    pub fn get_configuration_archive(&self) -> &::std::option::Option<crate::types::ConfigurationArchive> {
        self.inner.get_configuration_archive()
    }
    /// Indicates whether to remove the configuration archive from the proxy.
    pub fn reset_configuration_archive(mut self, input: bool) -> Self {
        self.inner = self.inner.reset_configuration_archive(input);
        self
    }
    /// Indicates whether to remove the configuration archive from the proxy.
    pub fn set_reset_configuration_archive(mut self, input: ::std::option::Option<bool>) -> Self {
        self.inner = self.inner.set_reset_configuration_archive(input);
        self
    }
    /// Indicates whether to remove the configuration archive from the proxy.
    pub fn get_reset_configuration_archive(&self) -> &::std::option::Option<bool> {
        self.inner.get_reset_configuration_archive()
    }
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
    pub fn customer_kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inner = self.inner.customer_kms_key_arn(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
    pub fn set_customer_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inner = self.inner.set_customer_kms_key_arn(input);
        self
    }
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
    pub fn get_customer_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
        self.inner.get_customer_kms_key_arn()
    }
    /// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
    pub fn reset_customer_kms_key_arn(mut self, input: bool) -> Self {
        self.inner = self.inner.reset_customer_kms_key_arn(input);
        self
    }
    /// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
    pub fn set_reset_customer_kms_key_arn(mut self, input: ::std::option::Option<bool>) -> Self {
        self.inner = self.inner.set_reset_customer_kms_key_arn(input);
        self
    }
    /// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
    pub fn get_reset_customer_kms_key_arn(&self) -> &::std::option::Option<bool> {
        self.inner.get_reset_customer_kms_key_arn()
    }
}