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 GetProxyUpdateInput {
    /// The Amazon Resource Name (ARN) of the proxy.
    pub proxy_identifier: ::std::option::Option<::std::string::String>,
    /// The ID of the update.
    pub update_identifier: ::std::option::Option<::std::string::String>,
}
impl GetProxyUpdateInput {
    /// The Amazon Resource Name (ARN) of the proxy.
    pub fn proxy_identifier(&self) -> ::std::option::Option<&str> {
        self.proxy_identifier.as_deref()
    }
    /// The ID of the update.
    pub fn update_identifier(&self) -> ::std::option::Option<&str> {
        self.update_identifier.as_deref()
    }
}
impl GetProxyUpdateInput {
    /// Creates a new builder-style object to manufacture [`GetProxyUpdateInput`](crate::operation::get_proxy_update::GetProxyUpdateInput).
    pub fn builder() -> crate::operation::get_proxy_update::builders::GetProxyUpdateInputBuilder {
        crate::operation::get_proxy_update::builders::GetProxyUpdateInputBuilder::default()
    }
}

/// A builder for [`GetProxyUpdateInput`](crate::operation::get_proxy_update::GetProxyUpdateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetProxyUpdateInputBuilder {
    pub(crate) proxy_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) update_identifier: ::std::option::Option<::std::string::String>,
}
impl GetProxyUpdateInputBuilder {
    /// 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 ID of the update.
    /// This field is required.
    pub fn update_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.update_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// The ID of the update.
    pub fn set_update_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.update_identifier = input;
        self
    }
    /// The ID of the update.
    pub fn get_update_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.update_identifier
    }
    /// Consumes the builder and constructs a [`GetProxyUpdateInput`](crate::operation::get_proxy_update::GetProxyUpdateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_proxy_update::GetProxyUpdateInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_proxy_update::GetProxyUpdateInput {
            proxy_identifier: self.proxy_identifier,
            update_identifier: self.update_identifier,
        })
    }
}