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
122
// 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 RegisterRdsDbInstanceInput {
    /// <p>The stack ID.</p>
    pub stack_id: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon RDS instance's ARN.</p>
    pub rds_db_instance_arn: ::std::option::Option<::std::string::String>,
    /// <p>The database's master user name.</p>
    pub db_user: ::std::option::Option<::std::string::String>,
    /// <p>The database password.</p>
    pub db_password: ::std::option::Option<::std::string::String>,
}
impl RegisterRdsDbInstanceInput {
    /// <p>The stack ID.</p>
    pub fn stack_id(&self) -> ::std::option::Option<&str> {
        self.stack_id.as_deref()
    }
    /// <p>The Amazon RDS instance's ARN.</p>
    pub fn rds_db_instance_arn(&self) -> ::std::option::Option<&str> {
        self.rds_db_instance_arn.as_deref()
    }
    /// <p>The database's master user name.</p>
    pub fn db_user(&self) -> ::std::option::Option<&str> {
        self.db_user.as_deref()
    }
    /// <p>The database password.</p>
    pub fn db_password(&self) -> ::std::option::Option<&str> {
        self.db_password.as_deref()
    }
}
impl RegisterRdsDbInstanceInput {
    /// Creates a new builder-style object to manufacture [`RegisterRdsDbInstanceInput`](crate::operation::register_rds_db_instance::RegisterRdsDbInstanceInput).
    pub fn builder() -> crate::operation::register_rds_db_instance::builders::RegisterRdsDbInstanceInputBuilder {
        crate::operation::register_rds_db_instance::builders::RegisterRdsDbInstanceInputBuilder::default()
    }
}

/// A builder for [`RegisterRdsDbInstanceInput`](crate::operation::register_rds_db_instance::RegisterRdsDbInstanceInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RegisterRdsDbInstanceInputBuilder {
    pub(crate) stack_id: ::std::option::Option<::std::string::String>,
    pub(crate) rds_db_instance_arn: ::std::option::Option<::std::string::String>,
    pub(crate) db_user: ::std::option::Option<::std::string::String>,
    pub(crate) db_password: ::std::option::Option<::std::string::String>,
}
impl RegisterRdsDbInstanceInputBuilder {
    /// <p>The stack ID.</p>
    /// This field is required.
    pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stack_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The stack ID.</p>
    pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stack_id = input;
        self
    }
    /// <p>The stack ID.</p>
    pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.stack_id
    }
    /// <p>The Amazon RDS instance's ARN.</p>
    /// This field is required.
    pub fn rds_db_instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.rds_db_instance_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon RDS instance's ARN.</p>
    pub fn set_rds_db_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.rds_db_instance_arn = input;
        self
    }
    /// <p>The Amazon RDS instance's ARN.</p>
    pub fn get_rds_db_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.rds_db_instance_arn
    }
    /// <p>The database's master user name.</p>
    /// This field is required.
    pub fn db_user(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.db_user = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The database's master user name.</p>
    pub fn set_db_user(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.db_user = input;
        self
    }
    /// <p>The database's master user name.</p>
    pub fn get_db_user(&self) -> &::std::option::Option<::std::string::String> {
        &self.db_user
    }
    /// <p>The database password.</p>
    /// This field is required.
    pub fn db_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.db_password = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The database password.</p>
    pub fn set_db_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.db_password = input;
        self
    }
    /// <p>The database password.</p>
    pub fn get_db_password(&self) -> &::std::option::Option<::std::string::String> {
        &self.db_password
    }
    /// Consumes the builder and constructs a [`RegisterRdsDbInstanceInput`](crate::operation::register_rds_db_instance::RegisterRdsDbInstanceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::register_rds_db_instance::RegisterRdsDbInstanceInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::register_rds_db_instance::RegisterRdsDbInstanceInput {
            stack_id: self.stack_id,
            rds_db_instance_arn: self.rds_db_instance_arn,
            db_user: self.db_user,
            db_password: self.db_password,
        })
    }
}