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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// 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 DeletePartnerInput {
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub account_id: ::std::option::Option<::std::string::String>,
    /// <p>The cluster identifier of the cluster that receives data from the partner.</p>
    pub cluster_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The name of the database that receives data from the partner.</p>
    pub database_name: ::std::option::Option<::std::string::String>,
    /// <p>The name of the partner that is authorized to send data.</p>
    pub partner_name: ::std::option::Option<::std::string::String>,
}
impl DeletePartnerInput {
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub fn account_id(&self) -> ::std::option::Option<&str> {
        self.account_id.as_deref()
    }
    /// <p>The cluster identifier of the cluster that receives data from the partner.</p>
    pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
        self.cluster_identifier.as_deref()
    }
    /// <p>The name of the database that receives data from the partner.</p>
    pub fn database_name(&self) -> ::std::option::Option<&str> {
        self.database_name.as_deref()
    }
    /// <p>The name of the partner that is authorized to send data.</p>
    pub fn partner_name(&self) -> ::std::option::Option<&str> {
        self.partner_name.as_deref()
    }
}
impl DeletePartnerInput {
    /// Creates a new builder-style object to manufacture [`DeletePartnerInput`](crate::operation::delete_partner::DeletePartnerInput).
    pub fn builder() -> crate::operation::delete_partner::builders::DeletePartnerInputBuilder {
        crate::operation::delete_partner::builders::DeletePartnerInputBuilder::default()
    }
}

/// A builder for [`DeletePartnerInput`](crate::operation::delete_partner::DeletePartnerInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeletePartnerInputBuilder {
    pub(crate) account_id: ::std::option::Option<::std::string::String>,
    pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) database_name: ::std::option::Option<::std::string::String>,
    pub(crate) partner_name: ::std::option::Option<::std::string::String>,
}
impl DeletePartnerInputBuilder {
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    /// This field is required.
    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.account_id = input;
        self
    }
    /// <p>The Amazon Web Services account ID that owns the cluster.</p>
    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.account_id
    }
    /// <p>The cluster identifier of the cluster that receives data from the partner.</p>
    /// This field is required.
    pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cluster_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The cluster identifier of the cluster that receives data from the partner.</p>
    pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cluster_identifier = input;
        self
    }
    /// <p>The cluster identifier of the cluster that receives data from the partner.</p>
    pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.cluster_identifier
    }
    /// <p>The name of the database that receives data from the partner.</p>
    /// This field is required.
    pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.database_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the database that receives data from the partner.</p>
    pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.database_name = input;
        self
    }
    /// <p>The name of the database that receives data from the partner.</p>
    pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.database_name
    }
    /// <p>The name of the partner that is authorized to send data.</p>
    /// This field is required.
    pub fn partner_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.partner_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the partner that is authorized to send data.</p>
    pub fn set_partner_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.partner_name = input;
        self
    }
    /// <p>The name of the partner that is authorized to send data.</p>
    pub fn get_partner_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.partner_name
    }
    /// Consumes the builder and constructs a [`DeletePartnerInput`](crate::operation::delete_partner::DeletePartnerInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_partner::DeletePartnerInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_partner::DeletePartnerInput {
            account_id: self.account_id,
            cluster_identifier: self.cluster_identifier,
            database_name: self.database_name,
            partner_name: self.partner_name,
        })
    }
}