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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes the parameters of a database.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RelationalDatabaseParameter {
    /// <p>Specifies the valid range of values for the parameter.</p>
    pub allowed_values: ::std::option::Option<::std::string::String>,
    /// <p>Indicates when parameter updates are applied.</p>
    /// <p>Can be <code>immediate</code> or <code>pending-reboot</code>.</p>
    pub apply_method: ::std::option::Option<::std::string::String>,
    /// <p>Specifies the engine-specific parameter type.</p>
    pub apply_type: ::std::option::Option<::std::string::String>,
    /// <p>Specifies the valid data type for the parameter.</p>
    pub data_type: ::std::option::Option<::std::string::String>,
    /// <p>Provides a description of the parameter.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>A Boolean value indicating whether the parameter can be modified.</p>
    pub is_modifiable: ::std::option::Option<bool>,
    /// <p>Specifies the name of the parameter.</p>
    pub parameter_name: ::std::option::Option<::std::string::String>,
    /// <p>Specifies the value of the parameter.</p>
    pub parameter_value: ::std::option::Option<::std::string::String>,
}
impl RelationalDatabaseParameter {
    /// <p>Specifies the valid range of values for the parameter.</p>
    pub fn allowed_values(&self) -> ::std::option::Option<&str> {
        self.allowed_values.as_deref()
    }
    /// <p>Indicates when parameter updates are applied.</p>
    /// <p>Can be <code>immediate</code> or <code>pending-reboot</code>.</p>
    pub fn apply_method(&self) -> ::std::option::Option<&str> {
        self.apply_method.as_deref()
    }
    /// <p>Specifies the engine-specific parameter type.</p>
    pub fn apply_type(&self) -> ::std::option::Option<&str> {
        self.apply_type.as_deref()
    }
    /// <p>Specifies the valid data type for the parameter.</p>
    pub fn data_type(&self) -> ::std::option::Option<&str> {
        self.data_type.as_deref()
    }
    /// <p>Provides a description of the parameter.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>A Boolean value indicating whether the parameter can be modified.</p>
    pub fn is_modifiable(&self) -> ::std::option::Option<bool> {
        self.is_modifiable
    }
    /// <p>Specifies the name of the parameter.</p>
    pub fn parameter_name(&self) -> ::std::option::Option<&str> {
        self.parameter_name.as_deref()
    }
    /// <p>Specifies the value of the parameter.</p>
    pub fn parameter_value(&self) -> ::std::option::Option<&str> {
        self.parameter_value.as_deref()
    }
}
impl RelationalDatabaseParameter {
    /// Creates a new builder-style object to manufacture [`RelationalDatabaseParameter`](crate::types::RelationalDatabaseParameter).
    pub fn builder() -> crate::types::builders::RelationalDatabaseParameterBuilder {
        crate::types::builders::RelationalDatabaseParameterBuilder::default()
    }
}

/// A builder for [`RelationalDatabaseParameter`](crate::types::RelationalDatabaseParameter).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RelationalDatabaseParameterBuilder {
    pub(crate) allowed_values: ::std::option::Option<::std::string::String>,
    pub(crate) apply_method: ::std::option::Option<::std::string::String>,
    pub(crate) apply_type: ::std::option::Option<::std::string::String>,
    pub(crate) data_type: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) is_modifiable: ::std::option::Option<bool>,
    pub(crate) parameter_name: ::std::option::Option<::std::string::String>,
    pub(crate) parameter_value: ::std::option::Option<::std::string::String>,
}
impl RelationalDatabaseParameterBuilder {
    /// <p>Specifies the valid range of values for the parameter.</p>
    pub fn allowed_values(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.allowed_values = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the valid range of values for the parameter.</p>
    pub fn set_allowed_values(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.allowed_values = input;
        self
    }
    /// <p>Specifies the valid range of values for the parameter.</p>
    pub fn get_allowed_values(&self) -> &::std::option::Option<::std::string::String> {
        &self.allowed_values
    }
    /// <p>Indicates when parameter updates are applied.</p>
    /// <p>Can be <code>immediate</code> or <code>pending-reboot</code>.</p>
    pub fn apply_method(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.apply_method = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Indicates when parameter updates are applied.</p>
    /// <p>Can be <code>immediate</code> or <code>pending-reboot</code>.</p>
    pub fn set_apply_method(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.apply_method = input;
        self
    }
    /// <p>Indicates when parameter updates are applied.</p>
    /// <p>Can be <code>immediate</code> or <code>pending-reboot</code>.</p>
    pub fn get_apply_method(&self) -> &::std::option::Option<::std::string::String> {
        &self.apply_method
    }
    /// <p>Specifies the engine-specific parameter type.</p>
    pub fn apply_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.apply_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the engine-specific parameter type.</p>
    pub fn set_apply_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.apply_type = input;
        self
    }
    /// <p>Specifies the engine-specific parameter type.</p>
    pub fn get_apply_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.apply_type
    }
    /// <p>Specifies the valid data type for the parameter.</p>
    pub fn data_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.data_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the valid data type for the parameter.</p>
    pub fn set_data_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_type = input;
        self
    }
    /// <p>Specifies the valid data type for the parameter.</p>
    pub fn get_data_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_type
    }
    /// <p>Provides a description of the parameter.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Provides a description of the parameter.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>Provides a description of the parameter.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>A Boolean value indicating whether the parameter can be modified.</p>
    pub fn is_modifiable(mut self, input: bool) -> Self {
        self.is_modifiable = ::std::option::Option::Some(input);
        self
    }
    /// <p>A Boolean value indicating whether the parameter can be modified.</p>
    pub fn set_is_modifiable(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_modifiable = input;
        self
    }
    /// <p>A Boolean value indicating whether the parameter can be modified.</p>
    pub fn get_is_modifiable(&self) -> &::std::option::Option<bool> {
        &self.is_modifiable
    }
    /// <p>Specifies the name of the parameter.</p>
    pub fn parameter_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.parameter_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the name of the parameter.</p>
    pub fn set_parameter_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.parameter_name = input;
        self
    }
    /// <p>Specifies the name of the parameter.</p>
    pub fn get_parameter_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.parameter_name
    }
    /// <p>Specifies the value of the parameter.</p>
    pub fn parameter_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.parameter_value = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the value of the parameter.</p>
    pub fn set_parameter_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.parameter_value = input;
        self
    }
    /// <p>Specifies the value of the parameter.</p>
    pub fn get_parameter_value(&self) -> &::std::option::Option<::std::string::String> {
        &self.parameter_value
    }
    /// Consumes the builder and constructs a [`RelationalDatabaseParameter`](crate::types::RelationalDatabaseParameter).
    pub fn build(self) -> crate::types::RelationalDatabaseParameter {
        crate::types::RelationalDatabaseParameter {
            allowed_values: self.allowed_values,
            apply_method: self.apply_method,
            apply_type: self.apply_type,
            data_type: self.data_type,
            description: self.description,
            is_modifiable: self.is_modifiable,
            parameter_name: self.parameter_name,
            parameter_value: self.parameter_value,
        }
    }
}