1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// 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()
}
}