aws-sdk-iotmanagedintegrations 1.42.0

AWS SDK for Managed integrations for AWS IoT Device Management
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 DeleteAccountAssociationInput {
    /// <p>The unique identifier of the account association to be deleted.</p>
    pub account_association_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAccountAssociationInput {
    /// <p>The unique identifier of the account association to be deleted.</p>
    pub fn account_association_id(&self) -> ::std::option::Option<&str> {
        self.account_association_id.as_deref()
    }
}
impl DeleteAccountAssociationInput {
    /// Creates a new builder-style object to manufacture [`DeleteAccountAssociationInput`](crate::operation::delete_account_association::DeleteAccountAssociationInput).
    pub fn builder() -> crate::operation::delete_account_association::builders::DeleteAccountAssociationInputBuilder {
        crate::operation::delete_account_association::builders::DeleteAccountAssociationInputBuilder::default()
    }
}

/// A builder for [`DeleteAccountAssociationInput`](crate::operation::delete_account_association::DeleteAccountAssociationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAccountAssociationInputBuilder {
    pub(crate) account_association_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAccountAssociationInputBuilder {
    /// <p>The unique identifier of the account association to be deleted.</p>
    /// This field is required.
    pub fn account_association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.account_association_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the account association to be deleted.</p>
    pub fn set_account_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.account_association_id = input;
        self
    }
    /// <p>The unique identifier of the account association to be deleted.</p>
    pub fn get_account_association_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.account_association_id
    }
    /// Consumes the builder and constructs a [`DeleteAccountAssociationInput`](crate::operation::delete_account_association::DeleteAccountAssociationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_account_association::DeleteAccountAssociationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_account_association::DeleteAccountAssociationInput {
            account_association_id: self.account_association_id,
        })
    }
}