aws-sdk-paymentcryptography 1.109.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 AssociateMpaTeamInput {
    /// <p>The protected operation to associate with 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 ARN of the MPA team to associate with the protected operation.</p>
    pub mpa_team_arn: ::std::option::Option<::std::string::String>,
    /// <p>The comment from the requester explaining the reason for the association.</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 AssociateMpaTeamInput {
    /// <p>The protected operation to associate with 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 ARN of the MPA team to associate with the protected operation.</p>
    pub fn mpa_team_arn(&self) -> ::std::option::Option<&str> {
        self.mpa_team_arn.as_deref()
    }
    /// <p>The comment from the requester explaining the reason for the association.</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 AssociateMpaTeamInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("AssociateMpaTeamInput");
        formatter.field("action", &self.action);
        formatter.field("mpa_team_arn", &self.mpa_team_arn);
        formatter.field("requester_comment", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}
impl AssociateMpaTeamInput {
    /// Creates a new builder-style object to manufacture [`AssociateMpaTeamInput`](crate::operation::associate_mpa_team::AssociateMpaTeamInput).
    pub fn builder() -> crate::operation::associate_mpa_team::builders::AssociateMpaTeamInputBuilder {
        crate::operation::associate_mpa_team::builders::AssociateMpaTeamInputBuilder::default()
    }
}

/// A builder for [`AssociateMpaTeamInput`](crate::operation::associate_mpa_team::AssociateMpaTeamInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct AssociateMpaTeamInputBuilder {
    pub(crate) action: ::std::option::Option<crate::types::MpaOperation>,
    pub(crate) mpa_team_arn: ::std::option::Option<::std::string::String>,
    pub(crate) requester_comment: ::std::option::Option<::std::string::String>,
}
impl AssociateMpaTeamInputBuilder {
    /// <p>The protected operation to associate with 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 associate with 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 associate with 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 ARN of the MPA team to associate with the protected operation.</p>
    /// This field is required.
    pub fn mpa_team_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.mpa_team_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the MPA team to associate with the protected operation.</p>
    pub fn set_mpa_team_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.mpa_team_arn = input;
        self
    }
    /// <p>The ARN of the MPA team to associate with the protected operation.</p>
    pub fn get_mpa_team_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.mpa_team_arn
    }
    /// <p>The comment from the requester explaining the reason for the association.</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 association.</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 association.</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 [`AssociateMpaTeamInput`](crate::operation::associate_mpa_team::AssociateMpaTeamInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::associate_mpa_team::AssociateMpaTeamInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::associate_mpa_team::AssociateMpaTeamInput {
            action: self.action,
            mpa_team_arn: self.mpa_team_arn,
            requester_comment: self.requester_comment,
        })
    }
}
impl ::std::fmt::Debug for AssociateMpaTeamInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("AssociateMpaTeamInputBuilder");
        formatter.field("action", &self.action);
        formatter.field("mpa_team_arn", &self.mpa_team_arn);
        formatter.field("requester_comment", &"*** Sensitive Data Redacted ***");
        formatter.finish()
    }
}