Skip to main content

aws_sdk_rds/operation/create_db_instance/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_db_instance::_create_db_instance_input::CreateDbInstanceInputBuilder;
3
4pub use crate::operation::create_db_instance::_create_db_instance_output::CreateDbInstanceOutputBuilder;
5
6impl crate::operation::create_db_instance::builders::CreateDbInstanceInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_db_instance::CreateDbInstanceOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_db_instance::CreateDBInstanceError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_db_instance();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateDBInstance`.
24///
25/// <p>Creates a new DB instance.</p>
26/// <p>The new DB instance can be an RDS DB instance, or it can be a DB instance in an Aurora DB cluster. For an Aurora DB cluster, you can call this operation multiple times to add more than one DB instance to the cluster.</p>
27/// <p>For more information about creating an RDS DB instance, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateDBInstance.html"> Creating an Amazon RDS DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
28/// <p>For more information about creating a DB instance in an Aurora DB cluster, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.CreateInstance.html"> Creating an Amazon Aurora DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateDBInstanceFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::create_db_instance::builders::CreateDbInstanceInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::create_db_instance::CreateDbInstanceOutput,
38        crate::operation::create_db_instance::CreateDBInstanceError,
39    > for CreateDBInstanceFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<
46            crate::operation::create_db_instance::CreateDbInstanceOutput,
47            crate::operation::create_db_instance::CreateDBInstanceError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl CreateDBInstanceFluentBuilder {
54    /// Creates a new `CreateDBInstanceFluentBuilder`.
55    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56        Self {
57            handle,
58            inner: ::std::default::Default::default(),
59            config_override: ::std::option::Option::None,
60        }
61    }
62    /// Access the CreateDBInstance as a reference.
63    pub fn as_input(&self) -> &crate::operation::create_db_instance::builders::CreateDbInstanceInputBuilder {
64        &self.inner
65    }
66    /// Sends the request and returns the response.
67    ///
68    /// If an error occurs, an `SdkError` will be returned with additional details that
69    /// can be matched against.
70    ///
71    /// By default, any retryable failures will be retried twice. Retry behavior
72    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
73    /// set when configuring the client.
74    pub async fn send(
75        self,
76    ) -> ::std::result::Result<
77        crate::operation::create_db_instance::CreateDbInstanceOutput,
78        ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::create_db_instance::CreateDBInstanceError,
80            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81        >,
82    > {
83        let input = self
84            .inner
85            .build()
86            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87        let runtime_plugins = crate::operation::create_db_instance::CreateDBInstance::operation_runtime_plugins(
88            self.handle.runtime_plugins.clone(),
89            &self.handle.conf,
90            self.config_override,
91        );
92        crate::operation::create_db_instance::CreateDBInstance::orchestrate(&runtime_plugins, input).await
93    }
94
95    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
96    pub fn customize(
97        self,
98    ) -> crate::client::customize::CustomizableOperation<
99        crate::operation::create_db_instance::CreateDbInstanceOutput,
100        crate::operation::create_db_instance::CreateDBInstanceError,
101        Self,
102    > {
103        crate::client::customize::CustomizableOperation::new(self)
104    }
105    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
106        self.set_config_override(::std::option::Option::Some(config_override.into()));
107        self
108    }
109
110    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
111        self.config_override = config_override;
112        self
113    }
114    /// <p>The meaning of this parameter differs according to the database engine you use.</p>
115    /// <dl>
116    /// <dt>
117    /// Amazon Aurora MySQL
118    /// </dt>
119    /// <dd>
120    /// <p>The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created in the DB cluster.</p>
121    /// <p>Constraints:</p>
122    /// <ul>
123    /// <li>
124    /// <p>Must contain 1 to 64 alphanumeric characters.</p></li>
125    /// <li>
126    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
127    /// <li>
128    /// <p>Can't be a word reserved by the database engine.</p></li>
129    /// </ul>
130    /// </dd>
131    /// <dt>
132    /// Amazon Aurora PostgreSQL
133    /// </dt>
134    /// <dd>
135    /// <p>The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
136    /// <p>Constraints:</p>
137    /// <ul>
138    /// <li>
139    /// <p>It must contain 1 to 63 alphanumeric characters.</p></li>
140    /// <li>
141    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0 to 9).</p></li>
142    /// <li>
143    /// <p>Can't be a word reserved by the database engine.</p></li>
144    /// </ul>
145    /// </dd>
146    /// <dt>
147    /// Amazon RDS Custom for Oracle
148    /// </dt>
149    /// <dd>
150    /// <p>The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is <code>ORCL</code> for non-CDBs and <code>RDSCDB</code> for CDBs.</p>
151    /// <p>Default: <code>ORCL</code></p>
152    /// <p>Constraints:</p>
153    /// <ul>
154    /// <li>
155    /// <p>Must contain 1 to 8 alphanumeric characters.</p></li>
156    /// <li>
157    /// <p>Must contain a letter.</p></li>
158    /// <li>
159    /// <p>Can't be a word reserved by the database engine.</p></li>
160    /// </ul>
161    /// </dd>
162    /// <dt>
163    /// Amazon RDS Custom for SQL Server
164    /// </dt>
165    /// <dd>
166    /// <p>Not applicable. Must be null.</p>
167    /// </dd>
168    /// <dt>
169    /// RDS for Db2
170    /// </dt>
171    /// <dd>
172    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. In some cases, we recommend that you don't add a database name. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations">Additional considerations</a> in the <i>Amazon RDS User Guide</i>.</p>
173    /// <p>Constraints:</p>
174    /// <ul>
175    /// <li>
176    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
177    /// <li>
178    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
179    /// <li>
180    /// <p>Can't be a word reserved by the specified database engine.</p></li>
181    /// </ul>
182    /// </dd>
183    /// <dt>
184    /// RDS for MariaDB
185    /// </dt>
186    /// <dd>
187    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
188    /// <p>Constraints:</p>
189    /// <ul>
190    /// <li>
191    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
192    /// <li>
193    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
194    /// <li>
195    /// <p>Can't be a word reserved by the specified database engine.</p></li>
196    /// </ul>
197    /// </dd>
198    /// <dt>
199    /// RDS for MySQL
200    /// </dt>
201    /// <dd>
202    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
203    /// <p>Constraints:</p>
204    /// <ul>
205    /// <li>
206    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
207    /// <li>
208    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
209    /// <li>
210    /// <p>Can't be a word reserved by the specified database engine.</p></li>
211    /// </ul>
212    /// </dd>
213    /// <dt>
214    /// RDS for Oracle
215    /// </dt>
216    /// <dd>
217    /// <p>The Oracle System ID (SID) of the created DB instance. If you don't specify a value, the default value is <code>ORCL</code>. You can't specify the string <code>null</code>, or any other reserved word, for <code>DBName</code>.</p>
218    /// <p>Default: <code>ORCL</code></p>
219    /// <p>Constraints:</p>
220    /// <ul>
221    /// <li>
222    /// <p>Can't be longer than 8 characters.</p></li>
223    /// </ul>
224    /// </dd>
225    /// <dt>
226    /// RDS for PostgreSQL
227    /// </dt>
228    /// <dd>
229    /// <p>The name of the database to create when the DB instance is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
230    /// <p>Constraints:</p>
231    /// <ul>
232    /// <li>
233    /// <p>Must contain 1 to 63 letters, numbers, or underscores.</p></li>
234    /// <li>
235    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
236    /// <li>
237    /// <p>Can't be a word reserved by the specified database engine.</p></li>
238    /// </ul>
239    /// </dd>
240    /// <dt>
241    /// RDS for SQL Server
242    /// </dt>
243    /// <dd>
244    /// <p>Not applicable. Must be null.</p>
245    /// </dd>
246    /// </dl>
247    pub fn db_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
248        self.inner = self.inner.db_name(input.into());
249        self
250    }
251    /// <p>The meaning of this parameter differs according to the database engine you use.</p>
252    /// <dl>
253    /// <dt>
254    /// Amazon Aurora MySQL
255    /// </dt>
256    /// <dd>
257    /// <p>The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created in the DB cluster.</p>
258    /// <p>Constraints:</p>
259    /// <ul>
260    /// <li>
261    /// <p>Must contain 1 to 64 alphanumeric characters.</p></li>
262    /// <li>
263    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
264    /// <li>
265    /// <p>Can't be a word reserved by the database engine.</p></li>
266    /// </ul>
267    /// </dd>
268    /// <dt>
269    /// Amazon Aurora PostgreSQL
270    /// </dt>
271    /// <dd>
272    /// <p>The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
273    /// <p>Constraints:</p>
274    /// <ul>
275    /// <li>
276    /// <p>It must contain 1 to 63 alphanumeric characters.</p></li>
277    /// <li>
278    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0 to 9).</p></li>
279    /// <li>
280    /// <p>Can't be a word reserved by the database engine.</p></li>
281    /// </ul>
282    /// </dd>
283    /// <dt>
284    /// Amazon RDS Custom for Oracle
285    /// </dt>
286    /// <dd>
287    /// <p>The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is <code>ORCL</code> for non-CDBs and <code>RDSCDB</code> for CDBs.</p>
288    /// <p>Default: <code>ORCL</code></p>
289    /// <p>Constraints:</p>
290    /// <ul>
291    /// <li>
292    /// <p>Must contain 1 to 8 alphanumeric characters.</p></li>
293    /// <li>
294    /// <p>Must contain a letter.</p></li>
295    /// <li>
296    /// <p>Can't be a word reserved by the database engine.</p></li>
297    /// </ul>
298    /// </dd>
299    /// <dt>
300    /// Amazon RDS Custom for SQL Server
301    /// </dt>
302    /// <dd>
303    /// <p>Not applicable. Must be null.</p>
304    /// </dd>
305    /// <dt>
306    /// RDS for Db2
307    /// </dt>
308    /// <dd>
309    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. In some cases, we recommend that you don't add a database name. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations">Additional considerations</a> in the <i>Amazon RDS User Guide</i>.</p>
310    /// <p>Constraints:</p>
311    /// <ul>
312    /// <li>
313    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
314    /// <li>
315    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
316    /// <li>
317    /// <p>Can't be a word reserved by the specified database engine.</p></li>
318    /// </ul>
319    /// </dd>
320    /// <dt>
321    /// RDS for MariaDB
322    /// </dt>
323    /// <dd>
324    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
325    /// <p>Constraints:</p>
326    /// <ul>
327    /// <li>
328    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
329    /// <li>
330    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
331    /// <li>
332    /// <p>Can't be a word reserved by the specified database engine.</p></li>
333    /// </ul>
334    /// </dd>
335    /// <dt>
336    /// RDS for MySQL
337    /// </dt>
338    /// <dd>
339    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
340    /// <p>Constraints:</p>
341    /// <ul>
342    /// <li>
343    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
344    /// <li>
345    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
346    /// <li>
347    /// <p>Can't be a word reserved by the specified database engine.</p></li>
348    /// </ul>
349    /// </dd>
350    /// <dt>
351    /// RDS for Oracle
352    /// </dt>
353    /// <dd>
354    /// <p>The Oracle System ID (SID) of the created DB instance. If you don't specify a value, the default value is <code>ORCL</code>. You can't specify the string <code>null</code>, or any other reserved word, for <code>DBName</code>.</p>
355    /// <p>Default: <code>ORCL</code></p>
356    /// <p>Constraints:</p>
357    /// <ul>
358    /// <li>
359    /// <p>Can't be longer than 8 characters.</p></li>
360    /// </ul>
361    /// </dd>
362    /// <dt>
363    /// RDS for PostgreSQL
364    /// </dt>
365    /// <dd>
366    /// <p>The name of the database to create when the DB instance is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
367    /// <p>Constraints:</p>
368    /// <ul>
369    /// <li>
370    /// <p>Must contain 1 to 63 letters, numbers, or underscores.</p></li>
371    /// <li>
372    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
373    /// <li>
374    /// <p>Can't be a word reserved by the specified database engine.</p></li>
375    /// </ul>
376    /// </dd>
377    /// <dt>
378    /// RDS for SQL Server
379    /// </dt>
380    /// <dd>
381    /// <p>Not applicable. Must be null.</p>
382    /// </dd>
383    /// </dl>
384    pub fn set_db_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
385        self.inner = self.inner.set_db_name(input);
386        self
387    }
388    /// <p>The meaning of this parameter differs according to the database engine you use.</p>
389    /// <dl>
390    /// <dt>
391    /// Amazon Aurora MySQL
392    /// </dt>
393    /// <dd>
394    /// <p>The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is created. If this parameter isn't specified for an Aurora MySQL DB cluster, no database is created in the DB cluster.</p>
395    /// <p>Constraints:</p>
396    /// <ul>
397    /// <li>
398    /// <p>Must contain 1 to 64 alphanumeric characters.</p></li>
399    /// <li>
400    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
401    /// <li>
402    /// <p>Can't be a word reserved by the database engine.</p></li>
403    /// </ul>
404    /// </dd>
405    /// <dt>
406    /// Amazon Aurora PostgreSQL
407    /// </dt>
408    /// <dd>
409    /// <p>The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
410    /// <p>Constraints:</p>
411    /// <ul>
412    /// <li>
413    /// <p>It must contain 1 to 63 alphanumeric characters.</p></li>
414    /// <li>
415    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0 to 9).</p></li>
416    /// <li>
417    /// <p>Can't be a word reserved by the database engine.</p></li>
418    /// </ul>
419    /// </dd>
420    /// <dt>
421    /// Amazon RDS Custom for Oracle
422    /// </dt>
423    /// <dd>
424    /// <p>The Oracle System ID (SID) of the created RDS Custom DB instance. If you don't specify a value, the default value is <code>ORCL</code> for non-CDBs and <code>RDSCDB</code> for CDBs.</p>
425    /// <p>Default: <code>ORCL</code></p>
426    /// <p>Constraints:</p>
427    /// <ul>
428    /// <li>
429    /// <p>Must contain 1 to 8 alphanumeric characters.</p></li>
430    /// <li>
431    /// <p>Must contain a letter.</p></li>
432    /// <li>
433    /// <p>Can't be a word reserved by the database engine.</p></li>
434    /// </ul>
435    /// </dd>
436    /// <dt>
437    /// Amazon RDS Custom for SQL Server
438    /// </dt>
439    /// <dd>
440    /// <p>Not applicable. Must be null.</p>
441    /// </dd>
442    /// <dt>
443    /// RDS for Db2
444    /// </dt>
445    /// <dd>
446    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance. In some cases, we recommend that you don't add a database name. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations">Additional considerations</a> in the <i>Amazon RDS User Guide</i>.</p>
447    /// <p>Constraints:</p>
448    /// <ul>
449    /// <li>
450    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
451    /// <li>
452    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
453    /// <li>
454    /// <p>Can't be a word reserved by the specified database engine.</p></li>
455    /// </ul>
456    /// </dd>
457    /// <dt>
458    /// RDS for MariaDB
459    /// </dt>
460    /// <dd>
461    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
462    /// <p>Constraints:</p>
463    /// <ul>
464    /// <li>
465    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
466    /// <li>
467    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
468    /// <li>
469    /// <p>Can't be a word reserved by the specified database engine.</p></li>
470    /// </ul>
471    /// </dd>
472    /// <dt>
473    /// RDS for MySQL
474    /// </dt>
475    /// <dd>
476    /// <p>The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.</p>
477    /// <p>Constraints:</p>
478    /// <ul>
479    /// <li>
480    /// <p>Must contain 1 to 64 letters or numbers.</p></li>
481    /// <li>
482    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
483    /// <li>
484    /// <p>Can't be a word reserved by the specified database engine.</p></li>
485    /// </ul>
486    /// </dd>
487    /// <dt>
488    /// RDS for Oracle
489    /// </dt>
490    /// <dd>
491    /// <p>The Oracle System ID (SID) of the created DB instance. If you don't specify a value, the default value is <code>ORCL</code>. You can't specify the string <code>null</code>, or any other reserved word, for <code>DBName</code>.</p>
492    /// <p>Default: <code>ORCL</code></p>
493    /// <p>Constraints:</p>
494    /// <ul>
495    /// <li>
496    /// <p>Can't be longer than 8 characters.</p></li>
497    /// </ul>
498    /// </dd>
499    /// <dt>
500    /// RDS for PostgreSQL
501    /// </dt>
502    /// <dd>
503    /// <p>The name of the database to create when the DB instance is created. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
504    /// <p>Constraints:</p>
505    /// <ul>
506    /// <li>
507    /// <p>Must contain 1 to 63 letters, numbers, or underscores.</p></li>
508    /// <li>
509    /// <p>Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).</p></li>
510    /// <li>
511    /// <p>Can't be a word reserved by the specified database engine.</p></li>
512    /// </ul>
513    /// </dd>
514    /// <dt>
515    /// RDS for SQL Server
516    /// </dt>
517    /// <dd>
518    /// <p>Not applicable. Must be null.</p>
519    /// </dd>
520    /// </dl>
521    pub fn get_db_name(&self) -> &::std::option::Option<::std::string::String> {
522        self.inner.get_db_name()
523    }
524    /// <p>The identifier for this DB instance. This parameter is stored as a lowercase string.</p>
525    /// <p>Constraints:</p>
526    /// <ul>
527    /// <li>
528    /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
529    /// <li>
530    /// <p>First character must be a letter.</p></li>
531    /// <li>
532    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
533    /// </ul>
534    /// <p>Example: <code>mydbinstance</code></p>
535    pub fn db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
536        self.inner = self.inner.db_instance_identifier(input.into());
537        self
538    }
539    /// <p>The identifier for this DB instance. This parameter is stored as a lowercase string.</p>
540    /// <p>Constraints:</p>
541    /// <ul>
542    /// <li>
543    /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
544    /// <li>
545    /// <p>First character must be a letter.</p></li>
546    /// <li>
547    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
548    /// </ul>
549    /// <p>Example: <code>mydbinstance</code></p>
550    pub fn set_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
551        self.inner = self.inner.set_db_instance_identifier(input);
552        self
553    }
554    /// <p>The identifier for this DB instance. This parameter is stored as a lowercase string.</p>
555    /// <p>Constraints:</p>
556    /// <ul>
557    /// <li>
558    /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
559    /// <li>
560    /// <p>First character must be a letter.</p></li>
561    /// <li>
562    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
563    /// </ul>
564    /// <p>Example: <code>mydbinstance</code></p>
565    pub fn get_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
566        self.inner.get_db_instance_identifier()
567    }
568    /// <p>The amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
569    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.</p>
570    /// <dl>
571    /// <dt>
572    /// Amazon RDS Custom
573    /// </dt>
574    /// <dd>
575    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
576    /// <ul>
577    /// <li>
578    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
579    /// <li>
580    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
581    /// </ul>
582    /// </dd>
583    /// <dt>
584    /// RDS for Db2
585    /// </dt>
586    /// <dd>
587    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
588    /// <ul>
589    /// <li>
590    /// <p>General Purpose (SSD) storage (gp3): Must be an integer from 20 to 65536.</p></li>
591    /// <li>
592    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
593    /// </ul>
594    /// </dd>
595    /// <dt>
596    /// RDS for MariaDB
597    /// </dt>
598    /// <dd>
599    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
600    /// <ul>
601    /// <li>
602    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
603    /// <li>
604    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
605    /// <li>
606    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
607    /// </ul>
608    /// </dd>
609    /// <dt>
610    /// RDS for MySQL
611    /// </dt>
612    /// <dd>
613    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
614    /// <ul>
615    /// <li>
616    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
617    /// <li>
618    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
619    /// <li>
620    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
621    /// </ul>
622    /// </dd>
623    /// <dt>
624    /// RDS for Oracle
625    /// </dt>
626    /// <dd>
627    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
628    /// <ul>
629    /// <li>
630    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
631    /// <li>
632    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
633    /// <li>
634    /// <p>Magnetic storage (standard): Must be an integer from 10 to 3072.</p></li>
635    /// </ul>
636    /// </dd>
637    /// <dt>
638    /// RDS for PostgreSQL
639    /// </dt>
640    /// <dd>
641    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
642    /// <ul>
643    /// <li>
644    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
645    /// <li>
646    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
647    /// <li>
648    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
649    /// </ul>
650    /// </dd>
651    /// <dt>
652    /// RDS for SQL Server
653    /// </dt>
654    /// <dd>
655    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
656    /// <ul>
657    /// <li>
658    /// <p>General Purpose (SSD) storage (gp2, gp3):</p>
659    /// <ul>
660    /// <li>
661    /// <p>Enterprise and Standard editions: Must be an integer from 20 to 16384.</p></li>
662    /// <li>
663    /// <p>Web and Express editions: Must be an integer from 20 to 16384.</p></li>
664    /// </ul></li>
665    /// <li>
666    /// <p>Provisioned IOPS storage (io1, io2):</p>
667    /// <ul>
668    /// <li>
669    /// <p>Enterprise and Standard editions: Must be an integer from 100 to 16384.</p></li>
670    /// <li>
671    /// <p>Web and Express editions: Must be an integer from 100 to 16384.</p></li>
672    /// </ul></li>
673    /// <li>
674    /// <p>Magnetic storage (standard):</p>
675    /// <ul>
676    /// <li>
677    /// <p>Enterprise and Standard editions: Must be an integer from 20 to 1024.</p></li>
678    /// <li>
679    /// <p>Web and Express editions: Must be an integer from 20 to 1024.</p></li>
680    /// </ul></li>
681    /// </ul>
682    /// </dd>
683    /// </dl>
684    pub fn allocated_storage(mut self, input: i32) -> Self {
685        self.inner = self.inner.allocated_storage(input);
686        self
687    }
688    /// <p>The amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
689    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.</p>
690    /// <dl>
691    /// <dt>
692    /// Amazon RDS Custom
693    /// </dt>
694    /// <dd>
695    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
696    /// <ul>
697    /// <li>
698    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
699    /// <li>
700    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
701    /// </ul>
702    /// </dd>
703    /// <dt>
704    /// RDS for Db2
705    /// </dt>
706    /// <dd>
707    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
708    /// <ul>
709    /// <li>
710    /// <p>General Purpose (SSD) storage (gp3): Must be an integer from 20 to 65536.</p></li>
711    /// <li>
712    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
713    /// </ul>
714    /// </dd>
715    /// <dt>
716    /// RDS for MariaDB
717    /// </dt>
718    /// <dd>
719    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
720    /// <ul>
721    /// <li>
722    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
723    /// <li>
724    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
725    /// <li>
726    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
727    /// </ul>
728    /// </dd>
729    /// <dt>
730    /// RDS for MySQL
731    /// </dt>
732    /// <dd>
733    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
734    /// <ul>
735    /// <li>
736    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
737    /// <li>
738    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
739    /// <li>
740    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
741    /// </ul>
742    /// </dd>
743    /// <dt>
744    /// RDS for Oracle
745    /// </dt>
746    /// <dd>
747    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
748    /// <ul>
749    /// <li>
750    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
751    /// <li>
752    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
753    /// <li>
754    /// <p>Magnetic storage (standard): Must be an integer from 10 to 3072.</p></li>
755    /// </ul>
756    /// </dd>
757    /// <dt>
758    /// RDS for PostgreSQL
759    /// </dt>
760    /// <dd>
761    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
762    /// <ul>
763    /// <li>
764    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
765    /// <li>
766    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
767    /// <li>
768    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
769    /// </ul>
770    /// </dd>
771    /// <dt>
772    /// RDS for SQL Server
773    /// </dt>
774    /// <dd>
775    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
776    /// <ul>
777    /// <li>
778    /// <p>General Purpose (SSD) storage (gp2, gp3):</p>
779    /// <ul>
780    /// <li>
781    /// <p>Enterprise and Standard editions: Must be an integer from 20 to 16384.</p></li>
782    /// <li>
783    /// <p>Web and Express editions: Must be an integer from 20 to 16384.</p></li>
784    /// </ul></li>
785    /// <li>
786    /// <p>Provisioned IOPS storage (io1, io2):</p>
787    /// <ul>
788    /// <li>
789    /// <p>Enterprise and Standard editions: Must be an integer from 100 to 16384.</p></li>
790    /// <li>
791    /// <p>Web and Express editions: Must be an integer from 100 to 16384.</p></li>
792    /// </ul></li>
793    /// <li>
794    /// <p>Magnetic storage (standard):</p>
795    /// <ul>
796    /// <li>
797    /// <p>Enterprise and Standard editions: Must be an integer from 20 to 1024.</p></li>
798    /// <li>
799    /// <p>Web and Express editions: Must be an integer from 20 to 1024.</p></li>
800    /// </ul></li>
801    /// </ul>
802    /// </dd>
803    /// </dl>
804    pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
805        self.inner = self.inner.set_allocated_storage(input);
806        self
807    }
808    /// <p>The amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
809    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.</p>
810    /// <dl>
811    /// <dt>
812    /// Amazon RDS Custom
813    /// </dt>
814    /// <dd>
815    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
816    /// <ul>
817    /// <li>
818    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
819    /// <li>
820    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.</p></li>
821    /// </ul>
822    /// </dd>
823    /// <dt>
824    /// RDS for Db2
825    /// </dt>
826    /// <dd>
827    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
828    /// <ul>
829    /// <li>
830    /// <p>General Purpose (SSD) storage (gp3): Must be an integer from 20 to 65536.</p></li>
831    /// <li>
832    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
833    /// </ul>
834    /// </dd>
835    /// <dt>
836    /// RDS for MariaDB
837    /// </dt>
838    /// <dd>
839    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
840    /// <ul>
841    /// <li>
842    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
843    /// <li>
844    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
845    /// <li>
846    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
847    /// </ul>
848    /// </dd>
849    /// <dt>
850    /// RDS for MySQL
851    /// </dt>
852    /// <dd>
853    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
854    /// <ul>
855    /// <li>
856    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
857    /// <li>
858    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
859    /// <li>
860    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
861    /// </ul>
862    /// </dd>
863    /// <dt>
864    /// RDS for Oracle
865    /// </dt>
866    /// <dd>
867    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
868    /// <ul>
869    /// <li>
870    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
871    /// <li>
872    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
873    /// <li>
874    /// <p>Magnetic storage (standard): Must be an integer from 10 to 3072.</p></li>
875    /// </ul>
876    /// </dd>
877    /// <dt>
878    /// RDS for PostgreSQL
879    /// </dt>
880    /// <dd>
881    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
882    /// <ul>
883    /// <li>
884    /// <p>General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.</p></li>
885    /// <li>
886    /// <p>Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.</p></li>
887    /// <li>
888    /// <p>Magnetic storage (standard): Must be an integer from 5 to 3072.</p></li>
889    /// </ul>
890    /// </dd>
891    /// <dt>
892    /// RDS for SQL Server
893    /// </dt>
894    /// <dd>
895    /// <p>Constraints to the amount of storage for each storage type are the following:</p>
896    /// <ul>
897    /// <li>
898    /// <p>General Purpose (SSD) storage (gp2, gp3):</p>
899    /// <ul>
900    /// <li>
901    /// <p>Enterprise and Standard editions: Must be an integer from 20 to 16384.</p></li>
902    /// <li>
903    /// <p>Web and Express editions: Must be an integer from 20 to 16384.</p></li>
904    /// </ul></li>
905    /// <li>
906    /// <p>Provisioned IOPS storage (io1, io2):</p>
907    /// <ul>
908    /// <li>
909    /// <p>Enterprise and Standard editions: Must be an integer from 100 to 16384.</p></li>
910    /// <li>
911    /// <p>Web and Express editions: Must be an integer from 100 to 16384.</p></li>
912    /// </ul></li>
913    /// <li>
914    /// <p>Magnetic storage (standard):</p>
915    /// <ul>
916    /// <li>
917    /// <p>Enterprise and Standard editions: Must be an integer from 20 to 1024.</p></li>
918    /// <li>
919    /// <p>Web and Express editions: Must be an integer from 20 to 1024.</p></li>
920    /// </ul></li>
921    /// </ul>
922    /// </dd>
923    /// </dl>
924    pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
925        self.inner.get_allocated_storage()
926    }
927    /// <p>The compute and memory capacity of the DB instance, for example <code>db.m5.large</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance classes</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>.</p>
928    pub fn db_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
929        self.inner = self.inner.db_instance_class(input.into());
930        self
931    }
932    /// <p>The compute and memory capacity of the DB instance, for example <code>db.m5.large</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance classes</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>.</p>
933    pub fn set_db_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
934        self.inner = self.inner.set_db_instance_class(input);
935        self
936    }
937    /// <p>The compute and memory capacity of the DB instance, for example <code>db.m5.large</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance classes</a> in the <i>Amazon RDS User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html">Aurora DB instance classes</a> in the <i>Amazon Aurora User Guide</i>.</p>
938    pub fn get_db_instance_class(&self) -> &::std::option::Option<::std::string::String> {
939        self.inner.get_db_instance_class()
940    }
941    /// <p>The database engine to use for this DB instance.</p>
942    /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
943    /// <p>Valid Values:</p>
944    /// <ul>
945    /// <li>
946    /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
947    /// <li>
948    /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
949    /// <li>
950    /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
951    /// <li>
952    /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
953    /// <li>
954    /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
955    /// <li>
956    /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
957    /// <li>
958    /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
959    /// <li>
960    /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
961    /// <li>
962    /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
963    /// <li>
964    /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
965    /// <li>
966    /// <p><code>db2-ae</code></p></li>
967    /// <li>
968    /// <p><code>db2-ce</code></p></li>
969    /// <li>
970    /// <p><code>db2-se</code></p></li>
971    /// <li>
972    /// <p><code>mariadb</code></p></li>
973    /// <li>
974    /// <p><code>mysql</code></p></li>
975    /// <li>
976    /// <p><code>oracle-ee</code></p></li>
977    /// <li>
978    /// <p><code>oracle-ee-cdb</code></p></li>
979    /// <li>
980    /// <p><code>oracle-se2</code></p></li>
981    /// <li>
982    /// <p><code>oracle-se2-cdb</code></p></li>
983    /// <li>
984    /// <p><code>postgres</code></p></li>
985    /// <li>
986    /// <p><code>sqlserver-dev-ee</code></p></li>
987    /// <li>
988    /// <p><code>sqlserver-ee</code></p></li>
989    /// <li>
990    /// <p><code>sqlserver-se</code></p></li>
991    /// <li>
992    /// <p><code>sqlserver-ex</code></p></li>
993    /// <li>
994    /// <p><code>sqlserver-web</code></p></li>
995    /// </ul>
996    pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
997        self.inner = self.inner.engine(input.into());
998        self
999    }
1000    /// <p>The database engine to use for this DB instance.</p>
1001    /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
1002    /// <p>Valid Values:</p>
1003    /// <ul>
1004    /// <li>
1005    /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
1006    /// <li>
1007    /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
1008    /// <li>
1009    /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
1010    /// <li>
1011    /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1012    /// <li>
1013    /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
1014    /// <li>
1015    /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1016    /// <li>
1017    /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
1018    /// <li>
1019    /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
1020    /// <li>
1021    /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
1022    /// <li>
1023    /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
1024    /// <li>
1025    /// <p><code>db2-ae</code></p></li>
1026    /// <li>
1027    /// <p><code>db2-ce</code></p></li>
1028    /// <li>
1029    /// <p><code>db2-se</code></p></li>
1030    /// <li>
1031    /// <p><code>mariadb</code></p></li>
1032    /// <li>
1033    /// <p><code>mysql</code></p></li>
1034    /// <li>
1035    /// <p><code>oracle-ee</code></p></li>
1036    /// <li>
1037    /// <p><code>oracle-ee-cdb</code></p></li>
1038    /// <li>
1039    /// <p><code>oracle-se2</code></p></li>
1040    /// <li>
1041    /// <p><code>oracle-se2-cdb</code></p></li>
1042    /// <li>
1043    /// <p><code>postgres</code></p></li>
1044    /// <li>
1045    /// <p><code>sqlserver-dev-ee</code></p></li>
1046    /// <li>
1047    /// <p><code>sqlserver-ee</code></p></li>
1048    /// <li>
1049    /// <p><code>sqlserver-se</code></p></li>
1050    /// <li>
1051    /// <p><code>sqlserver-ex</code></p></li>
1052    /// <li>
1053    /// <p><code>sqlserver-web</code></p></li>
1054    /// </ul>
1055    pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1056        self.inner = self.inner.set_engine(input);
1057        self
1058    }
1059    /// <p>The database engine to use for this DB instance.</p>
1060    /// <p>Not every database engine is available in every Amazon Web Services Region.</p>
1061    /// <p>Valid Values:</p>
1062    /// <ul>
1063    /// <li>
1064    /// <p><code>aurora-mysql</code> (for Aurora MySQL DB instances)</p></li>
1065    /// <li>
1066    /// <p><code>aurora-postgresql</code> (for Aurora PostgreSQL DB instances)</p></li>
1067    /// <li>
1068    /// <p><code>custom-oracle-ee</code> (for RDS Custom for Oracle DB instances)</p></li>
1069    /// <li>
1070    /// <p><code>custom-oracle-ee-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1071    /// <li>
1072    /// <p><code>custom-oracle-se2</code> (for RDS Custom for Oracle DB instances)</p></li>
1073    /// <li>
1074    /// <p><code>custom-oracle-se2-cdb</code> (for RDS Custom for Oracle DB instances)</p></li>
1075    /// <li>
1076    /// <p><code>custom-sqlserver-ee</code> (for RDS Custom for SQL Server DB instances)</p></li>
1077    /// <li>
1078    /// <p><code>custom-sqlserver-se</code> (for RDS Custom for SQL Server DB instances)</p></li>
1079    /// <li>
1080    /// <p><code>custom-sqlserver-web</code> (for RDS Custom for SQL Server DB instances)</p></li>
1081    /// <li>
1082    /// <p><code>custom-sqlserver-dev</code> (for RDS Custom for SQL Server DB instances)</p></li>
1083    /// <li>
1084    /// <p><code>db2-ae</code></p></li>
1085    /// <li>
1086    /// <p><code>db2-ce</code></p></li>
1087    /// <li>
1088    /// <p><code>db2-se</code></p></li>
1089    /// <li>
1090    /// <p><code>mariadb</code></p></li>
1091    /// <li>
1092    /// <p><code>mysql</code></p></li>
1093    /// <li>
1094    /// <p><code>oracle-ee</code></p></li>
1095    /// <li>
1096    /// <p><code>oracle-ee-cdb</code></p></li>
1097    /// <li>
1098    /// <p><code>oracle-se2</code></p></li>
1099    /// <li>
1100    /// <p><code>oracle-se2-cdb</code></p></li>
1101    /// <li>
1102    /// <p><code>postgres</code></p></li>
1103    /// <li>
1104    /// <p><code>sqlserver-dev-ee</code></p></li>
1105    /// <li>
1106    /// <p><code>sqlserver-ee</code></p></li>
1107    /// <li>
1108    /// <p><code>sqlserver-se</code></p></li>
1109    /// <li>
1110    /// <p><code>sqlserver-ex</code></p></li>
1111    /// <li>
1112    /// <p><code>sqlserver-web</code></p></li>
1113    /// </ul>
1114    pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
1115        self.inner.get_engine()
1116    }
1117    /// <p>The name for the master user.</p>
1118    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1119    /// <p>This setting is required for RDS DB instances.</p>
1120    /// <p>Constraints:</p>
1121    /// <ul>
1122    /// <li>
1123    /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1124    /// <li>
1125    /// <p>First character must be a letter.</p></li>
1126    /// <li>
1127    /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1128    /// </ul>
1129    pub fn master_username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1130        self.inner = self.inner.master_username(input.into());
1131        self
1132    }
1133    /// <p>The name for the master user.</p>
1134    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1135    /// <p>This setting is required for RDS DB instances.</p>
1136    /// <p>Constraints:</p>
1137    /// <ul>
1138    /// <li>
1139    /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1140    /// <li>
1141    /// <p>First character must be a letter.</p></li>
1142    /// <li>
1143    /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1144    /// </ul>
1145    pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1146        self.inner = self.inner.set_master_username(input);
1147        self
1148    }
1149    /// <p>The name for the master user.</p>
1150    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.</p>
1151    /// <p>This setting is required for RDS DB instances.</p>
1152    /// <p>Constraints:</p>
1153    /// <ul>
1154    /// <li>
1155    /// <p>Must be 1 to 16 letters, numbers, or underscores.</p></li>
1156    /// <li>
1157    /// <p>First character must be a letter.</p></li>
1158    /// <li>
1159    /// <p>Can't be a reserved word for the chosen database engine.</p></li>
1160    /// </ul>
1161    pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
1162        self.inner.get_master_username()
1163    }
1164    /// <p>The password for the master user.</p>
1165    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1166    /// <p>Constraints:</p>
1167    /// <ul>
1168    /// <li>
1169    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1170    /// <li>
1171    /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&amp;" (ampersand) or the "'" (single quotes) character.</p></li>
1172    /// </ul>
1173    /// <p>Length Constraints:</p>
1174    /// <ul>
1175    /// <li>
1176    /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1177    /// <li>
1178    /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1179    /// <li>
1180    /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1181    /// <li>
1182    /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1183    /// <li>
1184    /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1185    /// <li>
1186    /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1187    /// </ul>
1188    pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1189        self.inner = self.inner.master_user_password(input.into());
1190        self
1191    }
1192    /// <p>The password for the master user.</p>
1193    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1194    /// <p>Constraints:</p>
1195    /// <ul>
1196    /// <li>
1197    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1198    /// <li>
1199    /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&amp;" (ampersand) or the "'" (single quotes) character.</p></li>
1200    /// </ul>
1201    /// <p>Length Constraints:</p>
1202    /// <ul>
1203    /// <li>
1204    /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1205    /// <li>
1206    /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1207    /// <li>
1208    /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1209    /// <li>
1210    /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1211    /// <li>
1212    /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1213    /// <li>
1214    /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1215    /// </ul>
1216    pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1217        self.inner = self.inner.set_master_user_password(input);
1218        self
1219    }
1220    /// <p>The password for the master user.</p>
1221    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.</p>
1222    /// <p>Constraints:</p>
1223    /// <ul>
1224    /// <li>
1225    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
1226    /// <li>
1227    /// <p>Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&amp;" (ampersand) or the "'" (single quotes) character.</p></li>
1228    /// </ul>
1229    /// <p>Length Constraints:</p>
1230    /// <ul>
1231    /// <li>
1232    /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
1233    /// <li>
1234    /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
1235    /// <li>
1236    /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
1237    /// <li>
1238    /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
1239    /// <li>
1240    /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
1241    /// <li>
1242    /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
1243    /// </ul>
1244    pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
1245        self.inner.get_master_user_password()
1246    }
1247    ///
1248    /// Appends an item to `DBSecurityGroups`.
1249    ///
1250    /// To override the contents of this collection use [`set_db_security_groups`](Self::set_db_security_groups).
1251    ///
1252    /// <p>A list of DB security groups to associate with this DB instance.</p>
1253    /// <p>This setting applies to the legacy EC2-Classic platform, which is no longer used to create new DB instances. Use the <code>VpcSecurityGroupIds</code> setting instead.</p>
1254    pub fn db_security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1255        self.inner = self.inner.db_security_groups(input.into());
1256        self
1257    }
1258    /// <p>A list of DB security groups to associate with this DB instance.</p>
1259    /// <p>This setting applies to the legacy EC2-Classic platform, which is no longer used to create new DB instances. Use the <code>VpcSecurityGroupIds</code> setting instead.</p>
1260    pub fn set_db_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1261        self.inner = self.inner.set_db_security_groups(input);
1262        self
1263    }
1264    /// <p>A list of DB security groups to associate with this DB instance.</p>
1265    /// <p>This setting applies to the legacy EC2-Classic platform, which is no longer used to create new DB instances. Use the <code>VpcSecurityGroupIds</code> setting instead.</p>
1266    pub fn get_db_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1267        self.inner.get_db_security_groups()
1268    }
1269    ///
1270    /// Appends an item to `VpcSecurityGroupIds`.
1271    ///
1272    /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
1273    ///
1274    /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1275    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The associated list of EC2 VPC security groups is managed by the DB cluster.</p>
1276    /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1277    pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1278        self.inner = self.inner.vpc_security_group_ids(input.into());
1279        self
1280    }
1281    /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1282    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The associated list of EC2 VPC security groups is managed by the DB cluster.</p>
1283    /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1284    pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1285        self.inner = self.inner.set_vpc_security_group_ids(input);
1286        self
1287    }
1288    /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance.</p>
1289    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The associated list of EC2 VPC security groups is managed by the DB cluster.</p>
1290    /// <p>Default: The default EC2 VPC security group for the DB subnet group's VPC.</p>
1291    pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1292        self.inner.get_vpc_security_group_ids()
1293    }
1294    /// <p>The Availability Zone (AZ) where the database will be created. For information on Amazon Web Services Regions and Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html">Regions and Availability Zones</a>.</p>
1295    /// <p>For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.</p>
1296    /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1297    /// <p>Constraints:</p>
1298    /// <ul>
1299    /// <li>
1300    /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1301    /// <li>
1302    /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1303    /// </ul>
1304    /// <p>Example: <code>us-east-1d</code></p>
1305    pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1306        self.inner = self.inner.availability_zone(input.into());
1307        self
1308    }
1309    /// <p>The Availability Zone (AZ) where the database will be created. For information on Amazon Web Services Regions and Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html">Regions and Availability Zones</a>.</p>
1310    /// <p>For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.</p>
1311    /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1312    /// <p>Constraints:</p>
1313    /// <ul>
1314    /// <li>
1315    /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1316    /// <li>
1317    /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1318    /// </ul>
1319    /// <p>Example: <code>us-east-1d</code></p>
1320    pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1321        self.inner = self.inner.set_availability_zone(input);
1322        self
1323    }
1324    /// <p>The Availability Zone (AZ) where the database will be created. For information on Amazon Web Services Regions and Availability Zones, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html">Regions and Availability Zones</a>.</p>
1325    /// <p>For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.</p>
1326    /// <p>Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.</p>
1327    /// <p>Constraints:</p>
1328    /// <ul>
1329    /// <li>
1330    /// <p>The <code>AvailabilityZone</code> parameter can't be specified if the DB instance is a Multi-AZ deployment.</p></li>
1331    /// <li>
1332    /// <p>The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.</p></li>
1333    /// </ul>
1334    /// <p>Example: <code>us-east-1d</code></p>
1335    pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
1336        self.inner.get_availability_zone()
1337    }
1338    /// <p>A DB subnet group to associate with this DB instance.</p>
1339    /// <p>Constraints:</p>
1340    /// <ul>
1341    /// <li>
1342    /// <p>Must match the name of an existing DB subnet group.</p></li>
1343    /// </ul>
1344    /// <p>Example: <code>mydbsubnetgroup</code></p>
1345    pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1346        self.inner = self.inner.db_subnet_group_name(input.into());
1347        self
1348    }
1349    /// <p>A DB subnet group to associate with this DB instance.</p>
1350    /// <p>Constraints:</p>
1351    /// <ul>
1352    /// <li>
1353    /// <p>Must match the name of an existing DB subnet group.</p></li>
1354    /// </ul>
1355    /// <p>Example: <code>mydbsubnetgroup</code></p>
1356    pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1357        self.inner = self.inner.set_db_subnet_group_name(input);
1358        self
1359    }
1360    /// <p>A DB subnet group to associate with this DB instance.</p>
1361    /// <p>Constraints:</p>
1362    /// <ul>
1363    /// <li>
1364    /// <p>Must match the name of an existing DB subnet group.</p></li>
1365    /// </ul>
1366    /// <p>Example: <code>mydbsubnetgroup</code></p>
1367    pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
1368        self.inner.get_db_subnet_group_name()
1369    }
1370    /// <p>The time range each week during which system maintenance can occur. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
1371    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.</p>
1372    /// <p>Constraints:</p>
1373    /// <ul>
1374    /// <li>
1375    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1376    /// <li>
1377    /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1378    /// <li>
1379    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1380    /// <li>
1381    /// <p>Must not conflict with the preferred backup window.</p></li>
1382    /// <li>
1383    /// <p>Must be at least 30 minutes.</p></li>
1384    /// </ul>
1385    pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1386        self.inner = self.inner.preferred_maintenance_window(input.into());
1387        self
1388    }
1389    /// <p>The time range each week during which system maintenance can occur. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
1390    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.</p>
1391    /// <p>Constraints:</p>
1392    /// <ul>
1393    /// <li>
1394    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1395    /// <li>
1396    /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1397    /// <li>
1398    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1399    /// <li>
1400    /// <p>Must not conflict with the preferred backup window.</p></li>
1401    /// <li>
1402    /// <p>Must be at least 30 minutes.</p></li>
1403    /// </ul>
1404    pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1405        self.inner = self.inner.set_preferred_maintenance_window(input);
1406        self
1407    }
1408    /// <p>The time range each week during which system maintenance can occur. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance">Amazon RDS Maintenance Window</a> in the <i>Amazon RDS User Guide.</i></p>
1409    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.</p>
1410    /// <p>Constraints:</p>
1411    /// <ul>
1412    /// <li>
1413    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
1414    /// <li>
1415    /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
1416    /// <li>
1417    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1418    /// <li>
1419    /// <p>Must not conflict with the preferred backup window.</p></li>
1420    /// <li>
1421    /// <p>Must be at least 30 minutes.</p></li>
1422    /// </ul>
1423    pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
1424        self.inner.get_preferred_maintenance_window()
1425    }
1426    /// <p>The name of the DB parameter group to associate with this DB instance. If you don't specify a value, then Amazon RDS uses the default DB parameter group for the specified DB engine and version.</p>
1427    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1428    /// <p>Constraints:</p>
1429    /// <ul>
1430    /// <li>
1431    /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1432    /// <li>
1433    /// <p>The first character must be a letter.</p></li>
1434    /// <li>
1435    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1436    /// </ul>
1437    pub fn db_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1438        self.inner = self.inner.db_parameter_group_name(input.into());
1439        self
1440    }
1441    /// <p>The name of the DB parameter group to associate with this DB instance. If you don't specify a value, then Amazon RDS uses the default DB parameter group for the specified DB engine and version.</p>
1442    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1443    /// <p>Constraints:</p>
1444    /// <ul>
1445    /// <li>
1446    /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1447    /// <li>
1448    /// <p>The first character must be a letter.</p></li>
1449    /// <li>
1450    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1451    /// </ul>
1452    pub fn set_db_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1453        self.inner = self.inner.set_db_parameter_group_name(input);
1454        self
1455    }
1456    /// <p>The name of the DB parameter group to associate with this DB instance. If you don't specify a value, then Amazon RDS uses the default DB parameter group for the specified DB engine and version.</p>
1457    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1458    /// <p>Constraints:</p>
1459    /// <ul>
1460    /// <li>
1461    /// <p>Must be 1 to 255 letters, numbers, or hyphens.</p></li>
1462    /// <li>
1463    /// <p>The first character must be a letter.</p></li>
1464    /// <li>
1465    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1466    /// </ul>
1467    pub fn get_db_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
1468        self.inner.get_db_parameter_group_name()
1469    }
1470    /// <p>The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to <code>0</code> disables automated backups.</p>
1471    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1472    /// <p>Default: <code>1</code></p>
1473    /// <p>Constraints:</p>
1474    /// <ul>
1475    /// <li>
1476    /// <p>Must be a value from 0 to 35.</p></li>
1477    /// <li>
1478    /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1479    /// <li>
1480    /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1481    /// </ul>
1482    pub fn backup_retention_period(mut self, input: i32) -> Self {
1483        self.inner = self.inner.backup_retention_period(input);
1484        self
1485    }
1486    /// <p>The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to <code>0</code> disables automated backups.</p>
1487    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1488    /// <p>Default: <code>1</code></p>
1489    /// <p>Constraints:</p>
1490    /// <ul>
1491    /// <li>
1492    /// <p>Must be a value from 0 to 35.</p></li>
1493    /// <li>
1494    /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1495    /// <li>
1496    /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1497    /// </ul>
1498    pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1499        self.inner = self.inner.set_backup_retention_period(input);
1500        self
1501    }
1502    /// <p>The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to <code>0</code> disables automated backups.</p>
1503    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.</p>
1504    /// <p>Default: <code>1</code></p>
1505    /// <p>Constraints:</p>
1506    /// <ul>
1507    /// <li>
1508    /// <p>Must be a value from 0 to 35.</p></li>
1509    /// <li>
1510    /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
1511    /// <li>
1512    /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
1513    /// </ul>
1514    pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
1515        self.inner.get_backup_retention_period()
1516    }
1517    /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
1518    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster.</p>
1519    /// <p>Constraints:</p>
1520    /// <ul>
1521    /// <li>
1522    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1523    /// <li>
1524    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1525    /// <li>
1526    /// <p>Must not conflict with the preferred maintenance window.</p></li>
1527    /// <li>
1528    /// <p>Must be at least 30 minutes.</p></li>
1529    /// </ul>
1530    pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1531        self.inner = self.inner.preferred_backup_window(input.into());
1532        self
1533    }
1534    /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
1535    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster.</p>
1536    /// <p>Constraints:</p>
1537    /// <ul>
1538    /// <li>
1539    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1540    /// <li>
1541    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1542    /// <li>
1543    /// <p>Must not conflict with the preferred maintenance window.</p></li>
1544    /// <li>
1545    /// <p>Must be at least 30 minutes.</p></li>
1546    /// </ul>
1547    pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1548        self.inner = self.inner.set_preferred_backup_window(input);
1549        self
1550    }
1551    /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow">Backup window</a> in the <i>Amazon RDS User Guide</i>.</p>
1552    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster.</p>
1553    /// <p>Constraints:</p>
1554    /// <ul>
1555    /// <li>
1556    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
1557    /// <li>
1558    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
1559    /// <li>
1560    /// <p>Must not conflict with the preferred maintenance window.</p></li>
1561    /// <li>
1562    /// <p>Must be at least 30 minutes.</p></li>
1563    /// </ul>
1564    pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
1565        self.inner.get_preferred_backup_window()
1566    }
1567    /// <p>The port number on which the database accepts connections.</p>
1568    /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1569    /// <p>Valid Values: <code>1150-65535</code></p>
1570    /// <p>Default:</p>
1571    /// <ul>
1572    /// <li>
1573    /// <p>RDS for Db2 - <code>50000</code></p></li>
1574    /// <li>
1575    /// <p>RDS for MariaDB - <code>3306</code></p></li>
1576    /// <li>
1577    /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1578    /// <li>
1579    /// <p>RDS for MySQL - <code>3306</code></p></li>
1580    /// <li>
1581    /// <p>RDS for Oracle - <code>1521</code></p></li>
1582    /// <li>
1583    /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1584    /// </ul>
1585    /// <p>Constraints:</p>
1586    /// <ul>
1587    /// <li>
1588    /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1589    /// </ul>
1590    pub fn port(mut self, input: i32) -> Self {
1591        self.inner = self.inner.port(input);
1592        self
1593    }
1594    /// <p>The port number on which the database accepts connections.</p>
1595    /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1596    /// <p>Valid Values: <code>1150-65535</code></p>
1597    /// <p>Default:</p>
1598    /// <ul>
1599    /// <li>
1600    /// <p>RDS for Db2 - <code>50000</code></p></li>
1601    /// <li>
1602    /// <p>RDS for MariaDB - <code>3306</code></p></li>
1603    /// <li>
1604    /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1605    /// <li>
1606    /// <p>RDS for MySQL - <code>3306</code></p></li>
1607    /// <li>
1608    /// <p>RDS for Oracle - <code>1521</code></p></li>
1609    /// <li>
1610    /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1611    /// </ul>
1612    /// <p>Constraints:</p>
1613    /// <ul>
1614    /// <li>
1615    /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1616    /// </ul>
1617    pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
1618        self.inner = self.inner.set_port(input);
1619        self
1620    }
1621    /// <p>The port number on which the database accepts connections.</p>
1622    /// <p>This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.</p>
1623    /// <p>Valid Values: <code>1150-65535</code></p>
1624    /// <p>Default:</p>
1625    /// <ul>
1626    /// <li>
1627    /// <p>RDS for Db2 - <code>50000</code></p></li>
1628    /// <li>
1629    /// <p>RDS for MariaDB - <code>3306</code></p></li>
1630    /// <li>
1631    /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1632    /// <li>
1633    /// <p>RDS for MySQL - <code>3306</code></p></li>
1634    /// <li>
1635    /// <p>RDS for Oracle - <code>1521</code></p></li>
1636    /// <li>
1637    /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1638    /// </ul>
1639    /// <p>Constraints:</p>
1640    /// <ul>
1641    /// <li>
1642    /// <p>For RDS for Microsoft SQL Server, the value can't be <code>1234</code>, <code>1434</code>, <code>3260</code>, <code>3343</code>, <code>3389</code>, <code>47001</code>, or <code>49152-49156</code>.</p></li>
1643    /// </ul>
1644    pub fn get_port(&self) -> &::std::option::Option<i32> {
1645        self.inner.get_port()
1646    }
1647    /// <p>Specifies whether the DB instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the DB instance is a Multi-AZ deployment.</p>
1648    /// <p>This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.</p>
1649    pub fn multi_az(mut self, input: bool) -> Self {
1650        self.inner = self.inner.multi_az(input);
1651        self
1652    }
1653    /// <p>Specifies whether the DB instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the DB instance is a Multi-AZ deployment.</p>
1654    /// <p>This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.</p>
1655    pub fn set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
1656        self.inner = self.inner.set_multi_az(input);
1657        self
1658    }
1659    /// <p>Specifies whether the DB instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the DB instance is a Multi-AZ deployment.</p>
1660    /// <p>This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.</p>
1661    pub fn get_multi_az(&self) -> &::std::option::Option<bool> {
1662        self.inner.get_multi_az()
1663    }
1664    /// <p>The version number of the database engine to use.</p>
1665    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.</p>
1666    /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1667    /// <p>The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.</p>
1668    /// <dl>
1669    /// <dt>
1670    /// Amazon RDS Custom for Oracle
1671    /// </dt>
1672    /// <dd>
1673    /// <p>A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.<i>customized_string</i>. A valid CEV name is <code>19.my_cev1</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create"> Creating an RDS Custom for Oracle DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1674    /// </dd>
1675    /// <dt>
1676    /// Amazon RDS Custom for SQL Server
1677    /// </dt>
1678    /// <dd>
1679    /// <p>See <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html">RDS Custom for SQL Server general requirements</a> in the <i>Amazon RDS User Guide</i>.</p>
1680    /// </dd>
1681    /// <dt>
1682    /// RDS for Db2
1683    /// </dt>
1684    /// <dd>
1685    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt">Db2 on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1686    /// </dd>
1687    /// <dt>
1688    /// RDS for MariaDB
1689    /// </dt>
1690    /// <dd>
1691    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt">MariaDB on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1692    /// </dd>
1693    /// <dt>
1694    /// RDS for Microsoft SQL Server
1695    /// </dt>
1696    /// <dd>
1697    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport">Microsoft SQL Server versions on Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
1698    /// </dd>
1699    /// <dt>
1700    /// RDS for MySQL
1701    /// </dt>
1702    /// <dd>
1703    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">MySQL on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1704    /// </dd>
1705    /// <dt>
1706    /// RDS for Oracle
1707    /// </dt>
1708    /// <dd>
1709    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html">Oracle Database Engine release notes</a> in the <i>Amazon RDS User Guide</i>.</p>
1710    /// </dd>
1711    /// <dt>
1712    /// RDS for PostgreSQL
1713    /// </dt>
1714    /// <dd>
1715    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL versions and extensions</a> in the <i>Amazon RDS User Guide</i>.</p>
1716    /// </dd>
1717    /// </dl>
1718    pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1719        self.inner = self.inner.engine_version(input.into());
1720        self
1721    }
1722    /// <p>The version number of the database engine to use.</p>
1723    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.</p>
1724    /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1725    /// <p>The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.</p>
1726    /// <dl>
1727    /// <dt>
1728    /// Amazon RDS Custom for Oracle
1729    /// </dt>
1730    /// <dd>
1731    /// <p>A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.<i>customized_string</i>. A valid CEV name is <code>19.my_cev1</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create"> Creating an RDS Custom for Oracle DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1732    /// </dd>
1733    /// <dt>
1734    /// Amazon RDS Custom for SQL Server
1735    /// </dt>
1736    /// <dd>
1737    /// <p>See <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html">RDS Custom for SQL Server general requirements</a> in the <i>Amazon RDS User Guide</i>.</p>
1738    /// </dd>
1739    /// <dt>
1740    /// RDS for Db2
1741    /// </dt>
1742    /// <dd>
1743    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt">Db2 on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1744    /// </dd>
1745    /// <dt>
1746    /// RDS for MariaDB
1747    /// </dt>
1748    /// <dd>
1749    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt">MariaDB on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1750    /// </dd>
1751    /// <dt>
1752    /// RDS for Microsoft SQL Server
1753    /// </dt>
1754    /// <dd>
1755    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport">Microsoft SQL Server versions on Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
1756    /// </dd>
1757    /// <dt>
1758    /// RDS for MySQL
1759    /// </dt>
1760    /// <dd>
1761    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">MySQL on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1762    /// </dd>
1763    /// <dt>
1764    /// RDS for Oracle
1765    /// </dt>
1766    /// <dd>
1767    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html">Oracle Database Engine release notes</a> in the <i>Amazon RDS User Guide</i>.</p>
1768    /// </dd>
1769    /// <dt>
1770    /// RDS for PostgreSQL
1771    /// </dt>
1772    /// <dd>
1773    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL versions and extensions</a> in the <i>Amazon RDS User Guide</i>.</p>
1774    /// </dd>
1775    /// </dl>
1776    pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1777        self.inner = self.inner.set_engine_version(input);
1778        self
1779    }
1780    /// <p>The version number of the database engine to use.</p>
1781    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.</p>
1782    /// <p>For a list of valid engine versions, use the <code>DescribeDBEngineVersions</code> operation.</p>
1783    /// <p>The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.</p>
1784    /// <dl>
1785    /// <dt>
1786    /// Amazon RDS Custom for Oracle
1787    /// </dt>
1788    /// <dd>
1789    /// <p>A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.<i>customized_string</i>. A valid CEV name is <code>19.my_cev1</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create"> Creating an RDS Custom for Oracle DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1790    /// </dd>
1791    /// <dt>
1792    /// Amazon RDS Custom for SQL Server
1793    /// </dt>
1794    /// <dd>
1795    /// <p>See <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html">RDS Custom for SQL Server general requirements</a> in the <i>Amazon RDS User Guide</i>.</p>
1796    /// </dd>
1797    /// <dt>
1798    /// RDS for Db2
1799    /// </dt>
1800    /// <dd>
1801    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt">Db2 on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1802    /// </dd>
1803    /// <dt>
1804    /// RDS for MariaDB
1805    /// </dt>
1806    /// <dd>
1807    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt">MariaDB on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1808    /// </dd>
1809    /// <dt>
1810    /// RDS for Microsoft SQL Server
1811    /// </dt>
1812    /// <dd>
1813    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport">Microsoft SQL Server versions on Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
1814    /// </dd>
1815    /// <dt>
1816    /// RDS for MySQL
1817    /// </dt>
1818    /// <dd>
1819    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">MySQL on Amazon RDS versions</a> in the <i>Amazon RDS User Guide</i>.</p>
1820    /// </dd>
1821    /// <dt>
1822    /// RDS for Oracle
1823    /// </dt>
1824    /// <dd>
1825    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html">Oracle Database Engine release notes</a> in the <i>Amazon RDS User Guide</i>.</p>
1826    /// </dd>
1827    /// <dt>
1828    /// RDS for PostgreSQL
1829    /// </dt>
1830    /// <dd>
1831    /// <p>For information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL versions and extensions</a> in the <i>Amazon RDS User Guide</i>.</p>
1832    /// </dd>
1833    /// </dl>
1834    pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
1835        self.inner.get_engine_version()
1836    }
1837    /// <p>Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1838    /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1839    /// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
1840    pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
1841        self.inner = self.inner.auto_minor_version_upgrade(input);
1842        self
1843    }
1844    /// <p>Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1845    /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1846    /// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
1847    pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
1848        self.inner = self.inner.set_auto_minor_version_upgrade(input);
1849        self
1850    }
1851    /// <p>Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1852    /// <p>If you create an RDS Custom DB instance, you must set <code>AutoMinorVersionUpgrade</code> to <code>false</code>.</p>
1853    /// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
1854    pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
1855        self.inner.get_auto_minor_version_upgrade()
1856    }
1857    /// <p>The license model information for this DB instance.</p><note>
1858    /// <p>License models for RDS for Db2 require additional configuration. The bring your own license (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html">Amazon RDS for Db2 licensing options</a> in the <i>Amazon RDS User Guide</i>.</p>
1859    /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1860    /// </note>
1861    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1862    /// <p>Valid Values:</p>
1863    /// <ul>
1864    /// <li>
1865    /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1866    /// <li>
1867    /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1868    /// <li>
1869    /// <p>RDS for Microsoft SQL Server - <code>license-included | bring-your-own-media</code></p></li>
1870    /// <li>
1871    /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1872    /// <li>
1873    /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1874    /// <li>
1875    /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1876    /// </ul>
1877    pub fn license_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1878        self.inner = self.inner.license_model(input.into());
1879        self
1880    }
1881    /// <p>The license model information for this DB instance.</p><note>
1882    /// <p>License models for RDS for Db2 require additional configuration. The bring your own license (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html">Amazon RDS for Db2 licensing options</a> in the <i>Amazon RDS User Guide</i>.</p>
1883    /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1884    /// </note>
1885    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1886    /// <p>Valid Values:</p>
1887    /// <ul>
1888    /// <li>
1889    /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1890    /// <li>
1891    /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1892    /// <li>
1893    /// <p>RDS for Microsoft SQL Server - <code>license-included | bring-your-own-media</code></p></li>
1894    /// <li>
1895    /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1896    /// <li>
1897    /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1898    /// <li>
1899    /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1900    /// </ul>
1901    pub fn set_license_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1902        self.inner = self.inner.set_license_model(input);
1903        self
1904    }
1905    /// <p>The license model information for this DB instance.</p><note>
1906    /// <p>License models for RDS for Db2 require additional configuration. The bring your own license (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html">Amazon RDS for Db2 licensing options</a> in the <i>Amazon RDS User Guide</i>.</p>
1907    /// <p>The default for RDS for Db2 is <code>bring-your-own-license</code>.</p>
1908    /// </note>
1909    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1910    /// <p>Valid Values:</p>
1911    /// <ul>
1912    /// <li>
1913    /// <p>RDS for Db2 - <code>bring-your-own-license | marketplace-license</code></p></li>
1914    /// <li>
1915    /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
1916    /// <li>
1917    /// <p>RDS for Microsoft SQL Server - <code>license-included | bring-your-own-media</code></p></li>
1918    /// <li>
1919    /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
1920    /// <li>
1921    /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
1922    /// <li>
1923    /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
1924    /// </ul>
1925    pub fn get_license_model(&self) -> &::std::option::Option<::std::string::String> {
1926        self.inner.get_license_model()
1927    }
1928    /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html">Amazon RDS DB instance storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1929    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1930    /// <p>Constraints:</p>
1931    /// <ul>
1932    /// <li>
1933    /// <p>For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.</p></li>
1934    /// <li>
1935    /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1936    /// </ul>
1937    pub fn iops(mut self, input: i32) -> Self {
1938        self.inner = self.inner.iops(input);
1939        self
1940    }
1941    /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html">Amazon RDS DB instance storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1942    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1943    /// <p>Constraints:</p>
1944    /// <ul>
1945    /// <li>
1946    /// <p>For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.</p></li>
1947    /// <li>
1948    /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1949    /// </ul>
1950    pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
1951        self.inner = self.inner.set_iops(input);
1952        self
1953    }
1954    /// <p>The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html">Amazon RDS DB instance storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1955    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
1956    /// <p>Constraints:</p>
1957    /// <ul>
1958    /// <li>
1959    /// <p>For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.</p></li>
1960    /// <li>
1961    /// <p>For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.</p></li>
1962    /// </ul>
1963    pub fn get_iops(&self) -> &::std::option::Option<i32> {
1964        self.inner.get_iops()
1965    }
1966    /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1967    /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1968    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1969    pub fn storage_throughput(mut self, input: i32) -> Self {
1970        self.inner = self.inner.storage_throughput(input);
1971        self
1972    }
1973    /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1974    /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1975    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1976    pub fn set_storage_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
1977        self.inner = self.inner.set_storage_throughput(input);
1978        self
1979    }
1980    /// <p>The storage throughput value, in mebibyte per second (MiBps), for the DB instance.</p>
1981    /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
1982    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1983    pub fn get_storage_throughput(&self) -> &::std::option::Option<i32> {
1984        self.inner.get_storage_throughput()
1985    }
1986    /// <p>The option group to associate the DB instance with.</p>
1987    /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
1988    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1989    pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1990        self.inner = self.inner.option_group_name(input.into());
1991        self
1992    }
1993    /// <p>The option group to associate the DB instance with.</p>
1994    /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
1995    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
1996    pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1997        self.inner = self.inner.set_option_group_name(input);
1998        self
1999    }
2000    /// <p>The option group to associate the DB instance with.</p>
2001    /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
2002    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2003    pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
2004        self.inner.get_option_group_name()
2005    }
2006    /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2007    /// <p>This setting doesn't apply to the following DB instances:</p>
2008    /// <ul>
2009    /// <li>
2010    /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2011    /// <li>
2012    /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2013    /// </ul>
2014    pub fn character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2015        self.inner = self.inner.character_set_name(input.into());
2016        self
2017    }
2018    /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2019    /// <p>This setting doesn't apply to the following DB instances:</p>
2020    /// <ul>
2021    /// <li>
2022    /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2023    /// <li>
2024    /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2025    /// </ul>
2026    pub fn set_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2027        self.inner = self.inner.set_character_set_name(input);
2028        self
2029    }
2030    /// <p>For supported engines, the character set (<code>CharacterSet</code>) to associate the DB instance with.</p>
2031    /// <p>This setting doesn't apply to the following DB instances:</p>
2032    /// <ul>
2033    /// <li>
2034    /// <p>Amazon Aurora - The character set is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p></li>
2035    /// <li>
2036    /// <p>RDS Custom - However, if you need to change the character set, you can change it on the database itself.</p></li>
2037    /// </ul>
2038    pub fn get_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
2039        self.inner.get_character_set_name()
2040    }
2041    /// <p>The name of the NCHAR character set for the Oracle DB instance.</p>
2042    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2043    pub fn nchar_character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2044        self.inner = self.inner.nchar_character_set_name(input.into());
2045        self
2046    }
2047    /// <p>The name of the NCHAR character set for the Oracle DB instance.</p>
2048    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2049    pub fn set_nchar_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2050        self.inner = self.inner.set_nchar_character_set_name(input);
2051        self
2052    }
2053    /// <p>The name of the NCHAR character set for the Oracle DB instance.</p>
2054    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2055    pub fn get_nchar_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
2056        self.inner.get_nchar_character_set_name()
2057    }
2058    /// <p>Specifies whether the DB instance is publicly accessible.</p>
2059    /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is controlled by its security group settings.</p>
2060    /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
2061    /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
2062    /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>false</code> for Aurora instances and <code>true</code> for non-Aurora instances.</p>
2063    /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
2064    /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
2065    pub fn publicly_accessible(mut self, input: bool) -> Self {
2066        self.inner = self.inner.publicly_accessible(input);
2067        self
2068    }
2069    /// <p>Specifies whether the DB instance is publicly accessible.</p>
2070    /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is controlled by its security group settings.</p>
2071    /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
2072    /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
2073    /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>false</code> for Aurora instances and <code>true</code> for non-Aurora instances.</p>
2074    /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
2075    /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
2076    pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
2077        self.inner = self.inner.set_publicly_accessible(input);
2078        self
2079    }
2080    /// <p>Specifies whether the DB instance is publicly accessible.</p>
2081    /// <p>When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its domain name system (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is controlled by its security group settings.</p>
2082    /// <p>When the DB instance isn't publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.</p>
2083    /// <p>The default behavior when <code>PubliclyAccessible</code> is not specified depends on whether a <code>DBSubnetGroup</code> is specified.</p>
2084    /// <p>If <code>DBSubnetGroup</code> isn't specified, <code>PubliclyAccessible</code> defaults to <code>false</code> for Aurora instances and <code>true</code> for non-Aurora instances.</p>
2085    /// <p>If <code>DBSubnetGroup</code> is specified, <code>PubliclyAccessible</code> defaults to <code>false</code> unless the value of <code>DBSubnetGroup</code> is <code>default</code>, in which case <code>PubliclyAccessible</code> defaults to <code>true</code>.</p>
2086    /// <p>If <code>PubliclyAccessible</code> is true and the VPC that the <code>DBSubnetGroup</code> is in doesn't have an internet gateway attached to it, Amazon RDS returns an error.</p>
2087    pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
2088        self.inner.get_publicly_accessible()
2089    }
2090    ///
2091    /// Appends an item to `Tags`.
2092    ///
2093    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
2094    ///
2095    /// <p>Tags to assign to the DB instance.</p>
2096    pub fn tags(mut self, input: crate::types::Tag) -> Self {
2097        self.inner = self.inner.tags(input);
2098        self
2099    }
2100    /// <p>Tags to assign to the DB instance.</p>
2101    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
2102        self.inner = self.inner.set_tags(input);
2103        self
2104    }
2105    /// <p>Tags to assign to the DB instance.</p>
2106    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
2107        self.inner.get_tags()
2108    }
2109    /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2110    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2111    pub fn db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2112        self.inner = self.inner.db_cluster_identifier(input.into());
2113        self
2114    }
2115    /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2116    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2117    pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2118        self.inner = self.inner.set_db_cluster_identifier(input);
2119        self
2120    }
2121    /// <p>The identifier of the DB cluster that this DB instance will belong to.</p>
2122    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2123    pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
2124        self.inner.get_db_cluster_identifier()
2125    }
2126    /// <p>The storage type to associate with the DB instance.</p>
2127    /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
2128    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2129    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2130    /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2131    pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2132        self.inner = self.inner.storage_type(input.into());
2133        self
2134    }
2135    /// <p>The storage type to associate with the DB instance.</p>
2136    /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
2137    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2138    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2139    /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2140    pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2141        self.inner = self.inner.set_storage_type(input);
2142        self
2143    }
2144    /// <p>The storage type to associate with the DB instance.</p>
2145    /// <p>If you specify <code>io1</code>, <code>io2</code>, or <code>gp3</code>, you must also include a value for the <code>Iops</code> parameter.</p>
2146    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.</p>
2147    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
2148    /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp3</code>.</p>
2149    pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
2150        self.inner.get_storage_type()
2151    }
2152    /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2153    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2154    pub fn tde_credential_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2155        self.inner = self.inner.tde_credential_arn(input.into());
2156        self
2157    }
2158    /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2159    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2160    pub fn set_tde_credential_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2161        self.inner = self.inner.set_tde_credential_arn(input);
2162        self
2163    }
2164    /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
2165    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2166    pub fn get_tde_credential_arn(&self) -> &::std::option::Option<::std::string::String> {
2167        self.inner.get_tde_credential_arn()
2168    }
2169    /// <p>The password for the given ARN from the key store in order to access the device.</p>
2170    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2171    pub fn tde_credential_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2172        self.inner = self.inner.tde_credential_password(input.into());
2173        self
2174    }
2175    /// <p>The password for the given ARN from the key store in order to access the device.</p>
2176    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2177    pub fn set_tde_credential_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2178        self.inner = self.inner.set_tde_credential_password(input);
2179        self
2180    }
2181    /// <p>The password for the given ARN from the key store in order to access the device.</p>
2182    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2183    pub fn get_tde_credential_password(&self) -> &::std::option::Option<::std::string::String> {
2184        self.inner.get_tde_credential_password()
2185    }
2186    /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2187    /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2188    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2189    pub fn storage_encrypted(mut self, input: bool) -> Self {
2190        self.inner = self.inner.storage_encrypted(input);
2191        self
2192    }
2193    /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2194    /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2195    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2196    pub fn set_storage_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
2197        self.inner = self.inner.set_storage_encrypted(input);
2198        self
2199    }
2200    /// <p>Specifes whether the DB instance is encrypted. By default, it isn't encrypted.</p>
2201    /// <p>For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.</p>
2202    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.</p>
2203    pub fn get_storage_encrypted(&self) -> &::std::option::Option<bool> {
2204        self.inner.get_storage_encrypted()
2205    }
2206    /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2207    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
2208    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The Amazon Web Services KMS key identifier is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p>
2209    /// <p>If <code>StorageEncrypted</code> is enabled, and you do not specify a value for the <code>KmsKeyId</code> parameter, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2210    /// <p>For Amazon RDS Custom, a KMS key is required for DB instances. For most RDS engines, if you leave this parameter empty while enabling <code>StorageEncrypted</code>, the engine uses the default KMS key. However, RDS Custom doesn't use the default key when this parameter is empty. You must explicitly specify a key.</p>
2211    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2212        self.inner = self.inner.kms_key_id(input.into());
2213        self
2214    }
2215    /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2216    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
2217    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The Amazon Web Services KMS key identifier is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p>
2218    /// <p>If <code>StorageEncrypted</code> is enabled, and you do not specify a value for the <code>KmsKeyId</code> parameter, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2219    /// <p>For Amazon RDS Custom, a KMS key is required for DB instances. For most RDS engines, if you leave this parameter empty while enabling <code>StorageEncrypted</code>, the engine uses the default KMS key. However, RDS Custom doesn't use the default key when this parameter is empty. You must explicitly specify a key.</p>
2220    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2221        self.inner = self.inner.set_kms_key_id(input);
2222        self
2223    }
2224    /// <p>The Amazon Web Services KMS key identifier for an encrypted DB instance.</p>
2225    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
2226    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The Amazon Web Services KMS key identifier is managed by the DB cluster. For more information, see <code>CreateDBCluster</code>.</p>
2227    /// <p>If <code>StorageEncrypted</code> is enabled, and you do not specify a value for the <code>KmsKeyId</code> parameter, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2228    /// <p>For Amazon RDS Custom, a KMS key is required for DB instances. For most RDS engines, if you leave this parameter empty while enabling <code>StorageEncrypted</code>, the engine uses the default KMS key. However, RDS Custom doesn't use the default key when this parameter is empty. You must explicitly specify a key.</p>
2229    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2230        self.inner.get_kms_key_id()
2231    }
2232    /// <p>The Active Directory directory ID to create the DB instance in. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
2233    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
2234    /// <p>This setting doesn't apply to the following DB instances:</p>
2235    /// <ul>
2236    /// <li>
2237    /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2238    /// <li>
2239    /// <p>RDS Custom</p></li>
2240    /// </ul>
2241    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2242        self.inner = self.inner.domain(input.into());
2243        self
2244    }
2245    /// <p>The Active Directory directory ID to create the DB instance in. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
2246    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
2247    /// <p>This setting doesn't apply to the following DB instances:</p>
2248    /// <ul>
2249    /// <li>
2250    /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2251    /// <li>
2252    /// <p>RDS Custom</p></li>
2253    /// </ul>
2254    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2255        self.inner = self.inner.set_domain(input);
2256        self
2257    }
2258    /// <p>The Active Directory directory ID to create the DB instance in. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
2259    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html"> Kerberos Authentication</a> in the <i>Amazon RDS User Guide</i>.</p>
2260    /// <p>This setting doesn't apply to the following DB instances:</p>
2261    /// <ul>
2262    /// <li>
2263    /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2264    /// <li>
2265    /// <p>RDS Custom</p></li>
2266    /// </ul>
2267    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
2268        self.inner.get_domain()
2269    }
2270    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2271    /// <p>Constraints:</p>
2272    /// <ul>
2273    /// <li>
2274    /// <p>Can't be longer than 64 characters.</p></li>
2275    /// </ul>
2276    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2277    pub fn domain_fqdn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2278        self.inner = self.inner.domain_fqdn(input.into());
2279        self
2280    }
2281    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2282    /// <p>Constraints:</p>
2283    /// <ul>
2284    /// <li>
2285    /// <p>Can't be longer than 64 characters.</p></li>
2286    /// </ul>
2287    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2288    pub fn set_domain_fqdn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2289        self.inner = self.inner.set_domain_fqdn(input);
2290        self
2291    }
2292    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
2293    /// <p>Constraints:</p>
2294    /// <ul>
2295    /// <li>
2296    /// <p>Can't be longer than 64 characters.</p></li>
2297    /// </ul>
2298    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
2299    pub fn get_domain_fqdn(&self) -> &::std::option::Option<::std::string::String> {
2300        self.inner.get_domain_fqdn()
2301    }
2302    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2303    /// <p>Constraints:</p>
2304    /// <ul>
2305    /// <li>
2306    /// <p>Must be in the distinguished name format.</p></li>
2307    /// <li>
2308    /// <p>Can't be longer than 64 characters.</p></li>
2309    /// </ul>
2310    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2311    pub fn domain_ou(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2312        self.inner = self.inner.domain_ou(input.into());
2313        self
2314    }
2315    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2316    /// <p>Constraints:</p>
2317    /// <ul>
2318    /// <li>
2319    /// <p>Must be in the distinguished name format.</p></li>
2320    /// <li>
2321    /// <p>Can't be longer than 64 characters.</p></li>
2322    /// </ul>
2323    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2324    pub fn set_domain_ou(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2325        self.inner = self.inner.set_domain_ou(input);
2326        self
2327    }
2328    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
2329    /// <p>Constraints:</p>
2330    /// <ul>
2331    /// <li>
2332    /// <p>Must be in the distinguished name format.</p></li>
2333    /// <li>
2334    /// <p>Can't be longer than 64 characters.</p></li>
2335    /// </ul>
2336    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
2337    pub fn get_domain_ou(&self) -> &::std::option::Option<::std::string::String> {
2338        self.inner.get_domain_ou()
2339    }
2340    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2341    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2342    pub fn domain_auth_secret_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2343        self.inner = self.inner.domain_auth_secret_arn(input.into());
2344        self
2345    }
2346    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2347    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2348    pub fn set_domain_auth_secret_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2349        self.inner = self.inner.set_domain_auth_secret_arn(input);
2350        self
2351    }
2352    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
2353    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
2354    pub fn get_domain_auth_secret_arn(&self) -> &::std::option::Option<::std::string::String> {
2355        self.inner.get_domain_auth_secret_arn()
2356    }
2357    ///
2358    /// Appends an item to `DomainDnsIps`.
2359    ///
2360    /// To override the contents of this collection use [`set_domain_dns_ips`](Self::set_domain_dns_ips).
2361    ///
2362    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2363    /// <p>Constraints:</p>
2364    /// <ul>
2365    /// <li>
2366    /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
2367    /// </ul>
2368    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2369    pub fn domain_dns_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2370        self.inner = self.inner.domain_dns_ips(input.into());
2371        self
2372    }
2373    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2374    /// <p>Constraints:</p>
2375    /// <ul>
2376    /// <li>
2377    /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
2378    /// </ul>
2379    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2380    pub fn set_domain_dns_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
2381        self.inner = self.inner.set_domain_dns_ips(input);
2382        self
2383    }
2384    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
2385    /// <p>Constraints:</p>
2386    /// <ul>
2387    /// <li>
2388    /// <p>Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.</p></li>
2389    /// </ul>
2390    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
2391    pub fn get_domain_dns_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
2392        self.inner.get_domain_dns_ips()
2393    }
2394    /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2395    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.</p>
2396    pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
2397        self.inner = self.inner.copy_tags_to_snapshot(input);
2398        self
2399    }
2400    /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2401    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.</p>
2402    pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
2403        self.inner = self.inner.set_copy_tags_to_snapshot(input);
2404        self
2405    }
2406    /// <p>Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.</p>
2407    /// <p>This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.</p>
2408    pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
2409        self.inner.get_copy_tags_to_snapshot()
2410    }
2411    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
2412    /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2413    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2414    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2415    /// <p>Default: <code>0</code></p>
2416    pub fn monitoring_interval(mut self, input: i32) -> Self {
2417        self.inner = self.inner.monitoring_interval(input);
2418        self
2419    }
2420    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
2421    /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2422    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2423    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2424    /// <p>Default: <code>0</code></p>
2425    pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
2426        self.inner = self.inner.set_monitoring_interval(input);
2427        self
2428    }
2429    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify <code>0</code>.</p>
2430    /// <p>If <code>MonitoringRoleArn</code> is specified, then you must set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
2431    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2432    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
2433    /// <p>Default: <code>0</code></p>
2434    pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
2435        self.inner.get_monitoring_interval()
2436    }
2437    /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting Up and Enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
2438    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, then you must supply a <code>MonitoringRoleArn</code> value.</p>
2439    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2440    pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2441        self.inner = self.inner.monitoring_role_arn(input.into());
2442        self
2443    }
2444    /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting Up and Enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
2445    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, then you must supply a <code>MonitoringRoleArn</code> value.</p>
2446    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2447    pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2448        self.inner = self.inner.set_monitoring_role_arn(input);
2449        self
2450    }
2451    /// <p>The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting Up and Enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
2452    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, then you must supply a <code>MonitoringRoleArn</code> value.</p>
2453    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2454    pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
2455        self.inner.get_monitoring_role_arn()
2456    }
2457    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2458    /// <p>This setting doesn't apply to the following DB instances:</p>
2459    /// <ul>
2460    /// <li>
2461    /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2462    /// <li>
2463    /// <p>RDS Custom</p></li>
2464    /// </ul>
2465    pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2466        self.inner = self.inner.domain_iam_role_name(input.into());
2467        self
2468    }
2469    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2470    /// <p>This setting doesn't apply to the following DB instances:</p>
2471    /// <ul>
2472    /// <li>
2473    /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2474    /// <li>
2475    /// <p>RDS Custom</p></li>
2476    /// </ul>
2477    pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2478        self.inner = self.inner.set_domain_iam_role_name(input);
2479        self
2480    }
2481    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
2482    /// <p>This setting doesn't apply to the following DB instances:</p>
2483    /// <ul>
2484    /// <li>
2485    /// <p>Amazon Aurora (The domain is managed by the DB cluster.)</p></li>
2486    /// <li>
2487    /// <p>RDS Custom</p></li>
2488    /// </ul>
2489    pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
2490        self.inner.get_domain_iam_role_name()
2491    }
2492    /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2493    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2494    /// <p>Default: <code>1</code></p>
2495    /// <p>Valid Values: <code>0 - 15</code></p>
2496    pub fn promotion_tier(mut self, input: i32) -> Self {
2497        self.inner = self.inner.promotion_tier(input);
2498        self
2499    }
2500    /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2501    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2502    /// <p>Default: <code>1</code></p>
2503    /// <p>Valid Values: <code>0 - 15</code></p>
2504    pub fn set_promotion_tier(mut self, input: ::std::option::Option<i32>) -> Self {
2505        self.inner = self.inner.set_promotion_tier(input);
2506        self
2507    }
2508    /// <p>The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance"> Fault Tolerance for an Aurora DB Cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2509    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2510    /// <p>Default: <code>1</code></p>
2511    /// <p>Valid Values: <code>0 - 15</code></p>
2512    pub fn get_promotion_tier(&self) -> &::std::option::Option<i32> {
2513        self.inner.get_promotion_tier()
2514    }
2515    /// <p>The time zone of the DB instance. The time zone parameter is currently supported only by <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone">RDS for Db2</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone">RDS for SQL Server</a>.</p>
2516    pub fn timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2517        self.inner = self.inner.timezone(input.into());
2518        self
2519    }
2520    /// <p>The time zone of the DB instance. The time zone parameter is currently supported only by <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone">RDS for Db2</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone">RDS for SQL Server</a>.</p>
2521    pub fn set_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2522        self.inner = self.inner.set_timezone(input);
2523        self
2524    }
2525    /// <p>The time zone of the DB instance. The time zone parameter is currently supported only by <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone">RDS for Db2</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone">RDS for SQL Server</a>.</p>
2526    pub fn get_timezone(&self) -> &::std::option::Option<::std::string::String> {
2527        self.inner.get_timezone()
2528    }
2529    /// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
2530    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
2531    /// <p>This setting doesn't apply to the following DB instances:</p>
2532    /// <ul>
2533    /// <li>
2534    /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2535    /// <li>
2536    /// <p>RDS Custom</p></li>
2537    /// </ul>
2538    pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
2539        self.inner = self.inner.enable_iam_database_authentication(input);
2540        self
2541    }
2542    /// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
2543    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
2544    /// <p>This setting doesn't apply to the following DB instances:</p>
2545    /// <ul>
2546    /// <li>
2547    /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2548    /// <li>
2549    /// <p>RDS Custom</p></li>
2550    /// </ul>
2551    pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
2552        self.inner = self.inner.set_enable_iam_database_authentication(input);
2553        self
2554    }
2555    /// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
2556    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication for MySQL and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
2557    /// <p>This setting doesn't apply to the following DB instances:</p>
2558    /// <ul>
2559    /// <li>
2560    /// <p>Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)</p></li>
2561    /// <li>
2562    /// <p>RDS Custom</p></li>
2563    /// </ul>
2564    pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
2565        self.inner.get_enable_iam_database_authentication()
2566    }
2567    /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2568    /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2569    /// </note>
2570    pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
2571        self.inner = self.inner.database_insights_mode(input);
2572        self
2573    }
2574    /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2575    /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2576    /// </note>
2577    pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
2578        self.inner = self.inner.set_database_insights_mode(input);
2579        self
2580    }
2581    /// <p>The mode of Database Insights to enable for the DB instance.</p><note>
2582    /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
2583    /// </note>
2584    pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
2585        self.inner.get_database_insights_mode()
2586    }
2587    /// <p>Specifies whether to enable Performance Insights for the DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html">Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
2588    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2589    pub fn enable_performance_insights(mut self, input: bool) -> Self {
2590        self.inner = self.inner.enable_performance_insights(input);
2591        self
2592    }
2593    /// <p>Specifies whether to enable Performance Insights for the DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html">Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
2594    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2595    pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
2596        self.inner = self.inner.set_enable_performance_insights(input);
2597        self
2598    }
2599    /// <p>Specifies whether to enable Performance Insights for the DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html">Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
2600    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2601    pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
2602        self.inner.get_enable_performance_insights()
2603    }
2604    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2605    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2606    /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2607    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2608    pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2609        self.inner = self.inner.performance_insights_kms_key_id(input.into());
2610        self
2611    }
2612    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2613    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2614    /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2615    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2616    pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2617        self.inner = self.inner.set_performance_insights_kms_key_id(input);
2618        self
2619    }
2620    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
2621    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
2622    /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
2623    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2624    pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2625        self.inner.get_performance_insights_kms_key_id()
2626    }
2627    /// <p>The number of days to retain Performance Insights data.</p>
2628    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2629    /// <p>Valid Values:</p>
2630    /// <ul>
2631    /// <li>
2632    /// <p><code>7</code></p></li>
2633    /// <li>
2634    /// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
2635    /// <li>
2636    /// <p><code>731</code></p></li>
2637    /// </ul>
2638    /// <p>Default: <code>7</code> days</p>
2639    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2640    pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
2641        self.inner = self.inner.performance_insights_retention_period(input);
2642        self
2643    }
2644    /// <p>The number of days to retain Performance Insights data.</p>
2645    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2646    /// <p>Valid Values:</p>
2647    /// <ul>
2648    /// <li>
2649    /// <p><code>7</code></p></li>
2650    /// <li>
2651    /// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
2652    /// <li>
2653    /// <p><code>731</code></p></li>
2654    /// </ul>
2655    /// <p>Default: <code>7</code> days</p>
2656    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2657    pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
2658        self.inner = self.inner.set_performance_insights_retention_period(input);
2659        self
2660    }
2661    /// <p>The number of days to retain Performance Insights data.</p>
2662    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2663    /// <p>Valid Values:</p>
2664    /// <ul>
2665    /// <li>
2666    /// <p><code>7</code></p></li>
2667    /// <li>
2668    /// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
2669    /// <li>
2670    /// <p><code>731</code></p></li>
2671    /// </ul>
2672    /// <p>Default: <code>7</code> days</p>
2673    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
2674    pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
2675        self.inner.get_performance_insights_retention_period()
2676    }
2677    ///
2678    /// Appends an item to `EnableCloudwatchLogsExports`.
2679    ///
2680    /// To override the contents of this collection use [`set_enable_cloudwatch_logs_exports`](Self::set_enable_cloudwatch_logs_exports).
2681    ///
2682    /// <p>The list of log types to enable for exporting to CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
2683    /// <p>This setting doesn't apply to the following DB instances:</p>
2684    /// <ul>
2685    /// <li>
2686    /// <p>Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)</p></li>
2687    /// <li>
2688    /// <p>RDS Custom</p></li>
2689    /// </ul>
2690    /// <p>The following values are valid for each DB engine:</p>
2691    /// <ul>
2692    /// <li>
2693    /// <p>RDS for Db2 - <code>diag.log | notify.log | iam-db-auth-error</code></p></li>
2694    /// <li>
2695    /// <p>RDS for MariaDB - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2696    /// <li>
2697    /// <p>RDS for Microsoft SQL Server - <code>agent | error</code></p></li>
2698    /// <li>
2699    /// <p>RDS for MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2700    /// <li>
2701    /// <p>RDS for Oracle - <code>alert | audit | listener | trace | oemagent</code></p></li>
2702    /// <li>
2703    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
2704    /// </ul>
2705    pub fn enable_cloudwatch_logs_exports(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2706        self.inner = self.inner.enable_cloudwatch_logs_exports(input.into());
2707        self
2708    }
2709    /// <p>The list of log types to enable for exporting to CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
2710    /// <p>This setting doesn't apply to the following DB instances:</p>
2711    /// <ul>
2712    /// <li>
2713    /// <p>Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)</p></li>
2714    /// <li>
2715    /// <p>RDS Custom</p></li>
2716    /// </ul>
2717    /// <p>The following values are valid for each DB engine:</p>
2718    /// <ul>
2719    /// <li>
2720    /// <p>RDS for Db2 - <code>diag.log | notify.log | iam-db-auth-error</code></p></li>
2721    /// <li>
2722    /// <p>RDS for MariaDB - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2723    /// <li>
2724    /// <p>RDS for Microsoft SQL Server - <code>agent | error</code></p></li>
2725    /// <li>
2726    /// <p>RDS for MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2727    /// <li>
2728    /// <p>RDS for Oracle - <code>alert | audit | listener | trace | oemagent</code></p></li>
2729    /// <li>
2730    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
2731    /// </ul>
2732    pub fn set_enable_cloudwatch_logs_exports(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
2733        self.inner = self.inner.set_enable_cloudwatch_logs_exports(input);
2734        self
2735    }
2736    /// <p>The list of log types to enable for exporting to CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch"> Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
2737    /// <p>This setting doesn't apply to the following DB instances:</p>
2738    /// <ul>
2739    /// <li>
2740    /// <p>Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)</p></li>
2741    /// <li>
2742    /// <p>RDS Custom</p></li>
2743    /// </ul>
2744    /// <p>The following values are valid for each DB engine:</p>
2745    /// <ul>
2746    /// <li>
2747    /// <p>RDS for Db2 - <code>diag.log | notify.log | iam-db-auth-error</code></p></li>
2748    /// <li>
2749    /// <p>RDS for MariaDB - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2750    /// <li>
2751    /// <p>RDS for Microsoft SQL Server - <code>agent | error</code></p></li>
2752    /// <li>
2753    /// <p>RDS for MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
2754    /// <li>
2755    /// <p>RDS for Oracle - <code>alert | audit | listener | trace | oemagent</code></p></li>
2756    /// <li>
2757    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
2758    /// </ul>
2759    pub fn get_enable_cloudwatch_logs_exports(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
2760        self.inner.get_enable_cloudwatch_logs_exports()
2761    }
2762    ///
2763    /// Appends an item to `ProcessorFeatures`.
2764    ///
2765    /// To override the contents of this collection use [`set_processor_features`](Self::set_processor_features).
2766    ///
2767    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2768    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2769    pub fn processor_features(mut self, input: crate::types::ProcessorFeature) -> Self {
2770        self.inner = self.inner.processor_features(input);
2771        self
2772    }
2773    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2774    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2775    pub fn set_processor_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>>) -> Self {
2776        self.inner = self.inner.set_processor_features(input);
2777        self
2778    }
2779    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
2780    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
2781    pub fn get_processor_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>> {
2782        self.inner.get_processor_features()
2783    }
2784    /// <p>Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
2785    /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>CreateDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
2786    pub fn deletion_protection(mut self, input: bool) -> Self {
2787        self.inner = self.inner.deletion_protection(input);
2788        self
2789    }
2790    /// <p>Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
2791    /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>CreateDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
2792    pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
2793        self.inner = self.inner.set_deletion_protection(input);
2794        self
2795    }
2796    /// <p>Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html"> Deleting a DB Instance</a>.</p>
2797    /// <p>This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see <code>CreateDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
2798    pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
2799        self.inner.get_deletion_protection()
2800    }
2801    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2802    /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
2803    /// <p>This setting doesn't apply to the following DB instances:</p>
2804    /// <ul>
2805    /// <li>
2806    /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2807    /// <li>
2808    /// <p>RDS Custom</p></li>
2809    /// </ul>
2810    pub fn max_allocated_storage(mut self, input: i32) -> Self {
2811        self.inner = self.inner.max_allocated_storage(input);
2812        self
2813    }
2814    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2815    /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
2816    /// <p>This setting doesn't apply to the following DB instances:</p>
2817    /// <ul>
2818    /// <li>
2819    /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2820    /// <li>
2821    /// <p>RDS Custom</p></li>
2822    /// </ul>
2823    pub fn set_max_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
2824        self.inner = self.inner.set_max_allocated_storage(input);
2825        self
2826    }
2827    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
2828    /// <p>For more information about this setting, including limitations that apply to it, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling"> Managing capacity automatically with Amazon RDS storage autoscaling</a> in the <i>Amazon RDS User Guide</i>.</p>
2829    /// <p>This setting doesn't apply to the following DB instances:</p>
2830    /// <ul>
2831    /// <li>
2832    /// <p>Amazon Aurora (Storage is managed by the DB cluster.)</p></li>
2833    /// <li>
2834    /// <p>RDS Custom</p></li>
2835    /// </ul>
2836    pub fn get_max_allocated_storage(&self) -> &::std::option::Option<i32> {
2837        self.inner.get_max_allocated_storage()
2838    }
2839    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2840    /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
2841    /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2842    /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
2843    pub fn enable_customer_owned_ip(mut self, input: bool) -> Self {
2844        self.inner = self.inner.enable_customer_owned_ip(input);
2845        self
2846    }
2847    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2848    /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
2849    /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2850    /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
2851    pub fn set_enable_customer_owned_ip(mut self, input: ::std::option::Option<bool>) -> Self {
2852        self.inner = self.inner.set_enable_customer_owned_ip(input);
2853        self
2854    }
2855    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
2856    /// <p>A <i>CoIP</i> provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.</p>
2857    /// <p>For more information about RDS on Outposts, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2858    /// <p>For more information about CoIPs, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing">Customer-owned IP addresses</a> in the <i>Amazon Web Services Outposts User Guide</i>.</p>
2859    pub fn get_enable_customer_owned_ip(&self) -> &::std::option::Option<bool> {
2860        self.inner.get_enable_customer_owned_ip()
2861    }
2862    /// <p>The network type of the DB instance.</p>
2863    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
2864    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
2865    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2866    pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2867        self.inner = self.inner.network_type(input.into());
2868        self
2869    }
2870    /// <p>The network type of the DB instance.</p>
2871    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
2872    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
2873    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2874    pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2875        self.inner = self.inner.set_network_type(input);
2876        self
2877    }
2878    /// <p>The network type of the DB instance.</p>
2879    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB instance. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
2880    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide.</i></p>
2881    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
2882    pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
2883        self.inner.get_network_type()
2884    }
2885    /// <p>The location for storing automated backups and manual snapshots.</p>
2886    /// <p>Valid Values:</p>
2887    /// <ul>
2888    /// <li>
2889    /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2890    /// <li>
2891    /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2892    /// <li>
2893    /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2894    /// </ul>
2895    /// <p>Default: <code>region</code></p>
2896    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2897    pub fn backup_target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2898        self.inner = self.inner.backup_target(input.into());
2899        self
2900    }
2901    /// <p>The location for storing automated backups and manual snapshots.</p>
2902    /// <p>Valid Values:</p>
2903    /// <ul>
2904    /// <li>
2905    /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2906    /// <li>
2907    /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2908    /// <li>
2909    /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2910    /// </ul>
2911    /// <p>Default: <code>region</code></p>
2912    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2913    pub fn set_backup_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2914        self.inner = self.inner.set_backup_target(input);
2915        self
2916    }
2917    /// <p>The location for storing automated backups and manual snapshots.</p>
2918    /// <p>Valid Values:</p>
2919    /// <ul>
2920    /// <li>
2921    /// <p><code>local</code> (Dedicated Local Zone)</p></li>
2922    /// <li>
2923    /// <p><code>outposts</code> (Amazon Web Services Outposts)</p></li>
2924    /// <li>
2925    /// <p><code>region</code> (Amazon Web Services Region)</p></li>
2926    /// </ul>
2927    /// <p>Default: <code>region</code></p>
2928    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Working with Amazon RDS on Amazon Web Services Outposts</a> in the <i>Amazon RDS User Guide</i>.</p>
2929    pub fn get_backup_target(&self) -> &::std::option::Option<::std::string::String> {
2930        self.inner.get_backup_target()
2931    }
2932    /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2933    /// <p>This setting is required for RDS Custom.</p>
2934    /// <p>Constraints:</p>
2935    /// <ul>
2936    /// <li>
2937    /// <p>The profile must exist in your account.</p></li>
2938    /// <li>
2939    /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2940    /// <li>
2941    /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2942    /// </ul>
2943    /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
2944    pub fn custom_iam_instance_profile(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2945        self.inner = self.inner.custom_iam_instance_profile(input.into());
2946        self
2947    }
2948    /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2949    /// <p>This setting is required for RDS Custom.</p>
2950    /// <p>Constraints:</p>
2951    /// <ul>
2952    /// <li>
2953    /// <p>The profile must exist in your account.</p></li>
2954    /// <li>
2955    /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2956    /// <li>
2957    /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2958    /// </ul>
2959    /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
2960    pub fn set_custom_iam_instance_profile(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2961        self.inner = self.inner.set_custom_iam_instance_profile(input);
2962        self
2963    }
2964    /// <p>The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.</p>
2965    /// <p>This setting is required for RDS Custom.</p>
2966    /// <p>Constraints:</p>
2967    /// <ul>
2968    /// <li>
2969    /// <p>The profile must exist in your account.</p></li>
2970    /// <li>
2971    /// <p>The profile must have an IAM role that Amazon EC2 has permissions to assume.</p></li>
2972    /// <li>
2973    /// <p>The instance profile name and the associated IAM role name must start with the prefix <code>AWSRDSCustom</code>.</p></li>
2974    /// </ul>
2975    /// <p>For the list of permissions required for the IAM role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc"> Configure IAM and your VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
2976    pub fn get_custom_iam_instance_profile(&self) -> &::std::option::Option<::std::string::String> {
2977        self.inner.get_custom_iam_instance_profile()
2978    }
2979    /// <p>The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to <code>RDSCDB</code>. The Oracle SID is also the name of your CDB.</p>
2980    pub fn db_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2981        self.inner = self.inner.db_system_id(input.into());
2982        self
2983    }
2984    /// <p>The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to <code>RDSCDB</code>. The Oracle SID is also the name of your CDB.</p>
2985    pub fn set_db_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2986        self.inner = self.inner.set_db_system_id(input);
2987        self
2988    }
2989    /// <p>The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to <code>RDSCDB</code>. The Oracle SID is also the name of your CDB.</p>
2990    pub fn get_db_system_id(&self) -> &::std::option::Option<::std::string::String> {
2991        self.inner.get_db_system_id()
2992    }
2993    /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
2994    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
2995    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
2996    pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2997        self.inner = self.inner.ca_certificate_identifier(input.into());
2998        self
2999    }
3000    /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
3001    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
3002    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
3003    pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3004        self.inner = self.inner.set_ca_certificate_identifier(input);
3005        self
3006    }
3007    /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
3008    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
3009    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html"> Using SSL/TLS to encrypt a connection to a DB cluster</a> in the <i>Amazon Aurora User Guide</i>.</p>
3010    pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
3011        self.inner.get_ca_certificate_identifier()
3012    }
3013    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3014    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
3015    /// <p>Constraints:</p>
3016    /// <ul>
3017    /// <li>
3018    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3019    /// </ul>
3020    pub fn manage_master_user_password(mut self, input: bool) -> Self {
3021        self.inner = self.inner.manage_master_user_password(input);
3022        self
3023    }
3024    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3025    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
3026    /// <p>Constraints:</p>
3027    /// <ul>
3028    /// <li>
3029    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3030    /// </ul>
3031    pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
3032        self.inner = self.inner.set_manage_master_user_password(input);
3033        self
3034    }
3035    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
3036    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide.</i></p>
3037    /// <p>Constraints:</p>
3038    /// <ul>
3039    /// <li>
3040    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
3041    /// </ul>
3042    pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
3043        self.inner.get_manage_master_user_password()
3044    }
3045    /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
3046    /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance.</p>
3047    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
3048    /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
3049    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
3050    pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3051        self.inner = self.inner.master_user_secret_kms_key_id(input.into());
3052        self
3053    }
3054    /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
3055    /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance.</p>
3056    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
3057    /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
3058    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
3059    pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3060        self.inner = self.inner.set_master_user_secret_kms_key_id(input);
3061        self
3062    }
3063    /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
3064    /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance.</p>
3065    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
3066    /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
3067    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
3068    pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
3069        self.inner.get_master_user_secret_kms_key_id()
3070    }
3071    /// <p>Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.</p>
3072    /// <p>Note the following restrictions:</p>
3073    /// <ul>
3074    /// <li>
3075    /// <p>The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn't support it, the request fails.</p></li>
3076    /// <li>
3077    /// <p>If you specify the multi-tenant configuration when you create your DB instance, you can't later modify this DB instance to use the single-tenant configuration.</p></li>
3078    /// </ul>
3079    pub fn multi_tenant(mut self, input: bool) -> Self {
3080        self.inner = self.inner.multi_tenant(input);
3081        self
3082    }
3083    /// <p>Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.</p>
3084    /// <p>Note the following restrictions:</p>
3085    /// <ul>
3086    /// <li>
3087    /// <p>The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn't support it, the request fails.</p></li>
3088    /// <li>
3089    /// <p>If you specify the multi-tenant configuration when you create your DB instance, you can't later modify this DB instance to use the single-tenant configuration.</p></li>
3090    /// </ul>
3091    pub fn set_multi_tenant(mut self, input: ::std::option::Option<bool>) -> Self {
3092        self.inner = self.inner.set_multi_tenant(input);
3093        self
3094    }
3095    /// <p>Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.</p>
3096    /// <p>Note the following restrictions:</p>
3097    /// <ul>
3098    /// <li>
3099    /// <p>The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn't support it, the request fails.</p></li>
3100    /// <li>
3101    /// <p>If you specify the multi-tenant configuration when you create your DB instance, you can't later modify this DB instance to use the single-tenant configuration.</p></li>
3102    /// </ul>
3103    pub fn get_multi_tenant(&self) -> &::std::option::Option<bool> {
3104        self.inner.get_multi_tenant()
3105    }
3106    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3107    pub fn dedicated_log_volume(mut self, input: bool) -> Self {
3108        self.inner = self.inner.dedicated_log_volume(input);
3109        self
3110    }
3111    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3112    pub fn set_dedicated_log_volume(mut self, input: ::std::option::Option<bool>) -> Self {
3113        self.inner = self.inner.set_dedicated_log_volume(input);
3114        self
3115    }
3116    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
3117    pub fn get_dedicated_log_volume(&self) -> &::std::option::Option<bool> {
3118        self.inner.get_dedicated_log_volume()
3119    }
3120    /// <p>The life cycle type for this DB instance.</p><note>
3121    /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.</p>
3122    /// </note>
3123    /// <p>This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.</p>
3124    /// <p>You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
3125    /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3126    /// <p>Default: <code>open-source-rds-extended-support</code></p>
3127    pub fn engine_lifecycle_support(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3128        self.inner = self.inner.engine_lifecycle_support(input.into());
3129        self
3130    }
3131    /// <p>The life cycle type for this DB instance.</p><note>
3132    /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.</p>
3133    /// </note>
3134    /// <p>This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.</p>
3135    /// <p>You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
3136    /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3137    /// <p>Default: <code>open-source-rds-extended-support</code></p>
3138    pub fn set_engine_lifecycle_support(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3139        self.inner = self.inner.set_engine_lifecycle_support(input);
3140        self
3141    }
3142    /// <p>The life cycle type for this DB instance.</p><note>
3143    /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.</p>
3144    /// </note>
3145    /// <p>This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.</p>
3146    /// <p>You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i>.</p>
3147    /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
3148    /// <p>Default: <code>open-source-rds-extended-support</code></p>
3149    pub fn get_engine_lifecycle_support(&self) -> &::std::option::Option<::std::string::String> {
3150        self.inner.get_engine_lifecycle_support()
3151    }
3152    ///
3153    /// Appends an item to `AdditionalStorageVolumes`.
3154    ///
3155    /// To override the contents of this collection use [`set_additional_storage_volumes`](Self::set_additional_storage_volumes).
3156    ///
3157    /// <p>A list of additional storage volumes to create for the DB instance. You can create up to three additional storage volumes using the names <code>rdsdbdata2</code>, <code>rdsdbdata3</code>, and <code>rdsdbdata4</code>. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only.</p>
3158    pub fn additional_storage_volumes(mut self, input: crate::types::AdditionalStorageVolume) -> Self {
3159        self.inner = self.inner.additional_storage_volumes(input);
3160        self
3161    }
3162    /// <p>A list of additional storage volumes to create for the DB instance. You can create up to three additional storage volumes using the names <code>rdsdbdata2</code>, <code>rdsdbdata3</code>, and <code>rdsdbdata4</code>. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only.</p>
3163    pub fn set_additional_storage_volumes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AdditionalStorageVolume>>) -> Self {
3164        self.inner = self.inner.set_additional_storage_volumes(input);
3165        self
3166    }
3167    /// <p>A list of additional storage volumes to create for the DB instance. You can create up to three additional storage volumes using the names <code>rdsdbdata2</code>, <code>rdsdbdata3</code>, and <code>rdsdbdata4</code>. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only.</p>
3168    pub fn get_additional_storage_volumes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AdditionalStorageVolume>> {
3169        self.inner.get_additional_storage_volumes()
3170    }
3171    ///
3172    /// Appends an item to `TagSpecifications`.
3173    ///
3174    /// To override the contents of this collection use [`set_tag_specifications`](Self::set_tag_specifications).
3175    ///
3176    /// <p>Tags to assign to resources associated with the DB instance.</p>
3177    /// <p>Valid Values:</p>
3178    /// <ul>
3179    /// <li>
3180    /// <p><code>auto-backup</code> - The DB instance's automated backup.</p></li>
3181    /// </ul>
3182    pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
3183        self.inner = self.inner.tag_specifications(input);
3184        self
3185    }
3186    /// <p>Tags to assign to resources associated with the DB instance.</p>
3187    /// <p>Valid Values:</p>
3188    /// <ul>
3189    /// <li>
3190    /// <p><code>auto-backup</code> - The DB instance's automated backup.</p></li>
3191    /// </ul>
3192    pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
3193        self.inner = self.inner.set_tag_specifications(input);
3194        self
3195    }
3196    /// <p>Tags to assign to resources associated with the DB instance.</p>
3197    /// <p>Valid Values:</p>
3198    /// <ul>
3199    /// <li>
3200    /// <p><code>auto-backup</code> - The DB instance's automated backup.</p></li>
3201    /// </ul>
3202    pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
3203        self.inner.get_tag_specifications()
3204    }
3205    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.</p>
3206    /// <p>You can specify one of the following values:</p>
3207    /// <ul>
3208    /// <li>
3209    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3210    /// <li>
3211    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3212    /// </ul>
3213    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3214    pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
3215        self.inner = self.inner.master_user_authentication_type(input);
3216        self
3217    }
3218    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.</p>
3219    /// <p>You can specify one of the following values:</p>
3220    /// <ul>
3221    /// <li>
3222    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3223    /// <li>
3224    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3225    /// </ul>
3226    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3227    pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
3228        self.inner = self.inner.set_master_user_authentication_type(input);
3229        self
3230    }
3231    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.</p>
3232    /// <p>You can specify one of the following values:</p>
3233    /// <ul>
3234    /// <li>
3235    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
3236    /// <li>
3237    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
3238    /// </ul>
3239    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
3240    pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
3241        self.inner.get_master_user_authentication_type()
3242    }
3243}