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.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateProxyConfigurationInput {
    /// The Amazon Resource Name (ARN) of the proxy.
    pub proxy_identifier: ::std::option::Option<::std::string::String>,
    /// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
    pub configuration_file: ::std::option::Option<crate::types::ConfigurationFile>,
    /// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
    pub configuration_archive: ::std::option::Option<crate::types::ConfigurationArchive>,
    /// Indicates whether to remove the configuration archive from the proxy.
    pub reset_configuration_archive: ::std::option::Option<bool>,
    /// 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 customer_kms_key_arn: ::std::option::Option<::std::string::String>,
    /// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
    pub reset_customer_kms_key_arn: ::std::option::Option<bool>,
}
impl UpdateProxyConfigurationInput {
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn proxy_identifier(&self) -> ::std::option::Option<&str> {
        self.proxy_identifier.as_deref()
    }
    /// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
    pub fn configuration_file(&self) -> ::std::option::Option<&crate::types::ConfigurationFile> {
        self.configuration_file.as_ref()
    }
    /// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
    pub fn configuration_archive(&self) -> ::std::option::Option<&crate::types::ConfigurationArchive> {
        self.configuration_archive.as_ref()
    }
    /// Indicates whether to remove the configuration archive from the proxy.
    pub fn reset_configuration_archive(&self) -> ::std::option::Option<bool> {
        self.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(&self) -> ::std::option::Option<&str> {
        self.customer_kms_key_arn.as_deref()
    }
    /// 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(&self) -> ::std::option::Option<bool> {
        self.reset_customer_kms_key_arn
    }
}
impl UpdateProxyConfigurationInput {
    /// Creates a new builder-style object to manufacture [`UpdateProxyConfigurationInput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput).
    pub fn builder() -> crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationInputBuilder {
        crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationInputBuilder::default()
    }
}

/// A builder for [`UpdateProxyConfigurationInput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateProxyConfigurationInputBuilder {
    pub(crate) proxy_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) configuration_file: ::std::option::Option<crate::types::ConfigurationFile>,
    pub(crate) configuration_archive: ::std::option::Option<crate::types::ConfigurationArchive>,
    pub(crate) reset_configuration_archive: ::std::option::Option<bool>,
    pub(crate) customer_kms_key_arn: ::std::option::Option<::std::string::String>,
    pub(crate) reset_customer_kms_key_arn: ::std::option::Option<bool>,
}
impl UpdateProxyConfigurationInputBuilder {
    /// The Amazon Resource Name (ARN) of the proxy.
    /// This field is required.
    pub fn proxy_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.proxy_identifier = ::std::option::Option::Some(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.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.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.configuration_file = ::std::option::Option::Some(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.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.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.configuration_archive = ::std::option::Option::Some(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.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.configuration_archive
    }
    /// Indicates whether to remove the configuration archive from the proxy.
    pub fn reset_configuration_archive(mut self, input: bool) -> Self {
        self.reset_configuration_archive = ::std::option::Option::Some(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.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.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.customer_kms_key_arn = ::std::option::Option::Some(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.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.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.reset_customer_kms_key_arn = ::std::option::Option::Some(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.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.reset_customer_kms_key_arn
    }
    /// Consumes the builder and constructs a [`UpdateProxyConfigurationInput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput {
            proxy_identifier: self.proxy_identifier,
            configuration_file: self.configuration_file,
            configuration_archive: self.configuration_archive,
            reset_configuration_archive: self.reset_configuration_archive,
            customer_kms_key_arn: self.customer_kms_key_arn,
            reset_customer_kms_key_arn: self.reset_customer_kms_key_arn,
        })
    }
}