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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Changes to a DB instance that are currently pending.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AwsRdsDbPendingModifiedValues {
    /// <p>The new DB instance class for the DB instance.</p>
    pub db_instance_class: ::std::option::Option<::std::string::String>,
    /// <p>The new value of the allocated storage for the DB instance.</p>
    pub allocated_storage: ::std::option::Option<i32>,
    /// <p>The new master user password for the DB instance.</p>
    pub master_user_password: ::std::option::Option<::std::string::String>,
    /// <p>The new port for the DB instance.</p>
    pub port: ::std::option::Option<i32>,
    /// <p>The new backup retention period for the DB instance.</p>
    pub backup_retention_period: ::std::option::Option<i32>,
    /// <p>Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment.</p>
    pub multi_az: ::std::option::Option<bool>,
    /// <p>The new engine version for the DB instance.</p>
    pub engine_version: ::std::option::Option<::std::string::String>,
    /// <p>The new license model value for the DB instance.</p>
    pub license_model: ::std::option::Option<::std::string::String>,
    /// <p>The new provisioned IOPS value for the DB instance.</p>
    pub iops: ::std::option::Option<i32>,
    /// <p>The new DB instance identifier for the DB instance.</p>
    pub db_instance_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The new storage type for the DB instance.</p>
    pub storage_type: ::std::option::Option<::std::string::String>,
    /// <p>The new CA certificate identifier for the DB instance.</p>
    pub ca_certificate_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The name of the new subnet group for the DB instance.</p>
    pub db_subnet_group_name: ::std::option::Option<::std::string::String>,
    /// <p>A list of log types that are being enabled or disabled.</p>
    pub pending_cloud_watch_logs_exports: ::std::option::Option<crate::types::AwsRdsPendingCloudWatchLogsExports>,
    /// <p>Processor features that are being updated.</p>
    pub processor_features: ::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbProcessorFeature>>,
}
impl AwsRdsDbPendingModifiedValues {
    /// <p>The new DB instance class for the DB instance.</p>
    pub fn db_instance_class(&self) -> ::std::option::Option<&str> {
        self.db_instance_class.as_deref()
    }
    /// <p>The new value of the allocated storage for the DB instance.</p>
    pub fn allocated_storage(&self) -> ::std::option::Option<i32> {
        self.allocated_storage
    }
    /// <p>The new master user password for the DB instance.</p>
    pub fn master_user_password(&self) -> ::std::option::Option<&str> {
        self.master_user_password.as_deref()
    }
    /// <p>The new port for the DB instance.</p>
    pub fn port(&self) -> ::std::option::Option<i32> {
        self.port
    }
    /// <p>The new backup retention period for the DB instance.</p>
    pub fn backup_retention_period(&self) -> ::std::option::Option<i32> {
        self.backup_retention_period
    }
    /// <p>Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment.</p>
    pub fn multi_az(&self) -> ::std::option::Option<bool> {
        self.multi_az
    }
    /// <p>The new engine version for the DB instance.</p>
    pub fn engine_version(&self) -> ::std::option::Option<&str> {
        self.engine_version.as_deref()
    }
    /// <p>The new license model value for the DB instance.</p>
    pub fn license_model(&self) -> ::std::option::Option<&str> {
        self.license_model.as_deref()
    }
    /// <p>The new provisioned IOPS value for the DB instance.</p>
    pub fn iops(&self) -> ::std::option::Option<i32> {
        self.iops
    }
    /// <p>The new DB instance identifier for the DB instance.</p>
    pub fn db_instance_identifier(&self) -> ::std::option::Option<&str> {
        self.db_instance_identifier.as_deref()
    }
    /// <p>The new storage type for the DB instance.</p>
    pub fn storage_type(&self) -> ::std::option::Option<&str> {
        self.storage_type.as_deref()
    }
    /// <p>The new CA certificate identifier for the DB instance.</p>
    pub fn ca_certificate_identifier(&self) -> ::std::option::Option<&str> {
        self.ca_certificate_identifier.as_deref()
    }
    /// <p>The name of the new subnet group for the DB instance.</p>
    pub fn db_subnet_group_name(&self) -> ::std::option::Option<&str> {
        self.db_subnet_group_name.as_deref()
    }
    /// <p>A list of log types that are being enabled or disabled.</p>
    pub fn pending_cloud_watch_logs_exports(&self) -> ::std::option::Option<&crate::types::AwsRdsPendingCloudWatchLogsExports> {
        self.pending_cloud_watch_logs_exports.as_ref()
    }
    /// <p>Processor features that are being updated.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.processor_features.is_none()`.
    pub fn processor_features(&self) -> &[crate::types::AwsRdsDbProcessorFeature] {
        self.processor_features.as_deref().unwrap_or_default()
    }
}
impl AwsRdsDbPendingModifiedValues {
    /// Creates a new builder-style object to manufacture [`AwsRdsDbPendingModifiedValues`](crate::types::AwsRdsDbPendingModifiedValues).
    pub fn builder() -> crate::types::builders::AwsRdsDbPendingModifiedValuesBuilder {
        crate::types::builders::AwsRdsDbPendingModifiedValuesBuilder::default()
    }
}

