aws-sdk-paymentcryptography 1.110.0

AWS SDK for Payment Cryptography Control Plane
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 DisassociateMpaTeamOutput {
    /// <p>The details of the MPA team association.</p>
    pub mpa_team_association: ::std::option::Option<crate::types::MpaTeamAssociation>,
    _request_id: Option<String>,
}
impl DisassociateMpaTeamOutput {
    /// <p>The details of the MPA team association.</p>
    pub fn mpa_team_association(&self) -> ::std::option::Option<&crate::types::MpaTeamAssociation> {
        self.mpa_team_association.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DisassociateMpaTeamOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DisassociateMpaTeamOutput {
    /// Creates a new builder-style object to manufacture [`DisassociateMpaTeamOutput`](crate::operation::disassociate_mpa_team::DisassociateMpaTeamOutput).
    pub fn builder() -> crate::operation::disassociate_mpa_team::builders::DisassociateMpaTeamOutputBuilder {
        crate::operation::disassociate_mpa_team::builders::DisassociateMpaTeamOutputBuilder::default()
    }
}

/// A builder for [`DisassociateMpaTeamOutput`](crate::operation::disassociate_mpa_team::DisassociateMpaTeamOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateMpaTeamOutputBuilder {
    pub(crate) mpa_team_association: ::std::option::Option<crate::types::MpaTeamAssociation>,
    _request_id: Option<String>,
}
impl DisassociateMpaTeamOutputBuilder {
    /// <p>The details of the MPA team association.</p>
    /// This field is required.
    pub fn mpa_team_association(mut self, input: crate::types::MpaTeamAssociation) -> Self {
        self.mpa_team_association = ::std::option::Option::Some(input);
        self
    }
    /// <p>The details of the MPA team association.</p>
    pub fn set_mpa_team_association(mut self, input: ::std::option::Option<crate::types::MpaTeamAssociation>) -> Self {
        self.mpa_team_association = input;
        self
    }
    /// <p>The details of the MPA team association.</p>
    pub fn get_mpa_team_association(&self) -> &::std::option::Option<crate::types::MpaTeamAssociation> {
        &self.mpa_team_association
    }
    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 [`DisassociateMpaTeamOutput`](crate::operation::disassociate_mpa_team::DisassociateMpaTeamOutput).
    pub fn build(self) -> crate::operation::disassociate_mpa_team::DisassociateMpaTeamOutput {
        crate::operation::disassociate_mpa_team::DisassociateMpaTeamOutput {
            mpa_team_association: self.mpa_team_association,
            _request_id: self._request_id,
        }
    }
}