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.

/// Common Proxy details response mixin
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateProxyOutput {
    /// The Amazon Resource Name (ARN) of the proxy.
    pub arn: ::std::option::Option<::std::string::String>,
    /// The name of the proxy.
    pub name: ::std::option::Option<::std::string::String>,
    /// The type of proxy.
    pub r#type: ::std::option::Option<crate::types::ProxyType>,
    /// The version of the proxy software.
    pub proxy_version: ::std::option::Option<::std::string::String>,
    /// The DNS name of the proxy.
    pub dns_name: ::std::option::Option<::std::string::String>,
    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
    pub role_arn: ::std::option::Option<::std::string::String>,
    /// The network configuration for the proxy.
    pub network_configuration: ::std::option::Option<crate::types::ProxyNetworkConfiguration>,
    /// The status of the proxy.
    pub status: ::std::option::Option<crate::types::ProxyStatus>,
    /// The configuration metadata for the proxy.
    pub configuration_metadata: ::std::option::Option<crate::types::ConfigurationMetadata>,
    /// The date and time that the proxy was created.
    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. 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 CreateProxyOutput {
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// The name of the proxy.
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// The type of proxy.
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::ProxyType> {
        self.r#type.as_ref()
    }
    /// The version of the proxy software.
    pub fn proxy_version(&self) -> ::std::option::Option<&str> {
        self.proxy_version.as_deref()
    }
    /// The DNS name of the proxy.
    pub fn dns_name(&self) -> ::std::option::Option<&str> {
        self.dns_name.as_deref()
    }
    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
    pub fn role_arn(&self) -> ::std::option::Option<&str> {
        self.role_arn.as_deref()
    }
    /// The network configuration for the proxy.
    pub fn network_configuration(&self) -> ::std::option::Option<&crate::types::ProxyNetworkConfiguration> {
        self.network_configuration.as_ref()
    }
    /// The status of the proxy.
    pub fn status(&self) -> ::std::option::Option<&crate::types::ProxyStatus> {
        self.status.as_ref()
    }
    /// The configuration metadata for the proxy.
    pub fn configuration_metadata(&self) -> ::std::option::Option<&crate::types::ConfigurationMetadata> {
        self.configuration_metadata.as_ref()
    }
    /// The date and time that the proxy was created.
    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_at.as_ref()
    }
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. 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 CreateProxyOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateProxyOutput {
    /// Creates a new builder-style object to manufacture [`CreateProxyOutput`](crate::operation::create_proxy::CreateProxyOutput).
    pub fn builder() -> crate::operation::create_proxy::builders::CreateProxyOutputBuilder {
        crate::operation::create_proxy::builders::CreateProxyOutputBuilder::default()
    }
}

/// A builder for [`CreateProxyOutput`](crate::operation::create_proxy::CreateProxyOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateProxyOutputBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) r#type: ::std::option::Option<crate::types::ProxyType>,
    pub(crate) proxy_version: ::std::option::Option<::std::string::String>,
    pub(crate) dns_name: ::std::option::Option<::std::string::String>,
    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
    pub(crate) network_configuration: ::std::option::Option<crate::types::ProxyNetworkConfiguration>,
    pub(crate) status: ::std::option::Option<crate::types::ProxyStatus>,
    pub(crate) configuration_metadata: ::std::option::Option<crate::types::ConfigurationMetadata>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) customer_kms_key_arn: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateProxyOutputBuilder {
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// The name of the proxy.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// The name of the proxy.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// The name of the proxy.
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// The type of proxy.
    pub fn r#type(mut self, input: crate::types::ProxyType) -> Self {
        self.r#type = ::std::option::Option::Some(input);
        self
    }
    /// The type of proxy.
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::ProxyType>) -> Self {
        self.r#type = input;
        self
    }
    /// The type of proxy.
    pub fn get_type(&self) -> &::std::option::Option<crate::types::ProxyType> {
        &self.r#type
    }
    /// The version of the proxy software.
    pub fn proxy_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.proxy_version = ::std::option::Option::Some(input.into());
        self
    }
    /// The version of the proxy software.
    pub fn set_proxy_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.proxy_version = input;
        self
    }
    /// The version of the proxy software.
    pub fn get_proxy_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.proxy_version
    }
    /// The DNS name of the proxy.
    pub fn dns_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.dns_name = ::std::option::Option::Some(input.into());
        self
    }
    /// The DNS name of the proxy.
    pub fn set_dns_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.dns_name = input;
        self
    }
    /// The DNS name of the proxy.
    pub fn get_dns_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.dns_name
    }
    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.role_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.role_arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.role_arn
    }
    /// The network configuration for the proxy.
    pub fn network_configuration(mut self, input: crate::types::ProxyNetworkConfiguration) -> Self {
        self.network_configuration = ::std::option::Option::Some(input);
        self
    }
    /// The network configuration for the proxy.
    pub fn set_network_configuration(mut self, input: ::std::option::Option<crate::types::ProxyNetworkConfiguration>) -> Self {
        self.network_configuration = input;
        self
    }
    /// The network configuration for the proxy.
    pub fn get_network_configuration(&self) -> &::std::option::Option<crate::types::ProxyNetworkConfiguration> {
        &self.network_configuration
    }
    /// The status of the proxy.
    pub fn status(mut self, input: crate::types::ProxyStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// The status of the proxy.
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ProxyStatus>) -> Self {
        self.status = input;
        self
    }
    /// The status of the proxy.
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ProxyStatus> {
        &self.status
    }
    /// The configuration metadata for the proxy.
    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.
    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.
    pub fn get_configuration_metadata(&self) -> &::std::option::Option<crate::types::ConfigurationMetadata> {
        &self.configuration_metadata
    }
    /// The date and time that the proxy was created.
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// The date and time that the proxy was created.
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// The date and time that the proxy was created.
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. 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. 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. 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 [`CreateProxyOutput`](crate::operation::create_proxy::CreateProxyOutput).
    pub fn build(self) -> crate::operation::create_proxy::CreateProxyOutput {
        crate::operation::create_proxy::CreateProxyOutput {
            arn: self.arn,
            name: self.name,
            r#type: self.r#type,
            proxy_version: self.proxy_version,
            dns_name: self.dns_name,
            role_arn: self.role_arn,
            network_configuration: self.network_configuration,
            status: self.status,
            configuration_metadata: self.configuration_metadata,
            created_at: self.created_at,
            customer_kms_key_arn: self.customer_kms_key_arn,
            _request_id: self._request_id,
        }
    }
}