/// A builder for [`AwsRdsDbPendingModifiedValues`](crate::types::AwsRdsDbPendingModifiedValues).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AwsRdsDbPendingModifiedValuesBuilder {
    pub(crate) db_instance_class: ::std::option::Option<::std::string::String>,
    pub(crate) allocated_storage: ::std::option::Option<i32>,
    pub(crate) master_user_password: ::std::option::Option<::std::string::String>,
    pub(crate) port: ::std::option::Option<i32>,
    pub(crate) backup_retention_period: ::std::option::Option<i32>,
    pub(crate) multi_az: ::std::option::Option<bool>,
    pub(crate) engine_version: ::std::option::Option<::std::string::String>,
    pub(crate) license_model: ::std::option::Option<::std::string::String>,
    pub(crate) iops: ::std::option::Option<i32>,
    pub(crate) db_instance_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) storage_type: ::std::option::Option<::std::string::String>,
    pub(crate) ca_certificate_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) db_subnet_group_name: ::std::option::Option<::std::string::String>,
    pub(crate) pending_cloud_watch_logs_exports: ::std::option::Option<crate::types::AwsRdsPendingCloudWatchLogsExports>,
    pub(crate) processor_features: ::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbProcessorFeature>>,
}
impl AwsRdsDbPendingModifiedValuesBuilder {
    /// <p>The new DB instance class for the DB instance.</p>
    pub fn db_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.db_instance_class = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new DB instance class for the DB instance.</p>
    pub fn set_db_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.db_instance_class = input;
        self
    }
    /// <p>The new DB instance class for the DB instance.</p>
    pub fn get_db_instance_class(&self) -> &::std::option::Option<::std::string::String> {
        &self.db_instance_class
    }
    /// <p>The new value of the allocated storage for the DB instance.</p>
    pub fn allocated_storage(mut self, input: i32) -> Self {
        self.allocated_storage = ::std::option::Option::Some(input);
        self
    }
    /// <p>The new value of the allocated storage for the DB instance.</p>
    pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
        self.allocated_storage = input;
        self
    }
    /// <p>The new value of the allocated storage for the DB instance.</p>
    pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
        &self.allocated_storage
    }
    /// <p>The new master user password for the DB instance.</p>
    pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.master_user_password = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new master user password for the DB instance.</p>
    pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.master_user_password = input;
        self
    }
    /// <p>The new master user password for the DB instance.</p>
    pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
        &self.master_user_password
    }
    /// <p>The new port for the DB instance.</p>
    pub fn port(mut self, input: i32) -> Self {
        self.port = ::std::option::Option::Some(input);
        self
    }
    /// <p>The new port for the DB instance.</p>
    pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
        self.port = input;
        self
    }
    /// <p>The new port for the DB instance.</p>
    pub fn get_port(&self) -> &::std::option::Option<i32> {
        &self.port
    }
    /// <p>The new backup retention period for the DB instance.</p>
    pub fn backup_retention_period(mut self, input: i32) -> Self {
        self.backup_retention_period = ::std::option::Option::Some(input);
        self
    }
    /// <p>The new backup retention period for the DB instance.</p>
    pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
        self.backup_retention_period = input;
        self
    }
    /// <p>The new backup retention period for the DB instance.</p>
    pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
        &self.backup_retention_period
    }
    /// <p>Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment.</p>
    pub fn multi_az(mut self, input: bool) -> Self {
        self.multi_az = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment.</p>
    pub fn set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
        self.multi_az = input;
        self
    }
    /// <p>Indicates that a single Availability Zone DB instance is changing to a multiple Availability Zone deployment.</p>
    pub fn get_multi_az(&self) -> &::std::option::Option<bool> {
        &self.multi_az
    }
    /// <p>The new engine version for the DB instance.</p>
    pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.engine_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new engine version for the DB instance.</p>
    pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.engine_version = input;
        self
    }
    /// <p>The new engine version for the DB instance.</p>
    pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.engine_version
    }
    /// <p>The new license model value for the DB instance.</p>
    pub fn license_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.license_model = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new license model value for the DB instance.</p>
    pub fn set_license_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.license_model = input;
        self
    }
    /// <p>The new license model value for the DB instance.</p>
    pub fn get_license_model(&self) -> &::std::option::Option<::std::string::String> {
        &self.license_model
    }
    /// <p>The new provisioned IOPS value for the DB instance.</p>
    pub fn iops(mut self, input: i32) -> Self {
        self.iops = ::std::option::Option::Some(input);
        self
    }
    /// <p>The new provisioned IOPS value for the DB instance.</p>
    pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
        self.iops = input;
        self
    }
    /// <p>The new provisioned IOPS value for the DB instance.</p>
    pub fn get_iops(&self) -> &::std::option::Option<i32> {
        &self.iops
    }
    /// <p>The new DB instance identifier for the DB instance.</p>
    pub fn db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.db_instance_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new DB instance identifier for the DB instance.</p>
    pub fn set_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.db_instance_identifier = input;
        self
    }
    /// <p>The new DB instance identifier for the DB instance.</p>
    pub fn get_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.db_instance_identifier
    }
    /// <p>The new storage type for the DB instance.</p>
    pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.storage_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new storage type for the DB instance.</p>
    pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.storage_type = input;
        self
    }
    /// <p>The new storage type for the DB instance.</p>
    pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.storage_type
    }
    /// <p>The new CA certificate identifier for the DB instance.</p>
    pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ca_certificate_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new CA certificate identifier for the DB instance.</p>
    pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ca_certificate_identifier = input;
        self
    }
    /// <p>The new CA certificate identifier for the DB instance.</p>
    pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.ca_certificate_identifier
    }
    /// <p>The name of the new subnet group for the DB instance.</p>
    pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.db_subnet_group_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the new subnet group for the DB instance.</p>
    pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.db_subnet_group_name = input;
        self
    }
    /// <p>The name of the new subnet group for the DB instance.</p>
    pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.db_subnet_group_name
    }
    /// <p>A list of log types that are being enabled or disabled.</p>
    pub fn pending_cloud_watch_logs_exports(mut self, input: crate::types::AwsRdsPendingCloudWatchLogsExports) -> Self {
        self.pending_cloud_watch_logs_exports = ::std::option::Option::Some(input);
        self
    }
    /// <p>A list of log types that are being enabled or disabled.</p>
    pub fn set_pending_cloud_watch_logs_exports(mut self, input: ::std::option::Option<crate::types::AwsRdsPendingCloudWatchLogsExports>) -> Self {
        self.pending_cloud_watch_logs_exports = input;
        self
    }
    /// <p>A list of log types that are being enabled or disabled.</p>
    pub fn get_pending_cloud_watch_logs_exports(&self) -> &::std::option::Option<crate::types::AwsRdsPendingCloudWatchLogsExports> {
        &self.pending_cloud_watch_logs_exports
    }
    /// Appends an item to `processor_features`.
    ///
    /// To override the contents of this collection use [`set_processor_features`](Self::set_processor_features).
    ///
    /// <p>Processor features that are being updated.</p>
    pub fn processor_features(mut self, input: crate::types::AwsRdsDbProcessorFeature) -> Self {
        let mut v = self.processor_features.unwrap_or_default();
        v.push(input);
        self.processor_features = ::std::option::Option::Some(v);
        self
    }
    /// <p>Processor features that are being updated.</p>
    pub fn set_processor_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbProcessorFeature>>) -> Self {
        self.processor_features = input;
        self
    }
    /// <p>Processor features that are being updated.</p>
    pub fn get_processor_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AwsRdsDbProcessorFeature>> {
        &self.processor_features
    }
    /// Consumes the builder and constructs a [`AwsRdsDbPendingModifiedValues`](crate::types::AwsRdsDbPendingModifiedValues).
    pub fn build(self) -> crate::types::AwsRdsDbPendingModifiedValues {
        crate::types::AwsRdsDbPendingModifiedValues {
            db_instance_class: self.db_instance_class,
            allocated_storage: self.allocated_storage,
            master_user_password: self.master_user_password,
            port: self.port,
            backup_retention_period: self.backup_retention_period,
            multi_az: self.multi_az,
            engine_version: self.engine_version,
            license_model: self.license_model,
            iops: self.iops,
            db_instance_identifier: self.db_instance_identifier,
            storage_type: self.storage_type,
            ca_certificate_identifier: self.ca_certificate_identifier,
            db_subnet_group_name: self.db_subnet_group_name,
            pending_cloud_watch_logs_exports: self.pending_cloud_watch_logs_exports,
            processor_features: self.processor_features,
        }
    }
}