aws-sdk-interconnect 1.1.0

AWS SDK for Interconnect
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)]
pub struct DescribeConnectionProposalInput {
    /// <p>An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request.</p>
    pub activation_key: ::std::option::Option<::std::string::String>,
}
impl DescribeConnectionProposalInput {
    /// <p>An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request.</p>
    pub fn activation_key(&self) -> ::std::option::Option<&str> {
        self.activation_key.as_deref()
    }
}
impl ::std::fmt::Debug for DescribeConnectionProposalInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("DescribeConnectionProposalInput");
        formatter.field("activation_key", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl DescribeConnectionProposalInput {
    /// Creates a new builder-style object to manufacture [`DescribeConnectionProposalInput`](crate::operation::describe_connection_proposal::DescribeConnectionProposalInput).
    pub fn builder() -> crate::operation::describe_connection_proposal::builders::DescribeConnectionProposalInputBuilder {
        crate::operation::describe_connection_proposal::builders::DescribeConnectionProposalInputBuilder::default()
    }
}

/// A builder for [`DescribeConnectionProposalInput`](crate::operation::describe_connection_proposal::DescribeConnectionProposalInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct DescribeConnectionProposalInputBuilder {
    pub(crate) activation_key: ::std::option::Option<::std::string::String>,
}
impl DescribeConnectionProposalInputBuilder {
    /// <p>An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request.</p>
    /// This field is required.
    pub fn activation_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.activation_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request.</p>
    pub fn set_activation_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.activation_key = input;
        self
    }
    /// <p>An Activation Key that was generated on a supported partner's portal. This key captures the desired parameters from the initial creation request.</p>
    pub fn get_activation_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.activation_key
    }
    /// Consumes the builder and constructs a [`DescribeConnectionProposalInput`](crate::operation::describe_connection_proposal::DescribeConnectionProposalInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_connection_proposal::DescribeConnectionProposalInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_connection_proposal::DescribeConnectionProposalInput {
            activation_key: self.activation_key,
        })
    }
}
impl ::std::fmt::Debug for DescribeConnectionProposalInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("DescribeConnectionProposalInputBuilder");
        formatter.field("activation_key", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}