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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The input for the TransferCertificate operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TransferCertificateInput {
    /// <p>The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)</p>
    pub certificate_id: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Web Services account.</p>
    pub target_aws_account: ::std::option::Option<::std::string::String>,
    /// <p>The transfer message.</p>
    pub transfer_message: ::std::option::Option<::std::string::String>,
}
impl TransferCertificateInput {
    /// <p>The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)</p>
    pub fn certificate_id(&self) -> ::std::option::Option<&str> {
        self.certificate_id.as_deref()
    }
    /// <p>The Amazon Web Services account.</p>
    pub fn target_aws_account(&self) -> ::std::option::Option<&str> {
        self.target_aws_account.as_deref()
    }
    /// <p>The transfer message.</p>
    pub fn transfer_message(&self) -> ::std::option::Option<&str> {
        self.transfer_message.as_deref()
    }
}
impl TransferCertificateInput {
    /// Creates a new builder-style object to manufacture [`TransferCertificateInput`](crate::operation::transfer_certificate::TransferCertificateInput).
    pub fn builder() -> crate::operation::transfer_certificate::builders::TransferCertificateInputBuilder {
        crate::operation::transfer_certificate::builders::TransferCertificateInputBuilder::default()
    }
}

/// A builder for [`TransferCertificateInput`](crate::operation::transfer_certificate::TransferCertificateInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct TransferCertificateInputBuilder {
    pub(crate) certificate_id: ::std::option::Option<::std::string::String>,
    pub(crate) target_aws_account: ::std::option::Option<::std::string::String>,
    pub(crate) transfer_message: ::std::option::Option<::std::string::String>,
}
impl TransferCertificateInputBuilder {
    /// <p>The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)</p>
    /// This field is required.
    pub fn certificate_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.certificate_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)</p>
    pub fn set_certificate_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.certificate_id = input;
        self
    }
    /// <p>The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)</p>
    pub fn get_certificate_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.certificate_id
    }
    /// <p>The Amazon Web Services account.</p>
    /// This field is required.
    pub fn target_aws_account(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.target_aws_account = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Web Services account.</p>
    pub fn set_target_aws_account(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.target_aws_account = input;
        self
    }
    /// <p>The Amazon Web Services account.</p>
    pub fn get_target_aws_account(&self) -> &::std::option::Option<::std::string::String> {
        &self.target_aws_account
    }
    /// <p>The transfer message.</p>
    pub fn transfer_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.transfer_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The transfer message.</p>
    pub fn set_transfer_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.transfer_message = input;
        self
    }
    /// <p>The transfer message.</p>
    pub fn get_transfer_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.transfer_message
    }
    /// Consumes the builder and constructs a [`TransferCertificateInput`](crate::operation::transfer_certificate::TransferCertificateInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::transfer_certificate::TransferCertificateInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::transfer_certificate::TransferCertificateInput {
            certificate_id: self.certificate_id,
            target_aws_account: self.target_aws_account,
            transfer_message: self.transfer_message,
        })
    }
}