aws-sdk-paymentcryptography 1.112.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)]
pub struct DisassociateMpaTeamInput {
    /// <p>The protected operation to disassociate from the MPA team. Currently, the only supported value is <code>IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE</code>.</p>
    pub action: ::std::option::Option<crate::types::MpaOperation>,
    /// <p>The comment from the requester explaining the reason for the disassociation.</p><important>
    /// <p>Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
    /// </important>
    pub requester_comment: ::std::option::Option<::std::string::String>,
}
impl DisassociateMpaTeamInput {
    /// <p>The protected operation to disassociate from the MPA team. Currently, the only supported value is <code>IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE</code>.</p>
    pub fn action(&self) -> ::std::option::Option<&crate::types::MpaOperation> {
        self.action.as_ref()
    }
    /// <p>The comment from the requester explaining the reason for the disassociation.</p><important>
    /// <p>Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
    /// </important>
    pub fn requester_comment(&self) -> ::std::option::Option<&str> {
        self.requester_comment.as_deref()
    }
}
impl ::std::fmt::Debug for DisassociateMpaTeamInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("DisassociateMpaTeamInput");
        formatter.field("action", &self.action);
        formatter.field("requester_comment", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl DisassociateMpaTeamInput {
    /// Creates a new builder-style object to manufacture [`DisassociateMpaTeamInput`](crate::operation::disassociate_mpa_team::DisassociateMpaTeamInput).
    pub fn builder() -> crate::operation::disassociate_mpa_team::builders::DisassociateMpaTeamInputBuilder {
        crate::operation::disassociate_mpa_team::builders::DisassociateMpaTeamInputBuilder::default()
    }
}

/// A builder for [`DisassociateMpaTeamInput`](crate::operation::disassociate_mpa_team::DisassociateMpaTeamInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct DisassociateMpaTeamInputBuilder {
    pub(crate) action: ::std::option::Option<crate::types::MpaOperation>,
    pub(crate) requester_comment: ::std::option::Option<::std::string::String>,
}
impl DisassociateMpaTeamInputBuilder {
    /// <p>The protected operation to disassociate from the MPA team. Currently, the only supported value is <code>IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE</code>.</p>
    /// This field is required.
    pub fn action(mut self, input: crate::types::MpaOperation) -> Self {
        self.action = ::std::option::Option::Some(input);
        self
    }
    /// <p>The protected operation to disassociate from the MPA team. Currently, the only supported value is <code>IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE</code>.</p>
    pub fn set_action(mut self, input: ::std::option::Option<crate::types::MpaOperation>) -> Self {
        self.action = input;
        self
    }
    /// <p>The protected operation to disassociate from the MPA team. Currently, the only supported value is <code>IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE</code>.</p>
    pub fn get_action(&self) -> &::std::option::Option<crate::types::MpaOperation> {
        &self.action
    }
    /// <p>The comment from the requester explaining the reason for the disassociation.</p><important>
    /// <p>Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
    /// </important>
    pub fn requester_comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.requester_comment = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The comment from the requester explaining the reason for the disassociation.</p><important>
    /// <p>Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
    /// </important>
    pub fn set_requester_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.requester_comment = input;
        self
    }
    /// <p>The comment from the requester explaining the reason for the disassociation.</p><important>
    /// <p>Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.</p>
    /// </important>
    pub fn get_requester_comment(&self) -> &::std::option::Option<::std::string::String> {
        &self.requester_comment
    }
    /// Consumes the builder and constructs a [`DisassociateMpaTeamInput`](crate::operation::disassociate_mpa_team::DisassociateMpaTeamInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::disassociate_mpa_team::DisassociateMpaTeamInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::disassociate_mpa_team::DisassociateMpaTeamInput {
            action: self.action,
            requester_comment: self.requester_comment,
        })
    }
}
impl ::std::fmt::Debug for DisassociateMpaTeamInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("DisassociateMpaTeamInputBuilder");
        formatter.field("action", &self.action);
        formatter.field("requester_comment", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}