aws_sdk_rds/operation/modify_db_instance/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::modify_db_instance::_modify_db_instance_output::ModifyDbInstanceOutputBuilder;
3
4pub use crate::operation::modify_db_instance::_modify_db_instance_input::ModifyDbInstanceInputBuilder;
5
6impl crate::operation::modify_db_instance::builders::ModifyDbInstanceInputBuilder {
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::modify_db_instance::ModifyDbInstanceOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::modify_db_instance::ModifyDBInstanceError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.modify_db_instance();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `ModifyDBInstance`.
24///
25/// <p>Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call <code>DescribeValidDBInstanceModifications</code> before you call <code>ModifyDBInstance</code>.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct ModifyDBInstanceFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::modify_db_instance::builders::ModifyDbInstanceInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::modify_db_instance::ModifyDbInstanceOutput,
35        crate::operation::modify_db_instance::ModifyDBInstanceError,
36    > for ModifyDBInstanceFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::modify_db_instance::ModifyDbInstanceOutput,
44            crate::operation::modify_db_instance::ModifyDBInstanceError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl ModifyDBInstanceFluentBuilder {
51    /// Creates a new `ModifyDBInstanceFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the ModifyDBInstance as a reference.
60    pub fn as_input(&self) -> &crate::operation::modify_db_instance::builders::ModifyDbInstanceInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::modify_db_instance::ModifyDbInstanceOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::modify_db_instance::ModifyDBInstanceError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::modify_db_instance::ModifyDBInstance::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::modify_db_instance::ModifyDBInstance::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::modify_db_instance::ModifyDbInstanceOutput,
97        crate::operation::modify_db_instance::ModifyDBInstanceError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The identifier of DB instance to modify. This value is stored as a lowercase string.</p>
112    /// <p>Constraints:</p>
113    /// <ul>
114    /// <li>
115    /// <p>Must match the identifier of an existing DB instance.</p></li>
116    /// </ul>
117    pub fn db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118        self.inner = self.inner.db_instance_identifier(input.into());
119        self
120    }
121    /// <p>The identifier of DB instance to modify. This value is stored as a lowercase string.</p>
122    /// <p>Constraints:</p>
123    /// <ul>
124    /// <li>
125    /// <p>Must match the identifier of an existing DB instance.</p></li>
126    /// </ul>
127    pub fn set_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128        self.inner = self.inner.set_db_instance_identifier(input);
129        self
130    }
131    /// <p>The identifier of DB instance to modify. This value is stored as a lowercase string.</p>
132    /// <p>Constraints:</p>
133    /// <ul>
134    /// <li>
135    /// <p>Must match the identifier of an existing DB instance.</p></li>
136    /// </ul>
137    pub fn get_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
138        self.inner.get_db_instance_identifier()
139    }
140    /// <p>The new amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
141    /// <p>For RDS for Db2, MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL, the value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p>
142    /// <p>For the valid values for allocated storage for each engine, see <code>CreateDBInstance</code>.</p>
143    /// <p>Constraints:</p>
144    /// <ul>
145    /// <li>
146    /// <p>When you increase the allocated storage for a DB instance that uses Provisioned IOPS (<code>gp3</code>, <code>io1</code>, or <code>io2</code> storage type), you must also specify the <code>Iops</code> parameter. You can use the current value for <code>Iops</code>.</p></li>
147    /// </ul>
148    pub fn allocated_storage(mut self, input: i32) -> Self {
149        self.inner = self.inner.allocated_storage(input);
150        self
151    }
152    /// <p>The new amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
153    /// <p>For RDS for Db2, MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL, the value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p>
154    /// <p>For the valid values for allocated storage for each engine, see <code>CreateDBInstance</code>.</p>
155    /// <p>Constraints:</p>
156    /// <ul>
157    /// <li>
158    /// <p>When you increase the allocated storage for a DB instance that uses Provisioned IOPS (<code>gp3</code>, <code>io1</code>, or <code>io2</code> storage type), you must also specify the <code>Iops</code> parameter. You can use the current value for <code>Iops</code>.</p></li>
159    /// </ul>
160    pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
161        self.inner = self.inner.set_allocated_storage(input);
162        self
163    }
164    /// <p>The new amount of storage in gibibytes (GiB) to allocate for the DB instance.</p>
165    /// <p>For RDS for Db2, MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL, the value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p>
166    /// <p>For the valid values for allocated storage for each engine, see <code>CreateDBInstance</code>.</p>
167    /// <p>Constraints:</p>
168    /// <ul>
169    /// <li>
170    /// <p>When you increase the allocated storage for a DB instance that uses Provisioned IOPS (<code>gp3</code>, <code>io1</code>, or <code>io2</code> storage type), you must also specify the <code>Iops</code> parameter. You can use the current value for <code>Iops</code>.</p></li>
171    /// </ul>
172    pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
173        self.inner.get_allocated_storage()
174    }
175    /// <p>The new compute and memory capacity of the DB instance, for example <code>db.m4.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 Class</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>. For RDS Custom, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits.html#custom-reqs-limits.instances">DB instance class support for RDS Custom for Oracle</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html#custom-reqs-limits.instancesMS"> DB instance class support for RDS Custom for SQL Server</a>.</p>
176    /// <p>If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless you specify <code>ApplyImmediately</code> in your request.</p>
177    /// <p>Default: Uses existing setting</p>
178    /// <p>Constraints:</p>
179    /// <ul>
180    /// <li>
181    /// <p>If you are modifying the DB instance class and upgrading the engine version at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
182    /// </ul>
183    pub fn db_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
184        self.inner = self.inner.db_instance_class(input.into());
185        self
186    }
187    /// <p>The new compute and memory capacity of the DB instance, for example <code>db.m4.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 Class</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>. For RDS Custom, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits.html#custom-reqs-limits.instances">DB instance class support for RDS Custom for Oracle</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html#custom-reqs-limits.instancesMS"> DB instance class support for RDS Custom for SQL Server</a>.</p>
188    /// <p>If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless you specify <code>ApplyImmediately</code> in your request.</p>
189    /// <p>Default: Uses existing setting</p>
190    /// <p>Constraints:</p>
191    /// <ul>
192    /// <li>
193    /// <p>If you are modifying the DB instance class and upgrading the engine version at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
194    /// </ul>
195    pub fn set_db_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
196        self.inner = self.inner.set_db_instance_class(input);
197        self
198    }
199    /// <p>The new compute and memory capacity of the DB instance, for example <code>db.m4.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 Class</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>. For RDS Custom, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits.html#custom-reqs-limits.instances">DB instance class support for RDS Custom for Oracle</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html#custom-reqs-limits.instancesMS"> DB instance class support for RDS Custom for SQL Server</a>.</p>
200    /// <p>If you modify the DB instance class, an outage occurs during the change. The change is applied during the next maintenance window, unless you specify <code>ApplyImmediately</code> in your request.</p>
201    /// <p>Default: Uses existing setting</p>
202    /// <p>Constraints:</p>
203    /// <ul>
204    /// <li>
205    /// <p>If you are modifying the DB instance class and upgrading the engine version at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
206    /// </ul>
207    pub fn get_db_instance_class(&self) -> &::std::option::Option<::std::string::String> {
208        self.inner.get_db_instance_class()
209    }
210    /// <p>The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance isn't in a VPC, you can also use this parameter to move your DB instance into a VPC. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC">Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
211    /// <p>Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you enable <code>ApplyImmediately</code>.</p>
212    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
213    /// <p>Constraints:</p>
214    /// <ul>
215    /// <li>
216    /// <p>If supplied, must match existing DB subnet group.</p></li>
217    /// </ul>
218    /// <p>Example: <code>mydbsubnetgroup</code></p>
219    pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
220        self.inner = self.inner.db_subnet_group_name(input.into());
221        self
222    }
223    /// <p>The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance isn't in a VPC, you can also use this parameter to move your DB instance into a VPC. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC">Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
224    /// <p>Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you enable <code>ApplyImmediately</code>.</p>
225    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
226    /// <p>Constraints:</p>
227    /// <ul>
228    /// <li>
229    /// <p>If supplied, must match existing DB subnet group.</p></li>
230    /// </ul>
231    /// <p>Example: <code>mydbsubnetgroup</code></p>
232    pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
233        self.inner = self.inner.set_db_subnet_group_name(input);
234        self
235    }
236    /// <p>The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance isn't in a VPC, you can also use this parameter to move your DB instance into a VPC. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC">Working with a DB instance in a VPC</a> in the <i>Amazon RDS User Guide</i>.</p>
237    /// <p>Changing the subnet group causes an outage during the change. The change is applied during the next maintenance window, unless you enable <code>ApplyImmediately</code>.</p>
238    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
239    /// <p>Constraints:</p>
240    /// <ul>
241    /// <li>
242    /// <p>If supplied, must match existing DB subnet group.</p></li>
243    /// </ul>
244    /// <p>Example: <code>mydbsubnetgroup</code></p>
245    pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
246        self.inner.get_db_subnet_group_name()
247    }
248    ///
249    /// Appends an item to `DBSecurityGroups`.
250    ///
251    /// To override the contents of this collection use [`set_db_security_groups`](Self::set_db_security_groups).
252    ///
253    /// <p>A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
254    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
255    /// <p>Constraints:</p>
256    /// <ul>
257    /// <li>
258    /// <p>If supplied, must match existing DB security groups.</p></li>
259    /// </ul>
260    pub fn db_security_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
261        self.inner = self.inner.db_security_groups(input.into());
262        self
263    }
264    /// <p>A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
265    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
266    /// <p>Constraints:</p>
267    /// <ul>
268    /// <li>
269    /// <p>If supplied, must match existing DB security groups.</p></li>
270    /// </ul>
271    pub fn set_db_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
272        self.inner = self.inner.set_db_security_groups(input);
273        self
274    }
275    /// <p>A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
276    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
277    /// <p>Constraints:</p>
278    /// <ul>
279    /// <li>
280    /// <p>If supplied, must match existing DB security groups.</p></li>
281    /// </ul>
282    pub fn get_db_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
283        self.inner.get_db_security_groups()
284    }
285    ///
286    /// Appends an item to `VpcSecurityGroupIds`.
287    ///
288    /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
289    ///
290    /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance. This change is asynchronously applied as soon as possible.</p>
291    /// <p>This setting doesn't apply to the following DB instances:</p>
292    /// <ul>
293    /// <li>
294    /// <p>Amazon Aurora (The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.)</p></li>
295    /// <li>
296    /// <p>RDS Custom</p></li>
297    /// </ul>
298    /// <p>Constraints:</p>
299    /// <ul>
300    /// <li>
301    /// <p>If supplied, must match existing VPC security group IDs.</p></li>
302    /// </ul>
303    pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
304        self.inner = self.inner.vpc_security_group_ids(input.into());
305        self
306    }
307    /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance. This change is asynchronously applied as soon as possible.</p>
308    /// <p>This setting doesn't apply to the following DB instances:</p>
309    /// <ul>
310    /// <li>
311    /// <p>Amazon Aurora (The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.)</p></li>
312    /// <li>
313    /// <p>RDS Custom</p></li>
314    /// </ul>
315    /// <p>Constraints:</p>
316    /// <ul>
317    /// <li>
318    /// <p>If supplied, must match existing VPC security group IDs.</p></li>
319    /// </ul>
320    pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
321        self.inner = self.inner.set_vpc_security_group_ids(input);
322        self
323    }
324    /// <p>A list of Amazon EC2 VPC security groups to associate with this DB instance. This change is asynchronously applied as soon as possible.</p>
325    /// <p>This setting doesn't apply to the following DB instances:</p>
326    /// <ul>
327    /// <li>
328    /// <p>Amazon Aurora (The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.)</p></li>
329    /// <li>
330    /// <p>RDS Custom</p></li>
331    /// </ul>
332    /// <p>Constraints:</p>
333    /// <ul>
334    /// <li>
335    /// <p>If supplied, must match existing VPC security group IDs.</p></li>
336    /// </ul>
337    pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
338        self.inner.get_vpc_security_group_ids()
339    }
340    /// <p>Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB instance. By default, this parameter is disabled.</p>
341    /// <p>If this parameter is disabled, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to <code>RebootDBInstance</code>, or the next failure reboot. Review the table of parameters in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html">Modifying a DB Instance</a> in the <i>Amazon RDS User Guide</i> to see the impact of enabling or disabling <code>ApplyImmediately</code> for each modified parameter and to determine when the changes are applied.</p>
342    pub fn apply_immediately(mut self, input: bool) -> Self {
343        self.inner = self.inner.apply_immediately(input);
344        self
345    }
346    /// <p>Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB instance. By default, this parameter is disabled.</p>
347    /// <p>If this parameter is disabled, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to <code>RebootDBInstance</code>, or the next failure reboot. Review the table of parameters in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html">Modifying a DB Instance</a> in the <i>Amazon RDS User Guide</i> to see the impact of enabling or disabling <code>ApplyImmediately</code> for each modified parameter and to determine when the changes are applied.</p>
348    pub fn set_apply_immediately(mut self, input: ::std::option::Option<bool>) -> Self {
349        self.inner = self.inner.set_apply_immediately(input);
350        self
351    }
352    /// <p>Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the DB instance. By default, this parameter is disabled.</p>
353    /// <p>If this parameter is disabled, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to <code>RebootDBInstance</code>, or the next failure reboot. Review the table of parameters in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html">Modifying a DB Instance</a> in the <i>Amazon RDS User Guide</i> to see the impact of enabling or disabling <code>ApplyImmediately</code> for each modified parameter and to determine when the changes are applied.</p>
354    pub fn get_apply_immediately(&self) -> &::std::option::Option<bool> {
355        self.inner.get_apply_immediately()
356    }
357    /// <p>The new password for the master user.</p>
358    /// <p>Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the <code>MasterUserPassword</code> element exists in the <code>PendingModifiedValues</code> element of the operation response.</p><note>
359    /// <p>Amazon RDS API operations never return the password, so this operation provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.</p>
360    /// </note>
361    /// <p>This setting doesn't apply to the following DB instances:</p>
362    /// <ul>
363    /// <li>
364    /// <p>Amazon Aurora</p>
365    /// <p>The password for the master user is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p></li>
366    /// <li>
367    /// <p>RDS Custom</p></li>
368    /// <li>
369    /// <p>RDS for Oracle CDBs in the multi-tenant configuration</p>
370    /// <p>Specify the master password in <code>ModifyTenantDatabase</code> instead.</p></li>
371    /// </ul>
372    /// <p>Default: Uses existing setting</p>
373    /// <p>Constraints:</p>
374    /// <ul>
375    /// <li>
376    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
377    /// <li>
378    /// <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>
379    /// </ul>
380    /// <p>Length Constraints:</p>
381    /// <ul>
382    /// <li>
383    /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
384    /// <li>
385    /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
386    /// <li>
387    /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
388    /// <li>
389    /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
390    /// <li>
391    /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
392    /// <li>
393    /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
394    /// </ul>
395    pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
396        self.inner = self.inner.master_user_password(input.into());
397        self
398    }
399    /// <p>The new password for the master user.</p>
400    /// <p>Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the <code>MasterUserPassword</code> element exists in the <code>PendingModifiedValues</code> element of the operation response.</p><note>
401    /// <p>Amazon RDS API operations never return the password, so this operation provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.</p>
402    /// </note>
403    /// <p>This setting doesn't apply to the following DB instances:</p>
404    /// <ul>
405    /// <li>
406    /// <p>Amazon Aurora</p>
407    /// <p>The password for the master user is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p></li>
408    /// <li>
409    /// <p>RDS Custom</p></li>
410    /// <li>
411    /// <p>RDS for Oracle CDBs in the multi-tenant configuration</p>
412    /// <p>Specify the master password in <code>ModifyTenantDatabase</code> instead.</p></li>
413    /// </ul>
414    /// <p>Default: Uses existing setting</p>
415    /// <p>Constraints:</p>
416    /// <ul>
417    /// <li>
418    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
419    /// <li>
420    /// <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>
421    /// </ul>
422    /// <p>Length Constraints:</p>
423    /// <ul>
424    /// <li>
425    /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
426    /// <li>
427    /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
428    /// <li>
429    /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
430    /// <li>
431    /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
432    /// <li>
433    /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
434    /// <li>
435    /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
436    /// </ul>
437    pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
438        self.inner = self.inner.set_master_user_password(input);
439        self
440    }
441    /// <p>The new password for the master user.</p>
442    /// <p>Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the <code>MasterUserPassword</code> element exists in the <code>PendingModifiedValues</code> element of the operation response.</p><note>
443    /// <p>Amazon RDS API operations never return the password, so this operation provides a way to regain access to a primary instance user if the password is lost. This includes restoring privileges that might have been accidentally revoked.</p>
444    /// </note>
445    /// <p>This setting doesn't apply to the following DB instances:</p>
446    /// <ul>
447    /// <li>
448    /// <p>Amazon Aurora</p>
449    /// <p>The password for the master user is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p></li>
450    /// <li>
451    /// <p>RDS Custom</p></li>
452    /// <li>
453    /// <p>RDS for Oracle CDBs in the multi-tenant configuration</p>
454    /// <p>Specify the master password in <code>ModifyTenantDatabase</code> instead.</p></li>
455    /// </ul>
456    /// <p>Default: Uses existing setting</p>
457    /// <p>Constraints:</p>
458    /// <ul>
459    /// <li>
460    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
461    /// <li>
462    /// <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>
463    /// </ul>
464    /// <p>Length Constraints:</p>
465    /// <ul>
466    /// <li>
467    /// <p>RDS for Db2 - Must contain from 8 to 255 characters.</p></li>
468    /// <li>
469    /// <p>RDS for MariaDB - Must contain from 8 to 41 characters.</p></li>
470    /// <li>
471    /// <p>RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.</p></li>
472    /// <li>
473    /// <p>RDS for MySQL - Must contain from 8 to 41 characters.</p></li>
474    /// <li>
475    /// <p>RDS for Oracle - Must contain from 8 to 30 characters.</p></li>
476    /// <li>
477    /// <p>RDS for PostgreSQL - Must contain from 8 to 128 characters.</p></li>
478    /// </ul>
479    pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
480        self.inner.get_master_user_password()
481    }
482    /// <p>The name of the DB parameter group to apply to the DB instance.</p>
483    /// <p>Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. In this case, the DB instance isn't rebooted automatically, and the parameter changes aren't applied during the next maintenance window. However, if you modify dynamic parameters in the newly associated DB parameter group, these changes are applied immediately without a reboot.</p>
484    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
485    /// <p>Default: Uses existing setting</p>
486    /// <p>Constraints:</p>
487    /// <ul>
488    /// <li>
489    /// <p>Must be in the same DB parameter group family as the DB instance.</p></li>
490    /// </ul>
491    pub fn db_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
492        self.inner = self.inner.db_parameter_group_name(input.into());
493        self
494    }
495    /// <p>The name of the DB parameter group to apply to the DB instance.</p>
496    /// <p>Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. In this case, the DB instance isn't rebooted automatically, and the parameter changes aren't applied during the next maintenance window. However, if you modify dynamic parameters in the newly associated DB parameter group, these changes are applied immediately without a reboot.</p>
497    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
498    /// <p>Default: Uses existing setting</p>
499    /// <p>Constraints:</p>
500    /// <ul>
501    /// <li>
502    /// <p>Must be in the same DB parameter group family as the DB instance.</p></li>
503    /// </ul>
504    pub fn set_db_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
505        self.inner = self.inner.set_db_parameter_group_name(input);
506        self
507    }
508    /// <p>The name of the DB parameter group to apply to the DB instance.</p>
509    /// <p>Changing this setting doesn't result in an outage. The parameter group name itself is changed immediately, but the actual parameter changes are not applied until you reboot the instance without failover. In this case, the DB instance isn't rebooted automatically, and the parameter changes aren't applied during the next maintenance window. However, if you modify dynamic parameters in the newly associated DB parameter group, these changes are applied immediately without a reboot.</p>
510    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
511    /// <p>Default: Uses existing setting</p>
512    /// <p>Constraints:</p>
513    /// <ul>
514    /// <li>
515    /// <p>Must be in the same DB parameter group family as the DB instance.</p></li>
516    /// </ul>
517    pub fn get_db_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
518        self.inner.get_db_parameter_group_name()
519    }
520    /// <p>The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.</p><note>
521    /// <p>Enabling and disabling backups can result in a brief I/O suspension that lasts from a few seconds to a few minutes, depending on the size and class of your DB instance.</p>
522    /// </note>
523    /// <p>These changes are applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.</p>
524    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
525    /// <p>Default: Uses existing setting</p>
526    /// <p>Constraints:</p>
527    /// <ul>
528    /// <li>
529    /// <p>Must be a value from 0 to 35.</p></li>
530    /// <li>
531    /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
532    /// <li>
533    /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
534    /// </ul>
535    pub fn backup_retention_period(mut self, input: i32) -> Self {
536        self.inner = self.inner.backup_retention_period(input);
537        self
538    }
539    /// <p>The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.</p><note>
540    /// <p>Enabling and disabling backups can result in a brief I/O suspension that lasts from a few seconds to a few minutes, depending on the size and class of your DB instance.</p>
541    /// </note>
542    /// <p>These changes are applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.</p>
543    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
544    /// <p>Default: Uses existing setting</p>
545    /// <p>Constraints:</p>
546    /// <ul>
547    /// <li>
548    /// <p>Must be a value from 0 to 35.</p></li>
549    /// <li>
550    /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
551    /// <li>
552    /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
553    /// </ul>
554    pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
555        self.inner = self.inner.set_backup_retention_period(input);
556        self
557    }
558    /// <p>The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.</p><note>
559    /// <p>Enabling and disabling backups can result in a brief I/O suspension that lasts from a few seconds to a few minutes, depending on the size and class of your DB instance.</p>
560    /// </note>
561    /// <p>These changes are applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you change the parameter from one non-zero value to another non-zero value, the change is asynchronously applied as soon as possible.</p>
562    /// <p>This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster. For more information, see <code>ModifyDBCluster</code>.</p>
563    /// <p>Default: Uses existing setting</p>
564    /// <p>Constraints:</p>
565    /// <ul>
566    /// <li>
567    /// <p>Must be a value from 0 to 35.</p></li>
568    /// <li>
569    /// <p>Can't be set to 0 if the DB instance is a source to read replicas.</p></li>
570    /// <li>
571    /// <p>Can't be set to 0 for an RDS Custom for Oracle DB instance.</p></li>
572    /// </ul>
573    pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
574        self.inner.get_backup_retention_period()
575    }
576    /// <p>The daily time range during which automated backups are created if automated backups are enabled, as determined by the <code>BackupRetentionPeriod</code> parameter. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. 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>
577    /// <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. For more information, see <code>ModifyDBCluster</code>.</p>
578    /// <p>Constraints:</p>
579    /// <ul>
580    /// <li>
581    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
582    /// <li>
583    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
584    /// <li>
585    /// <p>Must not conflict with the preferred maintenance window.</p></li>
586    /// <li>
587    /// <p>Must be at least 30 minutes.</p></li>
588    /// </ul>
589    pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
590        self.inner = self.inner.preferred_backup_window(input.into());
591        self
592    }
593    /// <p>The daily time range during which automated backups are created if automated backups are enabled, as determined by the <code>BackupRetentionPeriod</code> parameter. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. 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>
594    /// <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. For more information, see <code>ModifyDBCluster</code>.</p>
595    /// <p>Constraints:</p>
596    /// <ul>
597    /// <li>
598    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
599    /// <li>
600    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
601    /// <li>
602    /// <p>Must not conflict with the preferred maintenance window.</p></li>
603    /// <li>
604    /// <p>Must be at least 30 minutes.</p></li>
605    /// </ul>
606    pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
607        self.inner = self.inner.set_preferred_backup_window(input);
608        self
609    }
610    /// <p>The daily time range during which automated backups are created if automated backups are enabled, as determined by the <code>BackupRetentionPeriod</code> parameter. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. 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>
611    /// <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. For more information, see <code>ModifyDBCluster</code>.</p>
612    /// <p>Constraints:</p>
613    /// <ul>
614    /// <li>
615    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
616    /// <li>
617    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
618    /// <li>
619    /// <p>Must not conflict with the preferred maintenance window.</p></li>
620    /// <li>
621    /// <p>Must be at least 30 minutes.</p></li>
622    /// </ul>
623    pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
624        self.inner.get_preferred_backup_window()
625    }
626    /// <p>The weekly time range during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter causes a reboot of the DB instance. If you change this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.</p>
627    /// <p>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>
628    /// <p>Default: Uses existing setting</p>
629    /// <p>Constraints:</p>
630    /// <ul>
631    /// <li>
632    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
633    /// <li>
634    /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
635    /// <li>
636    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
637    /// <li>
638    /// <p>Must not conflict with the preferred backup window.</p></li>
639    /// <li>
640    /// <p>Must be at least 30 minutes.</p></li>
641    /// </ul>
642    pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
643        self.inner = self.inner.preferred_maintenance_window(input.into());
644        self
645    }
646    /// <p>The weekly time range during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter causes a reboot of the DB instance. If you change this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.</p>
647    /// <p>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>
648    /// <p>Default: Uses existing setting</p>
649    /// <p>Constraints:</p>
650    /// <ul>
651    /// <li>
652    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
653    /// <li>
654    /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
655    /// <li>
656    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
657    /// <li>
658    /// <p>Must not conflict with the preferred backup window.</p></li>
659    /// <li>
660    /// <p>Must be at least 30 minutes.</p></li>
661    /// </ul>
662    pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
663        self.inner = self.inner.set_preferred_maintenance_window(input);
664        self
665    }
666    /// <p>The weekly time range during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If there are pending actions that cause a reboot, and the maintenance window is changed to include the current time, then changing this parameter causes a reboot of the DB instance. If you change this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.</p>
667    /// <p>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>
668    /// <p>Default: Uses existing setting</p>
669    /// <p>Constraints:</p>
670    /// <ul>
671    /// <li>
672    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
673    /// <li>
674    /// <p>The day values must be <code>mon | tue | wed | thu | fri | sat | sun</code>.</p></li>
675    /// <li>
676    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
677    /// <li>
678    /// <p>Must not conflict with the preferred backup window.</p></li>
679    /// <li>
680    /// <p>Must be at least 30 minutes.</p></li>
681    /// </ul>
682    pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
683        self.inner.get_preferred_maintenance_window()
684    }
685    /// <p>Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
686    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
687    pub fn multi_az(mut self, input: bool) -> Self {
688        self.inner = self.inner.multi_az(input);
689        self
690    }
691    /// <p>Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
692    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
693    pub fn set_multi_az(mut self, input: ::std::option::Option<bool>) -> Self {
694        self.inner = self.inner.set_multi_az(input);
695        self
696    }
697    /// <p>Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
698    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
699    pub fn get_multi_az(&self) -> &::std::option::Option<bool> {
700        self.inner.get_multi_az()
701    }
702    /// <p>The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
703    /// <p>For major version upgrades, if a nondefault DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.</p>
704    /// <p>If you specify only a major version, Amazon RDS updates the DB instance to the default minor version if the current minor version is lower. For information about valid engine versions, see <code>CreateDBInstance</code>, or call <code>DescribeDBEngineVersions</code>.</p>
705    /// <p>If the instance that you're modifying is acting as a read replica, the engine version that you specify must be the same or higher than the version that the source DB instance or cluster is running.</p>
706    /// <p>In RDS Custom for Oracle, this parameter is supported for read replicas only if they are in the <code>PATCH_DB_FAILURE</code> lifecycle.</p>
707    /// <p>Constraints:</p>
708    /// <ul>
709    /// <li>
710    /// <p>If you are upgrading the engine version and modifying the DB instance class at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
711    /// </ul>
712    pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
713        self.inner = self.inner.engine_version(input.into());
714        self
715    }
716    /// <p>The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
717    /// <p>For major version upgrades, if a nondefault DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.</p>
718    /// <p>If you specify only a major version, Amazon RDS updates the DB instance to the default minor version if the current minor version is lower. For information about valid engine versions, see <code>CreateDBInstance</code>, or call <code>DescribeDBEngineVersions</code>.</p>
719    /// <p>If the instance that you're modifying is acting as a read replica, the engine version that you specify must be the same or higher than the version that the source DB instance or cluster is running.</p>
720    /// <p>In RDS Custom for Oracle, this parameter is supported for read replicas only if they are in the <code>PATCH_DB_FAILURE</code> lifecycle.</p>
721    /// <p>Constraints:</p>
722    /// <ul>
723    /// <li>
724    /// <p>If you are upgrading the engine version and modifying the DB instance class at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
725    /// </ul>
726    pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
727        self.inner = self.inner.set_engine_version(input);
728        self
729    }
730    /// <p>The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
731    /// <p>For major version upgrades, if a nondefault DB parameter group is currently in use, a new DB parameter group in the DB parameter group family for the new engine version must be specified. The new DB parameter group can be the default for that DB parameter group family.</p>
732    /// <p>If you specify only a major version, Amazon RDS updates the DB instance to the default minor version if the current minor version is lower. For information about valid engine versions, see <code>CreateDBInstance</code>, or call <code>DescribeDBEngineVersions</code>.</p>
733    /// <p>If the instance that you're modifying is acting as a read replica, the engine version that you specify must be the same or higher than the version that the source DB instance or cluster is running.</p>
734    /// <p>In RDS Custom for Oracle, this parameter is supported for read replicas only if they are in the <code>PATCH_DB_FAILURE</code> lifecycle.</p>
735    /// <p>Constraints:</p>
736    /// <ul>
737    /// <li>
738    /// <p>If you are upgrading the engine version and modifying the DB instance class at the same time, the currently running engine version must be supported on the specified DB instance class. Otherwise, the operation returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class.</p></li>
739    /// </ul>
740    pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
741        self.inner.get_engine_version()
742    }
743    /// <p>Specifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
744    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
745    /// <p>Constraints:</p>
746    /// <ul>
747    /// <li>
748    /// <p>Major version upgrades must be allowed when specifying a value for the <code>EngineVersion</code> parameter that's a different major version than the DB instance's current version.</p></li>
749    /// </ul>
750    pub fn allow_major_version_upgrade(mut self, input: bool) -> Self {
751        self.inner = self.inner.allow_major_version_upgrade(input);
752        self
753    }
754    /// <p>Specifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
755    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
756    /// <p>Constraints:</p>
757    /// <ul>
758    /// <li>
759    /// <p>Major version upgrades must be allowed when specifying a value for the <code>EngineVersion</code> parameter that's a different major version than the DB instance's current version.</p></li>
760    /// </ul>
761    pub fn set_allow_major_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
762        self.inner = self.inner.set_allow_major_version_upgrade(input);
763        self
764    }
765    /// <p>Specifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.</p>
766    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
767    /// <p>Constraints:</p>
768    /// <ul>
769    /// <li>
770    /// <p>Major version upgrades must be allowed when specifying a value for the <code>EngineVersion</code> parameter that's a different major version than the DB instance's current version.</p></li>
771    /// </ul>
772    pub fn get_allow_major_version_upgrade(&self) -> &::std::option::Option<bool> {
773        self.inner.get_allow_major_version_upgrade()
774    }
775    /// <p>Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all the following conditions are met:</p>
776    /// <ul>
777    /// <li>
778    /// <p>The automatic upgrade is enabled for the maintenance window.</p></li>
779    /// <li>
780    /// <p>A newer minor version is available.</p></li>
781    /// <li>
782    /// <p>RDS has enabled automatic patching for the engine version.</p></li>
783    /// </ul>
784    /// <p>If any of the preceding conditions isn't met, Amazon RDS applies the change as soon as possible and doesn't cause an outage.</p>
785    /// <p>For an RDS Custom DB instance, don't enable this setting. Otherwise, the operation returns an error.</p>
786    /// <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>
787    pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
788        self.inner = self.inner.auto_minor_version_upgrade(input);
789        self
790    }
791    /// <p>Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all the following conditions are met:</p>
792    /// <ul>
793    /// <li>
794    /// <p>The automatic upgrade is enabled for the maintenance window.</p></li>
795    /// <li>
796    /// <p>A newer minor version is available.</p></li>
797    /// <li>
798    /// <p>RDS has enabled automatic patching for the engine version.</p></li>
799    /// </ul>
800    /// <p>If any of the preceding conditions isn't met, Amazon RDS applies the change as soon as possible and doesn't cause an outage.</p>
801    /// <p>For an RDS Custom DB instance, don't enable this setting. Otherwise, the operation returns an error.</p>
802    /// <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>
803    pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
804        self.inner = self.inner.set_auto_minor_version_upgrade(input);
805        self
806    }
807    /// <p>Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all the following conditions are met:</p>
808    /// <ul>
809    /// <li>
810    /// <p>The automatic upgrade is enabled for the maintenance window.</p></li>
811    /// <li>
812    /// <p>A newer minor version is available.</p></li>
813    /// <li>
814    /// <p>RDS has enabled automatic patching for the engine version.</p></li>
815    /// </ul>
816    /// <p>If any of the preceding conditions isn't met, Amazon RDS applies the change as soon as possible and doesn't cause an outage.</p>
817    /// <p>For an RDS Custom DB instance, don't enable this setting. Otherwise, the operation returns an error.</p>
818    /// <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>
819    pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
820        self.inner.get_auto_minor_version_upgrade()
821    }
822    /// <p>The license model for the DB instance.</p>
823    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
824    /// <p>Valid Values:</p>
825    /// <ul>
826    /// <li>
827    /// <p>RDS for Db2 - <code>bring-your-own-license</code></p></li>
828    /// <li>
829    /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
830    /// <li>
831    /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
832    /// <li>
833    /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
834    /// <li>
835    /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
836    /// <li>
837    /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
838    /// </ul>
839    pub fn license_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
840        self.inner = self.inner.license_model(input.into());
841        self
842    }
843    /// <p>The license model for the DB instance.</p>
844    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
845    /// <p>Valid Values:</p>
846    /// <ul>
847    /// <li>
848    /// <p>RDS for Db2 - <code>bring-your-own-license</code></p></li>
849    /// <li>
850    /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
851    /// <li>
852    /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
853    /// <li>
854    /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
855    /// <li>
856    /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
857    /// <li>
858    /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
859    /// </ul>
860    pub fn set_license_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
861        self.inner = self.inner.set_license_model(input);
862        self
863    }
864    /// <p>The license model for the DB instance.</p>
865    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
866    /// <p>Valid Values:</p>
867    /// <ul>
868    /// <li>
869    /// <p>RDS for Db2 - <code>bring-your-own-license</code></p></li>
870    /// <li>
871    /// <p>RDS for MariaDB - <code>general-public-license</code></p></li>
872    /// <li>
873    /// <p>RDS for Microsoft SQL Server - <code>license-included</code></p></li>
874    /// <li>
875    /// <p>RDS for MySQL - <code>general-public-license</code></p></li>
876    /// <li>
877    /// <p>RDS for Oracle - <code>bring-your-own-license | license-included</code></p></li>
878    /// <li>
879    /// <p>RDS for PostgreSQL - <code>postgresql-license</code></p></li>
880    /// </ul>
881    pub fn get_license_model(&self) -> &::std::option::Option<::std::string::String> {
882        self.inner.get_license_model()
883    }
884    /// <p>The new Provisioned IOPS (I/O operations per second) value for the RDS instance.</p>
885    /// <p>Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.</p>
886    /// <p>If you choose to migrate your DB instance from using standard storage to Provisioned IOPS (io1), or from Provisioned IOPS to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
887    /// <p></p>
888    /// <p>Constraints:</p>
889    /// <ul>
890    /// <li>
891    /// <p>For RDS for MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL - The value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p></li>
892    /// <li>
893    /// <p>When you increase the Provisioned IOPS, you must also specify the <code>AllocatedStorage</code> parameter. You can use the current value for <code>AllocatedStorage</code>.</p></li>
894    /// </ul>
895    /// <p>Default: Uses existing setting</p>
896    pub fn iops(mut self, input: i32) -> Self {
897        self.inner = self.inner.iops(input);
898        self
899    }
900    /// <p>The new Provisioned IOPS (I/O operations per second) value for the RDS instance.</p>
901    /// <p>Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.</p>
902    /// <p>If you choose to migrate your DB instance from using standard storage to Provisioned IOPS (io1), or from Provisioned IOPS to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
903    /// <p></p>
904    /// <p>Constraints:</p>
905    /// <ul>
906    /// <li>
907    /// <p>For RDS for MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL - The value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p></li>
908    /// <li>
909    /// <p>When you increase the Provisioned IOPS, you must also specify the <code>AllocatedStorage</code> parameter. You can use the current value for <code>AllocatedStorage</code>.</p></li>
910    /// </ul>
911    /// <p>Default: Uses existing setting</p>
912    pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
913        self.inner = self.inner.set_iops(input);
914        self
915    }
916    /// <p>The new Provisioned IOPS (I/O operations per second) value for the RDS instance.</p>
917    /// <p>Changing this setting doesn't result in an outage and the change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request. If you are migrating from Provisioned IOPS to standard storage, set this value to 0. The DB instance will require a reboot for the change in storage type to take effect.</p>
918    /// <p>If you choose to migrate your DB instance from using standard storage to Provisioned IOPS (io1), or from Provisioned IOPS to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
919    /// <p></p>
920    /// <p>Constraints:</p>
921    /// <ul>
922    /// <li>
923    /// <p>For RDS for MariaDB, RDS for MySQL, RDS for Oracle, and RDS for PostgreSQL - The value supplied must be at least 10% greater than the current value. Values that are not at least 10% greater than the existing value are rounded up so that they are 10% greater than the current value.</p></li>
924    /// <li>
925    /// <p>When you increase the Provisioned IOPS, you must also specify the <code>AllocatedStorage</code> parameter. You can use the current value for <code>AllocatedStorage</code>.</p></li>
926    /// </ul>
927    /// <p>Default: Uses existing setting</p>
928    pub fn get_iops(&self) -> &::std::option::Option<i32> {
929        self.inner.get_iops()
930    }
931    /// <p>The storage throughput value for the DB instance.</p>
932    /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
933    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
934    pub fn storage_throughput(mut self, input: i32) -> Self {
935        self.inner = self.inner.storage_throughput(input);
936        self
937    }
938    /// <p>The storage throughput value for the DB instance.</p>
939    /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
940    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
941    pub fn set_storage_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
942        self.inner = self.inner.set_storage_throughput(input);
943        self
944    }
945    /// <p>The storage throughput value for the DB instance.</p>
946    /// <p>This setting applies only to the <code>gp3</code> storage type.</p>
947    /// <p>This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.</p>
948    pub fn get_storage_throughput(&self) -> &::std::option::Option<i32> {
949        self.inner.get_storage_throughput()
950    }
951    /// <p>The option group to associate the DB instance with.</p>
952    /// <p>Changing this parameter doesn't result in an outage, with one exception. If the parameter change results in an option group that enables OEM, it can cause a brief period, lasting less than a second, during which new connections are rejected but existing connections aren't interrupted.</p>
953    /// <p>The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
954    /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
955    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
956    pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
957        self.inner = self.inner.option_group_name(input.into());
958        self
959    }
960    /// <p>The option group to associate the DB instance with.</p>
961    /// <p>Changing this parameter doesn't result in an outage, with one exception. If the parameter change results in an option group that enables OEM, it can cause a brief period, lasting less than a second, during which new connections are rejected but existing connections aren't interrupted.</p>
962    /// <p>The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
963    /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
964    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
965    pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
966        self.inner = self.inner.set_option_group_name(input);
967        self
968    }
969    /// <p>The option group to associate the DB instance with.</p>
970    /// <p>Changing this parameter doesn't result in an outage, with one exception. If the parameter change results in an option group that enables OEM, it can cause a brief period, lasting less than a second, during which new connections are rejected but existing connections aren't interrupted.</p>
971    /// <p>The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is enabled for this request.</p>
972    /// <p>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance after it is associated with a DB instance.</p>
973    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
974    pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
975        self.inner.get_option_group_name()
976    }
977    /// <p>The new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs immediately if you enable <code>ApplyImmediately</code>, or will occur during the next maintenance window if you disable <code>ApplyImmediately</code>. This value is stored as a lowercase string.</p>
978    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
979    /// <p>Constraints:</p>
980    /// <ul>
981    /// <li>
982    /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
983    /// <li>
984    /// <p>The first character must be a letter.</p></li>
985    /// <li>
986    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
987    /// </ul>
988    /// <p>Example: <code>mydbinstance</code></p>
989    pub fn new_db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
990        self.inner = self.inner.new_db_instance_identifier(input.into());
991        self
992    }
993    /// <p>The new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs immediately if you enable <code>ApplyImmediately</code>, or will occur during the next maintenance window if you disable <code>ApplyImmediately</code>. This value is stored as a lowercase string.</p>
994    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
995    /// <p>Constraints:</p>
996    /// <ul>
997    /// <li>
998    /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
999    /// <li>
1000    /// <p>The first character must be a letter.</p></li>
1001    /// <li>
1002    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1003    /// </ul>
1004    /// <p>Example: <code>mydbinstance</code></p>
1005    pub fn set_new_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1006        self.inner = self.inner.set_new_db_instance_identifier(input);
1007        self
1008    }
1009    /// <p>The new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs immediately if you enable <code>ApplyImmediately</code>, or will occur during the next maintenance window if you disable <code>ApplyImmediately</code>. This value is stored as a lowercase string.</p>
1010    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1011    /// <p>Constraints:</p>
1012    /// <ul>
1013    /// <li>
1014    /// <p>Must contain from 1 to 63 letters, numbers, or hyphens.</p></li>
1015    /// <li>
1016    /// <p>The first character must be a letter.</p></li>
1017    /// <li>
1018    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
1019    /// </ul>
1020    /// <p>Example: <code>mydbinstance</code></p>
1021    pub fn get_new_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
1022        self.inner.get_new_db_instance_identifier()
1023    }
1024    /// <p>The storage type to associate with the DB instance.</p>
1025    /// <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>
1026    /// <p>If you choose to migrate your DB instance from using standard storage to gp2 (General Purpose SSD), gp3, or Provisioned IOPS (io1), or from these storage types to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
1027    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
1028    /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp2</code>.</p>
1029    pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1030        self.inner = self.inner.storage_type(input.into());
1031        self
1032    }
1033    /// <p>The storage type to associate with the DB instance.</p>
1034    /// <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>
1035    /// <p>If you choose to migrate your DB instance from using standard storage to gp2 (General Purpose SSD), gp3, or Provisioned IOPS (io1), or from these storage types to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
1036    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
1037    /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp2</code>.</p>
1038    pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1039        self.inner = self.inner.set_storage_type(input);
1040        self
1041    }
1042    /// <p>The storage type to associate with the DB instance.</p>
1043    /// <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>
1044    /// <p>If you choose to migrate your DB instance from using standard storage to gp2 (General Purpose SSD), gp3, or Provisioned IOPS (io1), or from these storage types to standard storage, the process can take time. The duration of the migration depends on several factors such as database load, storage size, storage type (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and the number of prior scale storage operations. Typical migration times are under 24 hours, but the process can take up to several days in some cases. During the migration, the DB instance is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are suspended. No other Amazon RDS operations can take place for the instance, including modifying the instance, rebooting the instance, deleting the instance, creating a read replica for the instance, and creating a DB snapshot of the instance.</p>
1045    /// <p>Valid Values: <code>gp2 | gp3 | io1 | io2 | standard</code></p>
1046    /// <p>Default: <code>io1</code>, if the <code>Iops</code> parameter is specified. Otherwise, <code>gp2</code>.</p>
1047    pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
1048        self.inner.get_storage_type()
1049    }
1050    /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
1051    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1052    pub fn tde_credential_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1053        self.inner = self.inner.tde_credential_arn(input.into());
1054        self
1055    }
1056    /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
1057    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1058    pub fn set_tde_credential_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1059        self.inner = self.inner.set_tde_credential_arn(input);
1060        self
1061    }
1062    /// <p>The ARN from the key store with which to associate the instance for TDE encryption.</p>
1063    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1064    pub fn get_tde_credential_arn(&self) -> &::std::option::Option<::std::string::String> {
1065        self.inner.get_tde_credential_arn()
1066    }
1067    /// <p>The password for the given ARN from the key store in order to access the device.</p>
1068    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1069    pub fn tde_credential_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1070        self.inner = self.inner.tde_credential_password(input.into());
1071        self
1072    }
1073    /// <p>The password for the given ARN from the key store in order to access the device.</p>
1074    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1075    pub fn set_tde_credential_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1076        self.inner = self.inner.set_tde_credential_password(input);
1077        self
1078    }
1079    /// <p>The password for the given ARN from the key store in order to access the device.</p>
1080    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1081    pub fn get_tde_credential_password(&self) -> &::std::option::Option<::std::string::String> {
1082        self.inner.get_tde_credential_password()
1083    }
1084    /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
1085    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1086    /// <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>
1087    pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1088        self.inner = self.inner.ca_certificate_identifier(input.into());
1089        self
1090    }
1091    /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
1092    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1093    /// <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>
1094    pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1095        self.inner = self.inner.set_ca_certificate_identifier(input);
1096        self
1097    }
1098    /// <p>The CA certificate identifier to use for the DB instance's server certificate.</p>
1099    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1100    /// <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>
1101    pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
1102        self.inner.get_ca_certificate_identifier()
1103    }
1104    /// <p>The Active Directory directory ID to move the DB instance to. Specify <code>none</code> to remove the instance from its current domain. You must create the domain before this operation. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
1105    /// <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>
1106    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1107    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1108        self.inner = self.inner.domain(input.into());
1109        self
1110    }
1111    /// <p>The Active Directory directory ID to move the DB instance to. Specify <code>none</code> to remove the instance from its current domain. You must create the domain before this operation. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
1112    /// <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>
1113    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1114    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1115        self.inner = self.inner.set_domain(input);
1116        self
1117    }
1118    /// <p>The Active Directory directory ID to move the DB instance to. Specify <code>none</code> to remove the instance from its current domain. You must create the domain before this operation. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.</p>
1119    /// <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>
1120    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1121    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
1122        self.inner.get_domain()
1123    }
1124    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
1125    /// <p>Constraints:</p>
1126    /// <ul>
1127    /// <li>
1128    /// <p>Can't be longer than 64 characters.</p></li>
1129    /// </ul>
1130    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
1131    pub fn domain_fqdn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1132        self.inner = self.inner.domain_fqdn(input.into());
1133        self
1134    }
1135    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
1136    /// <p>Constraints:</p>
1137    /// <ul>
1138    /// <li>
1139    /// <p>Can't be longer than 64 characters.</p></li>
1140    /// </ul>
1141    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
1142    pub fn set_domain_fqdn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1143        self.inner = self.inner.set_domain_fqdn(input);
1144        self
1145    }
1146    /// <p>The fully qualified domain name (FQDN) of an Active Directory domain.</p>
1147    /// <p>Constraints:</p>
1148    /// <ul>
1149    /// <li>
1150    /// <p>Can't be longer than 64 characters.</p></li>
1151    /// </ul>
1152    /// <p>Example: <code>mymanagedADtest.mymanagedAD.mydomain</code></p>
1153    pub fn get_domain_fqdn(&self) -> &::std::option::Option<::std::string::String> {
1154        self.inner.get_domain_fqdn()
1155    }
1156    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1157    /// <p>Constraints:</p>
1158    /// <ul>
1159    /// <li>
1160    /// <p>Must be in the distinguished name format.</p></li>
1161    /// </ul>
1162    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1163    pub fn domain_ou(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1164        self.inner = self.inner.domain_ou(input.into());
1165        self
1166    }
1167    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1168    /// <p>Constraints:</p>
1169    /// <ul>
1170    /// <li>
1171    /// <p>Must be in the distinguished name format.</p></li>
1172    /// </ul>
1173    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1174    pub fn set_domain_ou(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1175        self.inner = self.inner.set_domain_ou(input);
1176        self
1177    }
1178    /// <p>The Active Directory organizational unit for your DB instance to join.</p>
1179    /// <p>Constraints:</p>
1180    /// <ul>
1181    /// <li>
1182    /// <p>Must be in the distinguished name format.</p></li>
1183    /// </ul>
1184    /// <p>Example: <code>OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain</code></p>
1185    pub fn get_domain_ou(&self) -> &::std::option::Option<::std::string::String> {
1186        self.inner.get_domain_ou()
1187    }
1188    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1189    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1190    pub fn domain_auth_secret_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1191        self.inner = self.inner.domain_auth_secret_arn(input.into());
1192        self
1193    }
1194    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1195    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1196    pub fn set_domain_auth_secret_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1197        self.inner = self.inner.set_domain_auth_secret_arn(input);
1198        self
1199    }
1200    /// <p>The ARN for the Secrets Manager secret with the credentials for the user joining the domain.</p>
1201    /// <p>Example: <code>arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456</code></p>
1202    pub fn get_domain_auth_secret_arn(&self) -> &::std::option::Option<::std::string::String> {
1203        self.inner.get_domain_auth_secret_arn()
1204    }
1205    ///
1206    /// Appends an item to `DomainDnsIps`.
1207    ///
1208    /// To override the contents of this collection use [`set_domain_dns_ips`](Self::set_domain_dns_ips).
1209    ///
1210    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1211    /// <p>Constraints:</p>
1212    /// <ul>
1213    /// <li>
1214    /// <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>
1215    /// </ul>
1216    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1217    pub fn domain_dns_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1218        self.inner = self.inner.domain_dns_ips(input.into());
1219        self
1220    }
1221    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1222    /// <p>Constraints:</p>
1223    /// <ul>
1224    /// <li>
1225    /// <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>
1226    /// </ul>
1227    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1228    pub fn set_domain_dns_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1229        self.inner = self.inner.set_domain_dns_ips(input);
1230        self
1231    }
1232    /// <p>The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.</p>
1233    /// <p>Constraints:</p>
1234    /// <ul>
1235    /// <li>
1236    /// <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>
1237    /// </ul>
1238    /// <p>Example: <code>123.124.125.126,234.235.236.237</code></p>
1239    pub fn get_domain_dns_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1240        self.inner.get_domain_dns_ips()
1241    }
1242    /// <p>Specifies whether to remove the DB instance from the Active Directory domain.</p>
1243    pub fn disable_domain(mut self, input: bool) -> Self {
1244        self.inner = self.inner.disable_domain(input);
1245        self
1246    }
1247    /// <p>Specifies whether to remove the DB instance from the Active Directory domain.</p>
1248    pub fn set_disable_domain(mut self, input: ::std::option::Option<bool>) -> Self {
1249        self.inner = self.inner.set_disable_domain(input);
1250        self
1251    }
1252    /// <p>Specifies whether to remove the DB instance from the Active Directory domain.</p>
1253    pub fn get_disable_domain(&self) -> &::std::option::Option<bool> {
1254        self.inner.get_disable_domain()
1255    }
1256    /// <p>Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied.</p>
1257    /// <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. For more information, see <code>ModifyDBCluster</code>.</p>
1258    pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
1259        self.inner = self.inner.copy_tags_to_snapshot(input);
1260        self
1261    }
1262    /// <p>Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied.</p>
1263    /// <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. For more information, see <code>ModifyDBCluster</code>.</p>
1264    pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
1265        self.inner = self.inner.set_copy_tags_to_snapshot(input);
1266        self
1267    }
1268    /// <p>Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied.</p>
1269    /// <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. For more information, see <code>ModifyDBCluster</code>.</p>
1270    pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
1271        self.inner.get_copy_tags_to_snapshot()
1272    }
1273    /// <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>
1274    /// <p>If <code>MonitoringRoleArn</code> is specified, set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1275    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1276    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1277    /// <p>Default: <code>0</code></p>
1278    pub fn monitoring_interval(mut self, input: i32) -> Self {
1279        self.inner = self.inner.monitoring_interval(input);
1280        self
1281    }
1282    /// <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>
1283    /// <p>If <code>MonitoringRoleArn</code> is specified, set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1284    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1285    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1286    /// <p>Default: <code>0</code></p>
1287    pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
1288        self.inner = self.inner.set_monitoring_interval(input);
1289        self
1290    }
1291    /// <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>
1292    /// <p>If <code>MonitoringRoleArn</code> is specified, set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1293    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1294    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1295    /// <p>Default: <code>0</code></p>
1296    pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
1297        self.inner.get_monitoring_interval()
1298    }
1299    /// <p>The port number on which the database accepts connections.</p>
1300    /// <p>The value of the <code>DBPortNumber</code> parameter must not match any of the port values specified for options in the option group for the DB instance.</p>
1301    /// <p>If you change the <code>DBPortNumber</code> value, your database restarts regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1302    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1303    /// <p>Valid Values: <code>1150-65535</code></p>
1304    /// <p>Default:</p>
1305    /// <ul>
1306    /// <li>
1307    /// <p>Amazon Aurora - <code>3306</code></p></li>
1308    /// <li>
1309    /// <p>RDS for Db2 - <code>50000</code></p></li>
1310    /// <li>
1311    /// <p>RDS for MariaDB - <code>3306</code></p></li>
1312    /// <li>
1313    /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1314    /// <li>
1315    /// <p>RDS for MySQL - <code>3306</code></p></li>
1316    /// <li>
1317    /// <p>RDS for Oracle - <code>1521</code></p></li>
1318    /// <li>
1319    /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1320    /// </ul>
1321    /// <p>Constraints:</p>
1322    /// <ul>
1323    /// <li>
1324    /// <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>
1325    /// </ul>
1326    pub fn db_port_number(mut self, input: i32) -> Self {
1327        self.inner = self.inner.db_port_number(input);
1328        self
1329    }
1330    /// <p>The port number on which the database accepts connections.</p>
1331    /// <p>The value of the <code>DBPortNumber</code> parameter must not match any of the port values specified for options in the option group for the DB instance.</p>
1332    /// <p>If you change the <code>DBPortNumber</code> value, your database restarts regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1333    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1334    /// <p>Valid Values: <code>1150-65535</code></p>
1335    /// <p>Default:</p>
1336    /// <ul>
1337    /// <li>
1338    /// <p>Amazon Aurora - <code>3306</code></p></li>
1339    /// <li>
1340    /// <p>RDS for Db2 - <code>50000</code></p></li>
1341    /// <li>
1342    /// <p>RDS for MariaDB - <code>3306</code></p></li>
1343    /// <li>
1344    /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1345    /// <li>
1346    /// <p>RDS for MySQL - <code>3306</code></p></li>
1347    /// <li>
1348    /// <p>RDS for Oracle - <code>1521</code></p></li>
1349    /// <li>
1350    /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1351    /// </ul>
1352    /// <p>Constraints:</p>
1353    /// <ul>
1354    /// <li>
1355    /// <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>
1356    /// </ul>
1357    pub fn set_db_port_number(mut self, input: ::std::option::Option<i32>) -> Self {
1358        self.inner = self.inner.set_db_port_number(input);
1359        self
1360    }
1361    /// <p>The port number on which the database accepts connections.</p>
1362    /// <p>The value of the <code>DBPortNumber</code> parameter must not match any of the port values specified for options in the option group for the DB instance.</p>
1363    /// <p>If you change the <code>DBPortNumber</code> value, your database restarts regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1364    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1365    /// <p>Valid Values: <code>1150-65535</code></p>
1366    /// <p>Default:</p>
1367    /// <ul>
1368    /// <li>
1369    /// <p>Amazon Aurora - <code>3306</code></p></li>
1370    /// <li>
1371    /// <p>RDS for Db2 - <code>50000</code></p></li>
1372    /// <li>
1373    /// <p>RDS for MariaDB - <code>3306</code></p></li>
1374    /// <li>
1375    /// <p>RDS for Microsoft SQL Server - <code>1433</code></p></li>
1376    /// <li>
1377    /// <p>RDS for MySQL - <code>3306</code></p></li>
1378    /// <li>
1379    /// <p>RDS for Oracle - <code>1521</code></p></li>
1380    /// <li>
1381    /// <p>RDS for PostgreSQL - <code>5432</code></p></li>
1382    /// </ul>
1383    /// <p>Constraints:</p>
1384    /// <ul>
1385    /// <li>
1386    /// <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>
1387    /// </ul>
1388    pub fn get_db_port_number(&self) -> &::std::option::Option<i32> {
1389        self.inner.get_db_port_number()
1390    }
1391    /// <p>Specifies whether the DB instance is publicly accessible.</p>
1392    /// <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 ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB instance doesn't permit it.</p>
1393    /// <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>
1394    /// <p><code>PubliclyAccessible</code> only applies to DB instances in a VPC. The DB instance must be part of a public subnet and <code>PubliclyAccessible</code> must be enabled for it to be publicly accessible.</p>
1395    /// <p>Changes to the <code>PubliclyAccessible</code> parameter are applied immediately regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1396    pub fn publicly_accessible(mut self, input: bool) -> Self {
1397        self.inner = self.inner.publicly_accessible(input);
1398        self
1399    }
1400    /// <p>Specifies whether the DB instance is publicly accessible.</p>
1401    /// <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 ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB instance doesn't permit it.</p>
1402    /// <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>
1403    /// <p><code>PubliclyAccessible</code> only applies to DB instances in a VPC. The DB instance must be part of a public subnet and <code>PubliclyAccessible</code> must be enabled for it to be publicly accessible.</p>
1404    /// <p>Changes to the <code>PubliclyAccessible</code> parameter are applied immediately regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1405    pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
1406        self.inner = self.inner.set_publicly_accessible(input);
1407        self
1408    }
1409    /// <p>Specifies whether the DB instance is publicly accessible.</p>
1410    /// <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 ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB instance doesn't permit it.</p>
1411    /// <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>
1412    /// <p><code>PubliclyAccessible</code> only applies to DB instances in a VPC. The DB instance must be part of a public subnet and <code>PubliclyAccessible</code> must be enabled for it to be publicly accessible.</p>
1413    /// <p>Changes to the <code>PubliclyAccessible</code> parameter are applied immediately regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
1414    pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
1415        self.inner.get_publicly_accessible()
1416    }
1417    /// <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.html#USER_Monitoring.OS.IAMRole">To create an IAM role for Amazon RDS Enhanced Monitoring</a> in the <i>Amazon RDS User Guide.</i></p>
1418    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1419    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1420    pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1421        self.inner = self.inner.monitoring_role_arn(input.into());
1422        self
1423    }
1424    /// <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.html#USER_Monitoring.OS.IAMRole">To create an IAM role for Amazon RDS Enhanced Monitoring</a> in the <i>Amazon RDS User Guide.</i></p>
1425    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1426    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1427    pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1428        self.inner = self.inner.set_monitoring_role_arn(input);
1429        self
1430    }
1431    /// <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.html#USER_Monitoring.OS.IAMRole">To create an IAM role for Amazon RDS Enhanced Monitoring</a> in the <i>Amazon RDS User Guide.</i></p>
1432    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1433    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1434    pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1435        self.inner.get_monitoring_role_arn()
1436    }
1437    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1438    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1439    pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1440        self.inner = self.inner.domain_iam_role_name(input.into());
1441        self
1442    }
1443    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1444    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1445    pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1446        self.inner = self.inner.set_domain_iam_role_name(input);
1447        self
1448    }
1449    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1450    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1451    pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
1452        self.inner.get_domain_iam_role_name()
1453    }
1454    /// <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>
1455    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1456    /// <p>Default: <code>1</code></p>
1457    /// <p>Valid Values: <code>0 - 15</code></p>
1458    pub fn promotion_tier(mut self, input: i32) -> Self {
1459        self.inner = self.inner.promotion_tier(input);
1460        self
1461    }
1462    /// <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>
1463    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1464    /// <p>Default: <code>1</code></p>
1465    /// <p>Valid Values: <code>0 - 15</code></p>
1466    pub fn set_promotion_tier(mut self, input: ::std::option::Option<i32>) -> Self {
1467        self.inner = self.inner.set_promotion_tier(input);
1468        self
1469    }
1470    /// <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>
1471    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1472    /// <p>Default: <code>1</code></p>
1473    /// <p>Valid Values: <code>0 - 15</code></p>
1474    pub fn get_promotion_tier(&self) -> &::std::option::Option<i32> {
1475        self.inner.get_promotion_tier()
1476    }
1477    /// <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>
1478    /// <p>This setting doesn't apply to Amazon Aurora. Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.</p>
1479    /// <p>For more information about IAM database authentication, 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>
1480    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1481    pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
1482        self.inner = self.inner.enable_iam_database_authentication(input);
1483        self
1484    }
1485    /// <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>
1486    /// <p>This setting doesn't apply to Amazon Aurora. Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.</p>
1487    /// <p>For more information about IAM database authentication, 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>
1488    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1489    pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
1490        self.inner = self.inner.set_enable_iam_database_authentication(input);
1491        self
1492    }
1493    /// <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>
1494    /// <p>This setting doesn't apply to Amazon Aurora. Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.</p>
1495    /// <p>For more information about IAM database authentication, 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>
1496    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1497    pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
1498        self.inner.get_enable_iam_database_authentication()
1499    }
1500    /// <p>Specifies the mode of Database Insights to enable for the DB instance.</p><note>
1501    /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
1502    /// </note>
1503    pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
1504        self.inner = self.inner.database_insights_mode(input);
1505        self
1506    }
1507    /// <p>Specifies the mode of Database Insights to enable for the DB instance.</p><note>
1508    /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
1509    /// </note>
1510    pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
1511        self.inner = self.inner.set_database_insights_mode(input);
1512        self
1513    }
1514    /// <p>Specifies the mode of Database Insights to enable for the DB instance.</p><note>
1515    /// <p>Aurora DB instances inherit this value from the DB cluster, so you can't change this value.</p>
1516    /// </note>
1517    pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
1518        self.inner.get_database_insights_mode()
1519    }
1520    /// <p>Specifies whether to enable Performance Insights for the DB instance.</p>
1521    /// <p>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>
1522    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1523    pub fn enable_performance_insights(mut self, input: bool) -> Self {
1524        self.inner = self.inner.enable_performance_insights(input);
1525        self
1526    }
1527    /// <p>Specifies whether to enable Performance Insights for the DB instance.</p>
1528    /// <p>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>
1529    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1530    pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
1531        self.inner = self.inner.set_enable_performance_insights(input);
1532        self
1533    }
1534    /// <p>Specifies whether to enable Performance Insights for the DB instance.</p>
1535    /// <p>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>
1536    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1537    pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
1538        self.inner.get_enable_performance_insights()
1539    }
1540    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1541    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1542    /// <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>
1543    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1544    pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1545        self.inner = self.inner.performance_insights_kms_key_id(input.into());
1546        self
1547    }
1548    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1549    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1550    /// <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>
1551    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1552    pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1553        self.inner = self.inner.set_performance_insights_kms_key_id(input);
1554        self
1555    }
1556    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1557    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1558    /// <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>
1559    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1560    pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1561        self.inner.get_performance_insights_kms_key_id()
1562    }
1563    /// <p>The number of days to retain Performance Insights data.</p>
1564    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1565    /// <p>Valid Values:</p>
1566    /// <ul>
1567    /// <li>
1568    /// <p><code>7</code></p></li>
1569    /// <li>
1570    /// <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>
1571    /// <li>
1572    /// <p><code>731</code></p></li>
1573    /// </ul>
1574    /// <p>Default: <code>7</code> days</p>
1575    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
1576    pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
1577        self.inner = self.inner.performance_insights_retention_period(input);
1578        self
1579    }
1580    /// <p>The number of days to retain Performance Insights data.</p>
1581    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1582    /// <p>Valid Values:</p>
1583    /// <ul>
1584    /// <li>
1585    /// <p><code>7</code></p></li>
1586    /// <li>
1587    /// <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>
1588    /// <li>
1589    /// <p><code>731</code></p></li>
1590    /// </ul>
1591    /// <p>Default: <code>7</code> days</p>
1592    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
1593    pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1594        self.inner = self.inner.set_performance_insights_retention_period(input);
1595        self
1596    }
1597    /// <p>The number of days to retain Performance Insights data.</p>
1598    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1599    /// <p>Valid Values:</p>
1600    /// <ul>
1601    /// <li>
1602    /// <p><code>7</code></p></li>
1603    /// <li>
1604    /// <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>
1605    /// <li>
1606    /// <p><code>731</code></p></li>
1607    /// </ul>
1608    /// <p>Default: <code>7</code> days</p>
1609    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS returns an error.</p>
1610    pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
1611        self.inner.get_performance_insights_retention_period()
1612    }
1613    /// <p>The log types to be enabled for export to CloudWatch Logs for a specific DB instance.</p>
1614    /// <p>A change to the <code>CloudwatchLogsExportConfiguration</code> parameter is always applied to the DB instance immediately. Therefore, the <code>ApplyImmediately</code> parameter has no effect.</p>
1615    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1616    /// <p>The following values are valid for each DB engine:</p>
1617    /// <ul>
1618    /// <li>
1619    /// <p>Aurora MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
1620    /// <li>
1621    /// <p>Aurora PostgreSQL - <code>postgresql | iam-db-auth-error</code></p></li>
1622    /// <li>
1623    /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1624    /// <li>
1625    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1626    /// </ul>
1627    /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, 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>
1628    /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1629    pub fn cloudwatch_logs_export_configuration(mut self, input: crate::types::CloudwatchLogsExportConfiguration) -> Self {
1630        self.inner = self.inner.cloudwatch_logs_export_configuration(input);
1631        self
1632    }
1633    /// <p>The log types to be enabled for export to CloudWatch Logs for a specific DB instance.</p>
1634    /// <p>A change to the <code>CloudwatchLogsExportConfiguration</code> parameter is always applied to the DB instance immediately. Therefore, the <code>ApplyImmediately</code> parameter has no effect.</p>
1635    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1636    /// <p>The following values are valid for each DB engine:</p>
1637    /// <ul>
1638    /// <li>
1639    /// <p>Aurora MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
1640    /// <li>
1641    /// <p>Aurora PostgreSQL - <code>postgresql | iam-db-auth-error</code></p></li>
1642    /// <li>
1643    /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1644    /// <li>
1645    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1646    /// </ul>
1647    /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, 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>
1648    /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1649    pub fn set_cloudwatch_logs_export_configuration(mut self, input: ::std::option::Option<crate::types::CloudwatchLogsExportConfiguration>) -> Self {
1650        self.inner = self.inner.set_cloudwatch_logs_export_configuration(input);
1651        self
1652    }
1653    /// <p>The log types to be enabled for export to CloudWatch Logs for a specific DB instance.</p>
1654    /// <p>A change to the <code>CloudwatchLogsExportConfiguration</code> parameter is always applied to the DB instance immediately. Therefore, the <code>ApplyImmediately</code> parameter has no effect.</p>
1655    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1656    /// <p>The following values are valid for each DB engine:</p>
1657    /// <ul>
1658    /// <li>
1659    /// <p>Aurora MySQL - <code>audit | error | general | slowquery | iam-db-auth-error</code></p></li>
1660    /// <li>
1661    /// <p>Aurora PostgreSQL - <code>postgresql | iam-db-auth-error</code></p></li>
1662    /// <li>
1663    /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1664    /// <li>
1665    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1666    /// </ul>
1667    /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, 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>
1668    /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1669    pub fn get_cloudwatch_logs_export_configuration(&self) -> &::std::option::Option<crate::types::CloudwatchLogsExportConfiguration> {
1670        self.inner.get_cloudwatch_logs_export_configuration()
1671    }
1672    ///
1673    /// Appends an item to `ProcessorFeatures`.
1674    ///
1675    /// To override the contents of this collection use [`set_processor_features`](Self::set_processor_features).
1676    ///
1677    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
1678    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1679    pub fn processor_features(mut self, input: crate::types::ProcessorFeature) -> Self {
1680        self.inner = self.inner.processor_features(input);
1681        self
1682    }
1683    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
1684    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1685    pub fn set_processor_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>>) -> Self {
1686        self.inner = self.inner.set_processor_features(input);
1687        self
1688    }
1689    /// <p>The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.</p>
1690    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1691    pub fn get_processor_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProcessorFeature>> {
1692        self.inner.get_processor_features()
1693    }
1694    /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
1695    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1696    pub fn use_default_processor_features(mut self, input: bool) -> Self {
1697        self.inner = self.inner.use_default_processor_features(input);
1698        self
1699    }
1700    /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
1701    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1702    pub fn set_use_default_processor_features(mut self, input: ::std::option::Option<bool>) -> Self {
1703        self.inner = self.inner.set_use_default_processor_features(input);
1704        self
1705    }
1706    /// <p>Specifies whether the DB instance class of the DB instance uses its default processor features.</p>
1707    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1708    pub fn get_use_default_processor_features(&self) -> &::std::option::Option<bool> {
1709        self.inner.get_use_default_processor_features()
1710    }
1711    /// <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>
1712    /// <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>ModifyDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
1713    pub fn deletion_protection(mut self, input: bool) -> Self {
1714        self.inner = self.inner.deletion_protection(input);
1715        self
1716    }
1717    /// <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>
1718    /// <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>ModifyDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
1719    pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
1720        self.inner = self.inner.set_deletion_protection(input);
1721        self
1722    }
1723    /// <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>
1724    /// <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>ModifyDBCluster</code>. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.</p>
1725    pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
1726        self.inner.get_deletion_protection()
1727    }
1728    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1729    /// <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>
1730    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1731    pub fn max_allocated_storage(mut self, input: i32) -> Self {
1732        self.inner = self.inner.max_allocated_storage(input);
1733        self
1734    }
1735    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1736    /// <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>
1737    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1738    pub fn set_max_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
1739        self.inner = self.inner.set_max_allocated_storage(input);
1740        self
1741    }
1742    /// <p>The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.</p>
1743    /// <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>
1744    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1745    pub fn get_max_allocated_storage(&self) -> &::std::option::Option<i32> {
1746        self.inner.get_max_allocated_storage()
1747    }
1748    /// <p>Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.</p>
1749    /// <p>By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.</p><important>
1750    /// <p>Set this parameter only if you are <i>not</i> using SSL/TLS to connect to the DB instance.</p>
1751    /// </important>
1752    /// <p>If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:</p>
1753    /// <ul>
1754    /// <li>
1755    /// <p>For more information about rotating your SSL/TLS certificate for RDS DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate.</a> in the <i>Amazon RDS User Guide.</i></p></li>
1756    /// <li>
1757    /// <p>For more information about rotating your SSL/TLS certificate for Aurora DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
1758    /// </ul>
1759    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1760    pub fn certificate_rotation_restart(mut self, input: bool) -> Self {
1761        self.inner = self.inner.certificate_rotation_restart(input);
1762        self
1763    }
1764    /// <p>Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.</p>
1765    /// <p>By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.</p><important>
1766    /// <p>Set this parameter only if you are <i>not</i> using SSL/TLS to connect to the DB instance.</p>
1767    /// </important>
1768    /// <p>If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:</p>
1769    /// <ul>
1770    /// <li>
1771    /// <p>For more information about rotating your SSL/TLS certificate for RDS DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate.</a> in the <i>Amazon RDS User Guide.</i></p></li>
1772    /// <li>
1773    /// <p>For more information about rotating your SSL/TLS certificate for Aurora DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
1774    /// </ul>
1775    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1776    pub fn set_certificate_rotation_restart(mut self, input: ::std::option::Option<bool>) -> Self {
1777        self.inner = self.inner.set_certificate_rotation_restart(input);
1778        self
1779    }
1780    /// <p>Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.</p>
1781    /// <p>By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.</p><important>
1782    /// <p>Set this parameter only if you are <i>not</i> using SSL/TLS to connect to the DB instance.</p>
1783    /// </important>
1784    /// <p>If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:</p>
1785    /// <ul>
1786    /// <li>
1787    /// <p>For more information about rotating your SSL/TLS certificate for RDS DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate.</a> in the <i>Amazon RDS User Guide.</i></p></li>
1788    /// <li>
1789    /// <p>For more information about rotating your SSL/TLS certificate for Aurora DB engines, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html"> Rotating Your SSL/TLS Certificate</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
1790    /// </ul>
1791    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1792    pub fn get_certificate_rotation_restart(&self) -> &::std::option::Option<bool> {
1793        self.inner.get_certificate_rotation_restart()
1794    }
1795    /// <p>The open mode of a replica database.</p>
1796    /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1797    /// <dl>
1798    /// <dt>
1799    /// Db2
1800    /// </dt>
1801    /// <dd>
1802    /// <p>Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2 Standard Edition (SE). The main use case for standby replicas is cross-Region disaster recovery. Because it doesn't accept user connections, a standby replica can't serve a read-only workload.</p>
1803    /// <p>You can create a combination of standby and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html">Working with replicas for Amazon RDS for Db2</a> in the <i>Amazon RDS User Guide</i>.</p>
1804    /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1805    /// </dd>
1806    /// <dt>
1807    /// Oracle
1808    /// </dt>
1809    /// <dd>
1810    /// <p>Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.</p>
1811    /// <p>You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html">Working with read replicas for Amazon RDS for Oracle</a> in the <i>Amazon RDS User Guide</i>.</p>
1812    /// <p>For RDS Custom, you must specify this parameter and set it to <code>mounted</code>. The value won't be set by default. After replica creation, you can manage the open mode manually.</p>
1813    /// </dd>
1814    /// </dl>
1815    pub fn replica_mode(mut self, input: crate::types::ReplicaMode) -> Self {
1816        self.inner = self.inner.replica_mode(input);
1817        self
1818    }
1819    /// <p>The open mode of a replica database.</p>
1820    /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1821    /// <dl>
1822    /// <dt>
1823    /// Db2
1824    /// </dt>
1825    /// <dd>
1826    /// <p>Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2 Standard Edition (SE). The main use case for standby replicas is cross-Region disaster recovery. Because it doesn't accept user connections, a standby replica can't serve a read-only workload.</p>
1827    /// <p>You can create a combination of standby and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html">Working with replicas for Amazon RDS for Db2</a> in the <i>Amazon RDS User Guide</i>.</p>
1828    /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1829    /// </dd>
1830    /// <dt>
1831    /// Oracle
1832    /// </dt>
1833    /// <dd>
1834    /// <p>Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.</p>
1835    /// <p>You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html">Working with read replicas for Amazon RDS for Oracle</a> in the <i>Amazon RDS User Guide</i>.</p>
1836    /// <p>For RDS Custom, you must specify this parameter and set it to <code>mounted</code>. The value won't be set by default. After replica creation, you can manage the open mode manually.</p>
1837    /// </dd>
1838    /// </dl>
1839    pub fn set_replica_mode(mut self, input: ::std::option::Option<crate::types::ReplicaMode>) -> Self {
1840        self.inner = self.inner.set_replica_mode(input);
1841        self
1842    }
1843    /// <p>The open mode of a replica database.</p>
1844    /// <p>This parameter is only supported for Db2 DB instances and Oracle DB instances.</p>
1845    /// <dl>
1846    /// <dt>
1847    /// Db2
1848    /// </dt>
1849    /// <dd>
1850    /// <p>Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2 Standard Edition (SE). The main use case for standby replicas is cross-Region disaster recovery. Because it doesn't accept user connections, a standby replica can't serve a read-only workload.</p>
1851    /// <p>You can create a combination of standby and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html">Working with replicas for Amazon RDS for Db2</a> in the <i>Amazon RDS User Guide</i>.</p>
1852    /// <p>To create standby DB replicas for RDS for Db2, set this parameter to <code>mounted</code>.</p>
1853    /// </dd>
1854    /// <dt>
1855    /// Oracle
1856    /// </dt>
1857    /// <dd>
1858    /// <p>Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload.</p>
1859    /// <p>You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html">Working with read replicas for Amazon RDS for Oracle</a> in the <i>Amazon RDS User Guide</i>.</p>
1860    /// <p>For RDS Custom, you must specify this parameter and set it to <code>mounted</code>. The value won't be set by default. After replica creation, you can manage the open mode manually.</p>
1861    /// </dd>
1862    /// </dl>
1863    pub fn get_replica_mode(&self) -> &::std::option::Option<crate::types::ReplicaMode> {
1864        self.inner.get_replica_mode()
1865    }
1866    /// <p>The automation mode of the RDS Custom DB instance. If <code>full</code>, the DB instance automates monitoring and instance recovery. If <code>all paused</code>, the instance pauses automation for the duration set by <code>ResumeFullAutomationModeMinutes</code>.</p>
1867    pub fn automation_mode(mut self, input: crate::types::AutomationMode) -> Self {
1868        self.inner = self.inner.automation_mode(input);
1869        self
1870    }
1871    /// <p>The automation mode of the RDS Custom DB instance. If <code>full</code>, the DB instance automates monitoring and instance recovery. If <code>all paused</code>, the instance pauses automation for the duration set by <code>ResumeFullAutomationModeMinutes</code>.</p>
1872    pub fn set_automation_mode(mut self, input: ::std::option::Option<crate::types::AutomationMode>) -> Self {
1873        self.inner = self.inner.set_automation_mode(input);
1874        self
1875    }
1876    /// <p>The automation mode of the RDS Custom DB instance. If <code>full</code>, the DB instance automates monitoring and instance recovery. If <code>all paused</code>, the instance pauses automation for the duration set by <code>ResumeFullAutomationModeMinutes</code>.</p>
1877    pub fn get_automation_mode(&self) -> &::std::option::Option<crate::types::AutomationMode> {
1878        self.inner.get_automation_mode()
1879    }
1880    /// <p>The number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation.</p>
1881    /// <p>Default: <code>60</code></p>
1882    /// <p>Constraints:</p>
1883    /// <ul>
1884    /// <li>
1885    /// <p>Must be at least 60.</p></li>
1886    /// <li>
1887    /// <p>Must be no more than 1,440.</p></li>
1888    /// </ul>
1889    pub fn resume_full_automation_mode_minutes(mut self, input: i32) -> Self {
1890        self.inner = self.inner.resume_full_automation_mode_minutes(input);
1891        self
1892    }
1893    /// <p>The number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation.</p>
1894    /// <p>Default: <code>60</code></p>
1895    /// <p>Constraints:</p>
1896    /// <ul>
1897    /// <li>
1898    /// <p>Must be at least 60.</p></li>
1899    /// <li>
1900    /// <p>Must be no more than 1,440.</p></li>
1901    /// </ul>
1902    pub fn set_resume_full_automation_mode_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
1903        self.inner = self.inner.set_resume_full_automation_mode_minutes(input);
1904        self
1905    }
1906    /// <p>The number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation.</p>
1907    /// <p>Default: <code>60</code></p>
1908    /// <p>Constraints:</p>
1909    /// <ul>
1910    /// <li>
1911    /// <p>Must be at least 60.</p></li>
1912    /// <li>
1913    /// <p>Must be no more than 1,440.</p></li>
1914    /// </ul>
1915    pub fn get_resume_full_automation_mode_minutes(&self) -> &::std::option::Option<i32> {
1916        self.inner.get_resume_full_automation_mode_minutes()
1917    }
1918    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
1919    /// <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>
1920    /// <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>
1921    /// <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>
1922    pub fn enable_customer_owned_ip(mut self, input: bool) -> Self {
1923        self.inner = self.inner.enable_customer_owned_ip(input);
1924        self
1925    }
1926    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
1927    /// <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>
1928    /// <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>
1929    /// <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>
1930    pub fn set_enable_customer_owned_ip(mut self, input: ::std::option::Option<bool>) -> Self {
1931        self.inner = self.inner.set_enable_customer_owned_ip(input);
1932        self
1933    }
1934    /// <p>Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.</p>
1935    /// <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>
1936    /// <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>
1937    /// <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>
1938    pub fn get_enable_customer_owned_ip(&self) -> &::std::option::Option<bool> {
1939        self.inner.get_enable_customer_owned_ip()
1940    }
1941    /// <p>The network type of the DB instance.</p>
1942    /// <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>
1943    /// <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>
1944    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1945    pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1946        self.inner = self.inner.network_type(input.into());
1947        self
1948    }
1949    /// <p>The network type of the DB instance.</p>
1950    /// <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>
1951    /// <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>
1952    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1953    pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1954        self.inner = self.inner.set_network_type(input);
1955        self
1956    }
1957    /// <p>The network type of the DB instance.</p>
1958    /// <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>
1959    /// <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>
1960    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1961    pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
1962        self.inner.get_network_type()
1963    }
1964    /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1965    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1966    pub fn aws_backup_recovery_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1967        self.inner = self.inner.aws_backup_recovery_point_arn(input.into());
1968        self
1969    }
1970    /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1971    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1972    pub fn set_aws_backup_recovery_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1973        self.inner = self.inner.set_aws_backup_recovery_point_arn(input);
1974        self
1975    }
1976    /// <p>The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.</p>
1977    /// <p>This setting doesn't apply to RDS Custom DB instances.</p>
1978    pub fn get_aws_backup_recovery_point_arn(&self) -> &::std::option::Option<::std::string::String> {
1979        self.inner.get_aws_backup_recovery_point_arn()
1980    }
1981    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1982    /// <p>If the DB instance doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management. In this case, you can't specify <code>MasterUserPassword</code>.</p>
1983    /// <p>If the DB instance already manages the master user password with Amazon Web Services Secrets Manager, and you specify that the master user password is not managed with Amazon Web Services Secrets Manager, then you must specify <code>MasterUserPassword</code>. In this case, Amazon RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
1984    /// <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>
1985    /// <p>Constraints:</p>
1986    /// <ul>
1987    /// <li>
1988    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1989    /// <li>
1990    /// <p>Can't specify for RDS for Oracle CDB instances in the multi-tenant configuration. Use <code>ModifyTenantDatabase</code> instead.</p></li>
1991    /// <li>
1992    /// <p>Can't specify the parameters <code>ManageMasterUserPassword</code> and <code>MultiTenant</code> in the same operation.</p></li>
1993    /// </ul>
1994    pub fn manage_master_user_password(mut self, input: bool) -> Self {
1995        self.inner = self.inner.manage_master_user_password(input);
1996        self
1997    }
1998    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1999    /// <p>If the DB instance doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management. In this case, you can't specify <code>MasterUserPassword</code>.</p>
2000    /// <p>If the DB instance already manages the master user password with Amazon Web Services Secrets Manager, and you specify that the master user password is not managed with Amazon Web Services Secrets Manager, then you must specify <code>MasterUserPassword</code>. In this case, Amazon RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
2001    /// <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>
2002    /// <p>Constraints:</p>
2003    /// <ul>
2004    /// <li>
2005    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
2006    /// <li>
2007    /// <p>Can't specify for RDS for Oracle CDB instances in the multi-tenant configuration. Use <code>ModifyTenantDatabase</code> instead.</p></li>
2008    /// <li>
2009    /// <p>Can't specify the parameters <code>ManageMasterUserPassword</code> and <code>MultiTenant</code> in the same operation.</p></li>
2010    /// </ul>
2011    pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
2012        self.inner = self.inner.set_manage_master_user_password(input);
2013        self
2014    }
2015    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
2016    /// <p>If the DB instance doesn't manage the master user password with Amazon Web Services Secrets Manager, you can turn on this management. In this case, you can't specify <code>MasterUserPassword</code>.</p>
2017    /// <p>If the DB instance already manages the master user password with Amazon Web Services Secrets Manager, and you specify that the master user password is not managed with Amazon Web Services Secrets Manager, then you must specify <code>MasterUserPassword</code>. In this case, Amazon RDS deletes the secret and uses the new password for the master user specified by <code>MasterUserPassword</code>.</p>
2018    /// <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>
2019    /// <p>Constraints:</p>
2020    /// <ul>
2021    /// <li>
2022    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
2023    /// <li>
2024    /// <p>Can't specify for RDS for Oracle CDB instances in the multi-tenant configuration. Use <code>ModifyTenantDatabase</code> instead.</p></li>
2025    /// <li>
2026    /// <p>Can't specify the parameters <code>ManageMasterUserPassword</code> and <code>MultiTenant</code> in the same operation.</p></li>
2027    /// </ul>
2028    pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
2029        self.inner.get_manage_master_user_password()
2030    }
2031    /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
2032    /// <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. The secret value contains the updated password.</p>
2033    /// <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>
2034    /// <p>Constraints:</p>
2035    /// <ul>
2036    /// <li>
2037    /// <p>You must apply the change immediately when rotating the master user password.</p></li>
2038    /// </ul>
2039    pub fn rotate_master_user_password(mut self, input: bool) -> Self {
2040        self.inner = self.inner.rotate_master_user_password(input);
2041        self
2042    }
2043    /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
2044    /// <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. The secret value contains the updated password.</p>
2045    /// <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>
2046    /// <p>Constraints:</p>
2047    /// <ul>
2048    /// <li>
2049    /// <p>You must apply the change immediately when rotating the master user password.</p></li>
2050    /// </ul>
2051    pub fn set_rotate_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
2052        self.inner = self.inner.set_rotate_master_user_password(input);
2053        self
2054    }
2055    /// <p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p>
2056    /// <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. The secret value contains the updated password.</p>
2057    /// <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>
2058    /// <p>Constraints:</p>
2059    /// <ul>
2060    /// <li>
2061    /// <p>You must apply the change immediately when rotating the master user password.</p></li>
2062    /// </ul>
2063    pub fn get_rotate_master_user_password(&self) -> &::std::option::Option<bool> {
2064        self.inner.get_rotate_master_user_password()
2065    }
2066    /// <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>
2067    /// <p>This setting is valid only if both of the following conditions are met:</p>
2068    /// <ul>
2069    /// <li>
2070    /// <p>The DB instance doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
2071    /// <p>If the DB instance already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key used to encrypt the secret.</p></li>
2072    /// <li>
2073    /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
2074    /// <p>If you are turning on <code>ManageMasterUserPassword</code> and 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></li>
2075    /// </ul>
2076    /// <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>
2077    /// <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>
2078    pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2079        self.inner = self.inner.master_user_secret_kms_key_id(input.into());
2080        self
2081    }
2082    /// <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>
2083    /// <p>This setting is valid only if both of the following conditions are met:</p>
2084    /// <ul>
2085    /// <li>
2086    /// <p>The DB instance doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
2087    /// <p>If the DB instance already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key used to encrypt the secret.</p></li>
2088    /// <li>
2089    /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
2090    /// <p>If you are turning on <code>ManageMasterUserPassword</code> and 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></li>
2091    /// </ul>
2092    /// <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>
2093    /// <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>
2094    pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2095        self.inner = self.inner.set_master_user_secret_kms_key_id(input);
2096        self
2097    }
2098    /// <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>
2099    /// <p>This setting is valid only if both of the following conditions are met:</p>
2100    /// <ul>
2101    /// <li>
2102    /// <p>The DB instance doesn't manage the master user password in Amazon Web Services Secrets Manager.</p>
2103    /// <p>If the DB instance already manages the master user password in Amazon Web Services Secrets Manager, you can't change the KMS key used to encrypt the secret.</p></li>
2104    /// <li>
2105    /// <p>You are turning on <code>ManageMasterUserPassword</code> to manage the master user password in Amazon Web Services Secrets Manager.</p>
2106    /// <p>If you are turning on <code>ManageMasterUserPassword</code> and 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></li>
2107    /// </ul>
2108    /// <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>
2109    /// <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>
2110    pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
2111        self.inner.get_master_user_secret_kms_key_id()
2112    }
2113    /// <p>Specifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is supported only for RDS for Oracle CDB instances.</p>
2114    /// <p>During the conversion, RDS creates an initial tenant database and associates the DB name, master user name, character set, and national character set metadata with this database. The tags associated with the instance also propagate to the initial tenant database. You can add more tenant databases to your DB instance by using the <code>CreateTenantDatabase</code> operation.</p><important>
2115    /// <p>The conversion to the multi-tenant configuration is permanent and irreversible, so you can't later convert back to the single-tenant configuration. When you specify this parameter, you must also specify <code>ApplyImmediately</code>.</p>
2116    /// </important>
2117    pub fn multi_tenant(mut self, input: bool) -> Self {
2118        self.inner = self.inner.multi_tenant(input);
2119        self
2120    }
2121    /// <p>Specifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is supported only for RDS for Oracle CDB instances.</p>
2122    /// <p>During the conversion, RDS creates an initial tenant database and associates the DB name, master user name, character set, and national character set metadata with this database. The tags associated with the instance also propagate to the initial tenant database. You can add more tenant databases to your DB instance by using the <code>CreateTenantDatabase</code> operation.</p><important>
2123    /// <p>The conversion to the multi-tenant configuration is permanent and irreversible, so you can't later convert back to the single-tenant configuration. When you specify this parameter, you must also specify <code>ApplyImmediately</code>.</p>
2124    /// </important>
2125    pub fn set_multi_tenant(mut self, input: ::std::option::Option<bool>) -> Self {
2126        self.inner = self.inner.set_multi_tenant(input);
2127        self
2128    }
2129    /// <p>Specifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is supported only for RDS for Oracle CDB instances.</p>
2130    /// <p>During the conversion, RDS creates an initial tenant database and associates the DB name, master user name, character set, and national character set metadata with this database. The tags associated with the instance also propagate to the initial tenant database. You can add more tenant databases to your DB instance by using the <code>CreateTenantDatabase</code> operation.</p><important>
2131    /// <p>The conversion to the multi-tenant configuration is permanent and irreversible, so you can't later convert back to the single-tenant configuration. When you specify this parameter, you must also specify <code>ApplyImmediately</code>.</p>
2132    /// </important>
2133    pub fn get_multi_tenant(&self) -> &::std::option::Option<bool> {
2134        self.inner.get_multi_tenant()
2135    }
2136    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
2137    pub fn dedicated_log_volume(mut self, input: bool) -> Self {
2138        self.inner = self.inner.dedicated_log_volume(input);
2139        self
2140    }
2141    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
2142    pub fn set_dedicated_log_volume(mut self, input: ::std::option::Option<bool>) -> Self {
2143        self.inner = self.inner.set_dedicated_log_volume(input);
2144        self
2145    }
2146    /// <p>Indicates whether the DB instance has a dedicated log volume (DLV) enabled.</p>
2147    pub fn get_dedicated_log_volume(&self) -> &::std::option::Option<bool> {
2148        self.inner.get_dedicated_log_volume()
2149    }
2150    /// <p>The target Oracle DB engine when you convert a non-CDB to a CDB. This intermediate step is necessary to upgrade an Oracle Database 19c non-CDB to an Oracle Database 21c CDB.</p>
2151    /// <p>Note the following requirements:</p>
2152    /// <ul>
2153    /// <li>
2154    /// <p>Make sure that you specify <code>oracle-ee-cdb</code> or <code>oracle-se2-cdb</code>.</p></li>
2155    /// <li>
2156    /// <p>Make sure that your DB engine runs Oracle Database 19c with an April 2021 or later RU.</p></li>
2157    /// </ul>
2158    /// <p>Note the following limitations:</p>
2159    /// <ul>
2160    /// <li>
2161    /// <p>You can't convert a CDB to a non-CDB.</p></li>
2162    /// <li>
2163    /// <p>You can't convert a replica database.</p></li>
2164    /// <li>
2165    /// <p>You can't convert a non-CDB to a CDB and upgrade the engine version in the same command.</p></li>
2166    /// <li>
2167    /// <p>You can't convert the existing custom parameter or option group when it has options or parameters that are permanent or persistent. In this situation, the DB instance reverts to the default option and parameter group. To avoid reverting to the default, specify a new parameter group with <code>--db-parameter-group-name</code> and a new option group with <code>--option-group-name</code>.</p></li>
2168    /// </ul>
2169    pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
2170        self.inner = self.inner.engine(input.into());
2171        self
2172    }
2173    /// <p>The target Oracle DB engine when you convert a non-CDB to a CDB. This intermediate step is necessary to upgrade an Oracle Database 19c non-CDB to an Oracle Database 21c CDB.</p>
2174    /// <p>Note the following requirements:</p>
2175    /// <ul>
2176    /// <li>
2177    /// <p>Make sure that you specify <code>oracle-ee-cdb</code> or <code>oracle-se2-cdb</code>.</p></li>
2178    /// <li>
2179    /// <p>Make sure that your DB engine runs Oracle Database 19c with an April 2021 or later RU.</p></li>
2180    /// </ul>
2181    /// <p>Note the following limitations:</p>
2182    /// <ul>
2183    /// <li>
2184    /// <p>You can't convert a CDB to a non-CDB.</p></li>
2185    /// <li>
2186    /// <p>You can't convert a replica database.</p></li>
2187    /// <li>
2188    /// <p>You can't convert a non-CDB to a CDB and upgrade the engine version in the same command.</p></li>
2189    /// <li>
2190    /// <p>You can't convert the existing custom parameter or option group when it has options or parameters that are permanent or persistent. In this situation, the DB instance reverts to the default option and parameter group. To avoid reverting to the default, specify a new parameter group with <code>--db-parameter-group-name</code> and a new option group with <code>--option-group-name</code>.</p></li>
2191    /// </ul>
2192    pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
2193        self.inner = self.inner.set_engine(input);
2194        self
2195    }
2196    /// <p>The target Oracle DB engine when you convert a non-CDB to a CDB. This intermediate step is necessary to upgrade an Oracle Database 19c non-CDB to an Oracle Database 21c CDB.</p>
2197    /// <p>Note the following requirements:</p>
2198    /// <ul>
2199    /// <li>
2200    /// <p>Make sure that you specify <code>oracle-ee-cdb</code> or <code>oracle-se2-cdb</code>.</p></li>
2201    /// <li>
2202    /// <p>Make sure that your DB engine runs Oracle Database 19c with an April 2021 or later RU.</p></li>
2203    /// </ul>
2204    /// <p>Note the following limitations:</p>
2205    /// <ul>
2206    /// <li>
2207    /// <p>You can't convert a CDB to a non-CDB.</p></li>
2208    /// <li>
2209    /// <p>You can't convert a replica database.</p></li>
2210    /// <li>
2211    /// <p>You can't convert a non-CDB to a CDB and upgrade the engine version in the same command.</p></li>
2212    /// <li>
2213    /// <p>You can't convert the existing custom parameter or option group when it has options or parameters that are permanent or persistent. In this situation, the DB instance reverts to the default option and parameter group. To avoid reverting to the default, specify a new parameter group with <code>--db-parameter-group-name</code> and a new option group with <code>--option-group-name</code>.</p></li>
2214    /// </ul>
2215    pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
2216        self.inner.get_engine()
2217    }
2218    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM database authentication.</p>
2219    /// <p>You can specify one of the following values:</p>
2220    /// <ul>
2221    /// <li>
2222    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
2223    /// <li>
2224    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
2225    /// </ul>
2226    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
2227    pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
2228        self.inner = self.inner.master_user_authentication_type(input);
2229        self
2230    }
2231    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM database authentication.</p>
2232    /// <p>You can specify one of the following values:</p>
2233    /// <ul>
2234    /// <li>
2235    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
2236    /// <li>
2237    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
2238    /// </ul>
2239    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
2240    pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
2241        self.inner = self.inner.set_master_user_authentication_type(input);
2242        self
2243    }
2244    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM database authentication.</p>
2245    /// <p>You can specify one of the following values:</p>
2246    /// <ul>
2247    /// <li>
2248    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
2249    /// <li>
2250    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
2251    /// </ul>
2252    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
2253    pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
2254        self.inner.get_master_user_authentication_type()
2255    }
2256}