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 UpdateProxyConfigurationOutput {
    /// The configuration metadata for the proxy after the update.
    pub configuration_metadata: ::std::option::Option<crate::types::ConfigurationMetadata>,
    /// The ID of the update that was submitted.
    pub update_id: ::std::option::Option<::std::string::String>,
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content after the update. This value is absent when the proxy uses the default service-owned key.
    pub customer_kms_key_arn: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl UpdateProxyConfigurationOutput {
    /// The configuration metadata for the proxy after the update.
    pub fn configuration_metadata(&self) -> ::std::option::Option<&crate::types::ConfigurationMetadata> {
        self.configuration_metadata.as_ref()
    }
    /// The ID of the update that was submitted.
    pub fn update_id(&self) -> ::std::option::Option<&str> {
        self.update_id.as_deref()
    }
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content after the update. This value is absent when the proxy uses the default service-owned key.
    pub fn customer_kms_key_arn(&self) -> ::std::option::Option<&str> {
        self.customer_kms_key_arn.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateProxyConfigurationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateProxyConfigurationOutput {
    /// Creates a new builder-style object to manufacture [`UpdateProxyConfigurationOutput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationOutput).
    pub fn builder() -> crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationOutputBuilder {
        crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationOutputBuilder::default()
    }
}

/// A builder for [`UpdateProxyConfigurationOutput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateProxyConfigurationOutputBuilder {
    pub(crate) configuration_metadata: ::std::option::Option<crate::types::ConfigurationMetadata>,
    pub(crate) update_id: ::std::option::Option<::std::string::String>,
    pub(crate) customer_kms_key_arn: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl UpdateProxyConfigurationOutputBuilder {
    /// The configuration metadata for the proxy after the update.
    /// This field is required.
    pub fn configuration_metadata(mut self, input: crate::types::ConfigurationMetadata) -> Self {
        self.configuration_metadata = ::std::option::Option::Some(input);
        self
    }
    /// The configuration metadata for the proxy after the update.
    pub fn set_configuration_metadata(mut self, input: ::std::option::Option<crate::types::ConfigurationMetadata>) -> Self {
        self.configuration_metadata = input;
        self
    }
    /// The configuration metadata for the proxy after the update.
    pub fn get_configuration_metadata(&self) -> &::std::option::Option<crate::types::ConfigurationMetadata> {
        &self.configuration_metadata
    }
    /// The ID of the update that was submitted.
    pub fn update_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.update_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The ID of the update that was submitted.
    pub fn set_update_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.update_id = input;
        self
    }
    /// The ID of the update that was submitted.
    pub fn get_update_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.update_id
    }
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content after the update. This value is absent when the proxy uses the default service-owned key.
    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 after the update. This value is absent when the proxy uses the default service-owned key.
    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 after the update. This value is absent when the proxy uses the default service-owned key.
    pub fn get_customer_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.customer_kms_key_arn
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`UpdateProxyConfigurationOutput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationOutput).
    pub fn build(self) -> crate::operation::update_proxy_configuration::UpdateProxyConfigurationOutput {
        crate::operation::update_proxy_configuration::UpdateProxyConfigurationOutput {
            configuration_metadata: self.configuration_metadata,
            update_id: self.update_id,
            customer_kms_key_arn: self.customer_kms_key_arn,
            _request_id: self._request_id,
        }
    }
}