Skip to main content

aws_sdk_odb/operation/create_autonomous_database/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_autonomous_database::_create_autonomous_database_input::CreateAutonomousDatabaseInputBuilder;
3
4pub use crate::operation::create_autonomous_database::_create_autonomous_database_output::CreateAutonomousDatabaseOutputBuilder;
5
6impl crate::operation::create_autonomous_database::builders::CreateAutonomousDatabaseInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_autonomous_database::CreateAutonomousDatabaseOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_autonomous_database::CreateAutonomousDatabaseError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_autonomous_database();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateAutonomousDatabase`.
24///
25/// <p>Creates a new Autonomous Database.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreateAutonomousDatabaseFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::create_autonomous_database::builders::CreateAutonomousDatabaseInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::create_autonomous_database::CreateAutonomousDatabaseOutput,
35        crate::operation::create_autonomous_database::CreateAutonomousDatabaseError,
36    > for CreateAutonomousDatabaseFluentBuilder
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::create_autonomous_database::CreateAutonomousDatabaseOutput,
44            crate::operation::create_autonomous_database::CreateAutonomousDatabaseError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl CreateAutonomousDatabaseFluentBuilder {
51    /// Creates a new `CreateAutonomousDatabaseFluentBuilder`.
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 CreateAutonomousDatabase as a reference.
60    pub fn as_input(&self) -> &crate::operation::create_autonomous_database::builders::CreateAutonomousDatabaseInputBuilder {
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::create_autonomous_database::CreateAutonomousDatabaseOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::create_autonomous_database::CreateAutonomousDatabaseError,
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::create_autonomous_database::CreateAutonomousDatabase::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::create_autonomous_database::CreateAutonomousDatabase::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::create_autonomous_database::CreateAutonomousDatabaseOutput,
97        crate::operation::create_autonomous_database::CreateAutonomousDatabaseError,
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 unique identifier of the ODB network to be used for the Autonomous Database.</p>
112    pub fn odb_network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.odb_network_id(input.into());
114        self
115    }
116    /// <p>The unique identifier of the ODB network to be used for the Autonomous Database.</p>
117    pub fn set_odb_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_odb_network_id(input);
119        self
120    }
121    /// <p>The unique identifier of the ODB network to be used for the Autonomous Database.</p>
122    pub fn get_odb_network_id(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_odb_network_id()
124    }
125    /// <p>The user-friendly name for the Autonomous Database. The name does not have to be unique.</p>
126    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127        self.inner = self.inner.display_name(input.into());
128        self
129    }
130    /// <p>The user-friendly name for the Autonomous Database. The name does not have to be unique.</p>
131    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132        self.inner = self.inner.set_display_name(input);
133        self
134    }
135    /// <p>The user-friendly name for the Autonomous Database. The name does not have to be unique.</p>
136    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
137        self.inner.get_display_name()
138    }
139    /// <p>The name of the Autonomous Database. The name must begin with an alphabetic character and can contain a maximum of 30 alphanumeric characters. Special characters are not permitted. The name must be unique in the Amazon Web Services account.</p>
140    pub fn db_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141        self.inner = self.inner.db_name(input.into());
142        self
143    }
144    /// <p>The name of the Autonomous Database. The name must begin with an alphabetic character and can contain a maximum of 30 alphanumeric characters. Special characters are not permitted. The name must be unique in the Amazon Web Services account.</p>
145    pub fn set_db_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146        self.inner = self.inner.set_db_name(input);
147        self
148    }
149    /// <p>The name of the Autonomous Database. The name must begin with an alphabetic character and can contain a maximum of 30 alphanumeric characters. Special characters are not permitted. The name must be unique in the Amazon Web Services account.</p>
150    pub fn get_db_name(&self) -> &::std::option::Option<::std::string::String> {
151        self.inner.get_db_name()
152    }
153    /// <p>The password for the <code>ADMIN</code> user of the Autonomous Database.</p>
154    pub fn admin_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
155        self.inner = self.inner.admin_password(input.into());
156        self
157    }
158    /// <p>The password for the <code>ADMIN</code> user of the Autonomous Database.</p>
159    pub fn set_admin_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
160        self.inner = self.inner.set_admin_password(input);
161        self
162    }
163    /// <p>The password for the <code>ADMIN</code> user of the Autonomous Database.</p>
164    pub fn get_admin_password(&self) -> &::std::option::Option<::std::string::String> {
165        self.inner.get_admin_password()
166    }
167    /// <p>The compute capacity, in number of Elastic CPUs (ECPUs) or Oracle CPUs (OCPUs), to assign to the Autonomous Database.</p>
168    pub fn compute_count(mut self, input: f64) -> Self {
169        self.inner = self.inner.compute_count(input);
170        self
171    }
172    /// <p>The compute capacity, in number of Elastic CPUs (ECPUs) or Oracle CPUs (OCPUs), to assign to the Autonomous Database.</p>
173    pub fn set_compute_count(mut self, input: ::std::option::Option<f64>) -> Self {
174        self.inner = self.inner.set_compute_count(input);
175        self
176    }
177    /// <p>The compute capacity, in number of Elastic CPUs (ECPUs) or Oracle CPUs (OCPUs), to assign to the Autonomous Database.</p>
178    pub fn get_compute_count(&self) -> &::std::option::Option<f64> {
179        self.inner.get_compute_count()
180    }
181    /// <p>The size, in terabytes (TB), of the data volume to allocate for the Autonomous Database.</p>
182    pub fn data_storage_size_in_tbs(mut self, input: i32) -> Self {
183        self.inner = self.inner.data_storage_size_in_tbs(input);
184        self
185    }
186    /// <p>The size, in terabytes (TB), of the data volume to allocate for the Autonomous Database.</p>
187    pub fn set_data_storage_size_in_tbs(mut self, input: ::std::option::Option<i32>) -> Self {
188        self.inner = self.inner.set_data_storage_size_in_tbs(input);
189        self
190    }
191    /// <p>The size, in terabytes (TB), of the data volume to allocate for the Autonomous Database.</p>
192    pub fn get_data_storage_size_in_tbs(&self) -> &::std::option::Option<i32> {
193        self.inner.get_data_storage_size_in_tbs()
194    }
195    /// <p>The size, in gigabytes (GB), of the data volume to allocate for the Autonomous Database.</p>
196    pub fn data_storage_size_in_gbs(mut self, input: i32) -> Self {
197        self.inner = self.inner.data_storage_size_in_gbs(input);
198        self
199    }
200    /// <p>The size, in gigabytes (GB), of the data volume to allocate for the Autonomous Database.</p>
201    pub fn set_data_storage_size_in_gbs(mut self, input: ::std::option::Option<i32>) -> Self {
202        self.inner = self.inner.set_data_storage_size_in_gbs(input);
203        self
204    }
205    /// <p>The size, in gigabytes (GB), of the data volume to allocate for the Autonomous Database.</p>
206    pub fn get_data_storage_size_in_gbs(&self) -> &::std::option::Option<i32> {
207        self.inner.get_data_storage_size_in_gbs()
208    }
209    /// <p>The intended use of the Autonomous Database, such as transaction processing, data warehouse, JSON database, or APEX.</p>
210    pub fn db_workload(mut self, input: crate::types::DbWorkload) -> Self {
211        self.inner = self.inner.db_workload(input);
212        self
213    }
214    /// <p>The intended use of the Autonomous Database, such as transaction processing, data warehouse, JSON database, or APEX.</p>
215    pub fn set_db_workload(mut self, input: ::std::option::Option<crate::types::DbWorkload>) -> Self {
216        self.inner = self.inner.set_db_workload(input);
217        self
218    }
219    /// <p>The intended use of the Autonomous Database, such as transaction processing, data warehouse, JSON database, or APEX.</p>
220    pub fn get_db_workload(&self) -> &::std::option::Option<crate::types::DbWorkload> {
221        self.inner.get_db_workload()
222    }
223    /// <p>Specifies whether to enable automatic scaling of the compute resources for the Autonomous Database.</p>
224    pub fn is_auto_scaling_enabled(mut self, input: bool) -> Self {
225        self.inner = self.inner.is_auto_scaling_enabled(input);
226        self
227    }
228    /// <p>Specifies whether to enable automatic scaling of the compute resources for the Autonomous Database.</p>
229    pub fn set_is_auto_scaling_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
230        self.inner = self.inner.set_is_auto_scaling_enabled(input);
231        self
232    }
233    /// <p>Specifies whether to enable automatic scaling of the compute resources for the Autonomous Database.</p>
234    pub fn get_is_auto_scaling_enabled(&self) -> &::std::option::Option<bool> {
235        self.inner.get_is_auto_scaling_enabled()
236    }
237    /// <p>Specifies whether to enable automatic scaling of the storage for the Autonomous Database.</p>
238    pub fn is_auto_scaling_for_storage_enabled(mut self, input: bool) -> Self {
239        self.inner = self.inner.is_auto_scaling_for_storage_enabled(input);
240        self
241    }
242    /// <p>Specifies whether to enable automatic scaling of the storage for the Autonomous Database.</p>
243    pub fn set_is_auto_scaling_for_storage_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
244        self.inner = self.inner.set_is_auto_scaling_for_storage_enabled(input);
245        self
246    }
247    /// <p>Specifies whether to enable automatic scaling of the storage for the Autonomous Database.</p>
248    pub fn get_is_auto_scaling_for_storage_enabled(&self) -> &::std::option::Option<bool> {
249        self.inner.get_is_auto_scaling_for_storage_enabled()
250    }
251    /// <p>The Oracle license model to apply to the Autonomous Database.</p>
252    pub fn license_model(mut self, input: crate::types::LicenseModel) -> Self {
253        self.inner = self.inner.license_model(input);
254        self
255    }
256    /// <p>The Oracle license model to apply to the Autonomous Database.</p>
257    pub fn set_license_model(mut self, input: ::std::option::Option<crate::types::LicenseModel>) -> Self {
258        self.inner = self.inner.set_license_model(input);
259        self
260    }
261    /// <p>The Oracle license model to apply to the Autonomous Database.</p>
262    pub fn get_license_model(&self) -> &::std::option::Option<crate::types::LicenseModel> {
263        self.inner.get_license_model()
264    }
265    /// <p>The character set to use for the Autonomous Database.</p>
266    pub fn character_set(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
267        self.inner = self.inner.character_set(input.into());
268        self
269    }
270    /// <p>The character set to use for the Autonomous Database.</p>
271    pub fn set_character_set(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
272        self.inner = self.inner.set_character_set(input);
273        self
274    }
275    /// <p>The character set to use for the Autonomous Database.</p>
276    pub fn get_character_set(&self) -> &::std::option::Option<::std::string::String> {
277        self.inner.get_character_set()
278    }
279    /// <p>The national character set to use for the Autonomous Database.</p>
280    pub fn ncharacter_set(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
281        self.inner = self.inner.ncharacter_set(input.into());
282        self
283    }
284    /// <p>The national character set to use for the Autonomous Database.</p>
285    pub fn set_ncharacter_set(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
286        self.inner = self.inner.set_ncharacter_set(input);
287        self
288    }
289    /// <p>The national character set to use for the Autonomous Database.</p>
290    pub fn get_ncharacter_set(&self) -> &::std::option::Option<::std::string::String> {
291        self.inner.get_ncharacter_set()
292    }
293    /// <p>The Oracle Database software version to use for the Autonomous Database.</p>
294    pub fn db_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
295        self.inner = self.inner.db_version(input.into());
296        self
297    }
298    /// <p>The Oracle Database software version to use for the Autonomous Database.</p>
299    pub fn set_db_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
300        self.inner = self.inner.set_db_version(input);
301        self
302    }
303    /// <p>The Oracle Database software version to use for the Autonomous Database.</p>
304    pub fn get_db_version(&self) -> &::std::option::Option<::std::string::String> {
305        self.inner.get_db_version()
306    }
307    /// <p>The Oracle Database edition to apply to the Autonomous Database.</p>
308    pub fn database_edition(mut self, input: crate::types::DatabaseEdition) -> Self {
309        self.inner = self.inner.database_edition(input);
310        self
311    }
312    /// <p>The Oracle Database edition to apply to the Autonomous Database.</p>
313    pub fn set_database_edition(mut self, input: ::std::option::Option<crate::types::DatabaseEdition>) -> Self {
314        self.inner = self.inner.set_database_edition(input);
315        self
316    }
317    /// <p>The Oracle Database edition to apply to the Autonomous Database.</p>
318    pub fn get_database_edition(&self) -> &::std::option::Option<crate::types::DatabaseEdition> {
319        self.inner.get_database_edition()
320    }
321    /// <p>The source of the allowlisted IP addresses for the standby Autonomous Database.</p>
322    pub fn standby_allowlisted_ips_source(mut self, input: crate::types::StandbyAllowlistedIpsSource) -> Self {
323        self.inner = self.inner.standby_allowlisted_ips_source(input);
324        self
325    }
326    /// <p>The source of the allowlisted IP addresses for the standby Autonomous Database.</p>
327    pub fn set_standby_allowlisted_ips_source(mut self, input: ::std::option::Option<crate::types::StandbyAllowlistedIpsSource>) -> Self {
328        self.inner = self.inner.set_standby_allowlisted_ips_source(input);
329        self
330    }
331    /// <p>The source of the allowlisted IP addresses for the standby Autonomous Database.</p>
332    pub fn get_standby_allowlisted_ips_source(&self) -> &::std::option::Option<crate::types::StandbyAllowlistedIpsSource> {
333        self.inner.get_standby_allowlisted_ips_source()
334    }
335    /// <p>The maintenance schedule type for the Autonomous Database.</p>
336    pub fn autonomous_maintenance_schedule_type(mut self, input: crate::types::AutonomousMaintenanceScheduleType) -> Self {
337        self.inner = self.inner.autonomous_maintenance_schedule_type(input);
338        self
339    }
340    /// <p>The maintenance schedule type for the Autonomous Database.</p>
341    pub fn set_autonomous_maintenance_schedule_type(mut self, input: ::std::option::Option<crate::types::AutonomousMaintenanceScheduleType>) -> Self {
342        self.inner = self.inner.set_autonomous_maintenance_schedule_type(input);
343        self
344    }
345    /// <p>The maintenance schedule type for the Autonomous Database.</p>
346    pub fn get_autonomous_maintenance_schedule_type(&self) -> &::std::option::Option<crate::types::AutonomousMaintenanceScheduleType> {
347        self.inner.get_autonomous_maintenance_schedule_type()
348    }
349    /// <p>The retention period, in days, for automatic backups of the Autonomous Database.</p>
350    pub fn backup_retention_period_in_days(mut self, input: i32) -> Self {
351        self.inner = self.inner.backup_retention_period_in_days(input);
352        self
353    }
354    /// <p>The retention period, in days, for automatic backups of the Autonomous Database.</p>
355    pub fn set_backup_retention_period_in_days(mut self, input: ::std::option::Option<i32>) -> Self {
356        self.inner = self.inner.set_backup_retention_period_in_days(input);
357        self
358    }
359    /// <p>The retention period, in days, for automatic backups of the Autonomous Database.</p>
360    pub fn get_backup_retention_period_in_days(&self) -> &::std::option::Option<i32> {
361        self.inner.get_backup_retention_period_in_days()
362    }
363    /// <p>The maximum number of compute resources that you can allocate to the Autonomous Database under the bring-your-own-license (BYOL) model.</p>
364    pub fn byol_compute_count_limit(mut self, input: f64) -> Self {
365        self.inner = self.inner.byol_compute_count_limit(input);
366        self
367    }
368    /// <p>The maximum number of compute resources that you can allocate to the Autonomous Database under the bring-your-own-license (BYOL) model.</p>
369    pub fn set_byol_compute_count_limit(mut self, input: ::std::option::Option<f64>) -> Self {
370        self.inner = self.inner.set_byol_compute_count_limit(input);
371        self
372    }
373    /// <p>The maximum number of compute resources that you can allocate to the Autonomous Database under the bring-your-own-license (BYOL) model.</p>
374    pub fn get_byol_compute_count_limit(&self) -> &::std::option::Option<f64> {
375        self.inner.get_byol_compute_count_limit()
376    }
377    /// <p>The number of CPU cores to allocate to the Autonomous Database.</p>
378    pub fn cpu_core_count(mut self, input: i32) -> Self {
379        self.inner = self.inner.cpu_core_count(input);
380        self
381    }
382    /// <p>The number of CPU cores to allocate to the Autonomous Database.</p>
383    pub fn set_cpu_core_count(mut self, input: ::std::option::Option<i32>) -> Self {
384        self.inner = self.inner.set_cpu_core_count(input);
385        self
386    }
387    /// <p>The number of CPU cores to allocate to the Autonomous Database.</p>
388    pub fn get_cpu_core_count(&self) -> &::std::option::Option<i32> {
389        self.inner.get_cpu_core_count()
390    }
391    ///
392    /// Appends an item to `customerContactsToSendToOCI`.
393    ///
394    /// To override the contents of this collection use [`set_customer_contacts_to_send_to_oci`](Self::set_customer_contacts_to_send_to_oci).
395    ///
396    /// <p>The list of customer contacts to receive operational notifications from Oracle Cloud Infrastructure (OCI) for the Autonomous Database.</p>
397    pub fn customer_contacts_to_send_to_oci(mut self, input: crate::types::CustomerContact) -> Self {
398        self.inner = self.inner.customer_contacts_to_send_to_oci(input);
399        self
400    }
401    /// <p>The list of customer contacts to receive operational notifications from Oracle Cloud Infrastructure (OCI) for the Autonomous Database.</p>
402    pub fn set_customer_contacts_to_send_to_oci(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CustomerContact>>) -> Self {
403        self.inner = self.inner.set_customer_contacts_to_send_to_oci(input);
404        self
405    }
406    /// <p>The list of customer contacts to receive operational notifications from Oracle Cloud Infrastructure (OCI) for the Autonomous Database.</p>
407    pub fn get_customer_contacts_to_send_to_oci(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CustomerContact>> {
408        self.inner.get_customer_contacts_to_send_to_oci()
409    }
410    /// <p>The private endpoint IP address for the Autonomous Database.</p>
411    pub fn private_endpoint_ip(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
412        self.inner = self.inner.private_endpoint_ip(input.into());
413        self
414    }
415    /// <p>The private endpoint IP address for the Autonomous Database.</p>
416    pub fn set_private_endpoint_ip(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
417        self.inner = self.inner.set_private_endpoint_ip(input);
418        self
419    }
420    /// <p>The private endpoint IP address for the Autonomous Database.</p>
421    pub fn get_private_endpoint_ip(&self) -> &::std::option::Option<::std::string::String> {
422        self.inner.get_private_endpoint_ip()
423    }
424    /// <p>The private endpoint label for the Autonomous Database.</p>
425    pub fn private_endpoint_label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
426        self.inner = self.inner.private_endpoint_label(input.into());
427        self
428    }
429    /// <p>The private endpoint label for the Autonomous Database.</p>
430    pub fn set_private_endpoint_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
431        self.inner = self.inner.set_private_endpoint_label(input);
432        self
433    }
434    /// <p>The private endpoint label for the Autonomous Database.</p>
435    pub fn get_private_endpoint_label(&self) -> &::std::option::Option<::std::string::String> {
436        self.inner.get_private_endpoint_label()
437    }
438    /// <p>The unique identifier of the resource pool leader Autonomous Database.</p>
439    pub fn resource_pool_leader_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
440        self.inner = self.inner.resource_pool_leader_id(input.into());
441        self
442    }
443    /// <p>The unique identifier of the resource pool leader Autonomous Database.</p>
444    pub fn set_resource_pool_leader_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
445        self.inner = self.inner.set_resource_pool_leader_id(input);
446        self
447    }
448    /// <p>The unique identifier of the resource pool leader Autonomous Database.</p>
449    pub fn get_resource_pool_leader_id(&self) -> &::std::option::Option<::std::string::String> {
450        self.inner.get_resource_pool_leader_id()
451    }
452    /// <p>The configuration of the resource pool for the Autonomous Database.</p>
453    pub fn resource_pool_summary(mut self, input: crate::types::ResourcePoolSummary) -> Self {
454        self.inner = self.inner.resource_pool_summary(input);
455        self
456    }
457    /// <p>The configuration of the resource pool for the Autonomous Database.</p>
458    pub fn set_resource_pool_summary(mut self, input: ::std::option::Option<crate::types::ResourcePoolSummary>) -> Self {
459        self.inner = self.inner.set_resource_pool_summary(input);
460        self
461    }
462    /// <p>The configuration of the resource pool for the Autonomous Database.</p>
463    pub fn get_resource_pool_summary(&self) -> &::std::option::Option<crate::types::ResourcePoolSummary> {
464        self.inner.get_resource_pool_summary()
465    }
466    ///
467    /// Appends an item to `scheduledOperations`.
468    ///
469    /// To override the contents of this collection use [`set_scheduled_operations`](Self::set_scheduled_operations).
470    ///
471    /// <p>The list of scheduled start and stop times for the Autonomous Database.</p>
472    pub fn scheduled_operations(mut self, input: crate::types::ScheduledOperationDetails) -> Self {
473        self.inner = self.inner.scheduled_operations(input);
474        self
475    }
476    /// <p>The list of scheduled start and stop times for the Autonomous Database.</p>
477    pub fn set_scheduled_operations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ScheduledOperationDetails>>) -> Self {
478        self.inner = self.inner.set_scheduled_operations(input);
479        self
480    }
481    /// <p>The list of scheduled start and stop times for the Autonomous Database.</p>
482    pub fn get_scheduled_operations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ScheduledOperationDetails>> {
483        self.inner.get_scheduled_operations()
484    }
485    ///
486    /// Appends an item to `standbyAllowlistedIps`.
487    ///
488    /// To override the contents of this collection use [`set_standby_allowlisted_ips`](Self::set_standby_allowlisted_ips).
489    ///
490    /// <p>The list of IP addresses that are allowed to access the standby Autonomous Database.</p>
491    pub fn standby_allowlisted_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
492        self.inner = self.inner.standby_allowlisted_ips(input.into());
493        self
494    }
495    /// <p>The list of IP addresses that are allowed to access the standby Autonomous Database.</p>
496    pub fn set_standby_allowlisted_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
497        self.inner = self.inner.set_standby_allowlisted_ips(input);
498        self
499    }
500    /// <p>The list of IP addresses that are allowed to access the standby Autonomous Database.</p>
501    pub fn get_standby_allowlisted_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
502        self.inner.get_standby_allowlisted_ips()
503    }
504    ///
505    /// Appends an item to `allowlistedIps`.
506    ///
507    /// To override the contents of this collection use [`set_allowlisted_ips`](Self::set_allowlisted_ips).
508    ///
509    /// <p>The list of IP addresses that are allowed to access the Autonomous Database.</p>
510    pub fn allowlisted_ips(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
511        self.inner = self.inner.allowlisted_ips(input.into());
512        self
513    }
514    /// <p>The list of IP addresses that are allowed to access the Autonomous Database.</p>
515    pub fn set_allowlisted_ips(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
516        self.inner = self.inner.set_allowlisted_ips(input);
517        self
518    }
519    /// <p>The list of IP addresses that are allowed to access the Autonomous Database.</p>
520    pub fn get_allowlisted_ips(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
521        self.inner.get_allowlisted_ips()
522    }
523    /// <p>The transportable tablespace configuration to use when creating the Autonomous Database.</p>
524    pub fn transportable_tablespace(mut self, input: crate::types::TransportableTablespace) -> Self {
525        self.inner = self.inner.transportable_tablespace(input);
526        self
527    }
528    /// <p>The transportable tablespace configuration to use when creating the Autonomous Database.</p>
529    pub fn set_transportable_tablespace(mut self, input: ::std::option::Option<crate::types::TransportableTablespace>) -> Self {
530        self.inner = self.inner.set_transportable_tablespace(input);
531        self
532    }
533    /// <p>The transportable tablespace configuration to use when creating the Autonomous Database.</p>
534    pub fn get_transportable_tablespace(&self) -> &::std::option::Option<crate::types::TransportableTablespace> {
535        self.inner.get_transportable_tablespace()
536    }
537    /// <p>Specifies whether to lock the backup retention period of the Autonomous Database to prevent it from being shortened.</p>
538    pub fn is_backup_retention_locked(mut self, input: bool) -> Self {
539        self.inner = self.inner.is_backup_retention_locked(input);
540        self
541    }
542    /// <p>Specifies whether to lock the backup retention period of the Autonomous Database to prevent it from being shortened.</p>
543    pub fn set_is_backup_retention_locked(mut self, input: ::std::option::Option<bool>) -> Self {
544        self.inner = self.inner.set_is_backup_retention_locked(input);
545        self
546    }
547    /// <p>Specifies whether to lock the backup retention period of the Autonomous Database to prevent it from being shortened.</p>
548    pub fn get_is_backup_retention_locked(&self) -> &::std::option::Option<bool> {
549        self.inner.get_is_backup_retention_locked()
550    }
551    /// <p>Specifies whether to enable local Oracle Data Guard for the Autonomous Database.</p>
552    pub fn is_local_data_guard_enabled(mut self, input: bool) -> Self {
553        self.inner = self.inner.is_local_data_guard_enabled(input);
554        self
555    }
556    /// <p>Specifies whether to enable local Oracle Data Guard for the Autonomous Database.</p>
557    pub fn set_is_local_data_guard_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
558        self.inner = self.inner.set_is_local_data_guard_enabled(input);
559        self
560    }
561    /// <p>Specifies whether to enable local Oracle Data Guard for the Autonomous Database.</p>
562    pub fn get_is_local_data_guard_enabled(&self) -> &::std::option::Option<bool> {
563        self.inner.get_is_local_data_guard_enabled()
564    }
565    /// <p>Specifies whether mutual TLS (mTLS) authentication is required to connect to the Autonomous Database.</p>
566    pub fn is_mtls_connection_required(mut self, input: bool) -> Self {
567        self.inner = self.inner.is_mtls_connection_required(input);
568        self
569    }
570    /// <p>Specifies whether mutual TLS (mTLS) authentication is required to connect to the Autonomous Database.</p>
571    pub fn set_is_mtls_connection_required(mut self, input: ::std::option::Option<bool>) -> Self {
572        self.inner = self.inner.set_is_mtls_connection_required(input);
573        self
574    }
575    /// <p>Specifies whether mutual TLS (mTLS) authentication is required to connect to the Autonomous Database.</p>
576    pub fn get_is_mtls_connection_required(&self) -> &::std::option::Option<bool> {
577        self.inner.get_is_mtls_connection_required()
578    }
579    ///
580    /// Appends an item to `dbToolsDetails`.
581    ///
582    /// To override the contents of this collection use [`set_db_tools_details`](Self::set_db_tools_details).
583    ///
584    /// <p>The list of database management tools to enable for the Autonomous Database.</p>
585    pub fn db_tools_details(mut self, input: crate::types::DatabaseTool) -> Self {
586        self.inner = self.inner.db_tools_details(input);
587        self
588    }
589    /// <p>The list of database management tools to enable for the Autonomous Database.</p>
590    pub fn set_db_tools_details(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DatabaseTool>>) -> Self {
591        self.inner = self.inner.set_db_tools_details(input);
592        self
593    }
594    /// <p>The list of database management tools to enable for the Autonomous Database.</p>
595    pub fn get_db_tools_details(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DatabaseTool>> {
596        self.inner.get_db_tools_details()
597    }
598    /// <p>The source from which to create the Autonomous Database, such as a clone, backup, or cross-Region copy.</p>
599    pub fn source(mut self, input: crate::types::SourceType) -> Self {
600        self.inner = self.inner.source(input);
601        self
602    }
603    /// <p>The source from which to create the Autonomous Database, such as a clone, backup, or cross-Region copy.</p>
604    pub fn set_source(mut self, input: ::std::option::Option<crate::types::SourceType>) -> Self {
605        self.inner = self.inner.set_source(input);
606        self
607    }
608    /// <p>The source from which to create the Autonomous Database, such as a clone, backup, or cross-Region copy.</p>
609    pub fn get_source(&self) -> &::std::option::Option<crate::types::SourceType> {
610        self.inner.get_source()
611    }
612    /// <p>The configuration details for the source used to create the Autonomous Database.</p>
613    pub fn source_configuration(mut self, input: crate::types::SourceConfiguration) -> Self {
614        self.inner = self.inner.source_configuration(input);
615        self
616    }
617    /// <p>The configuration details for the source used to create the Autonomous Database.</p>
618    pub fn set_source_configuration(mut self, input: ::std::option::Option<crate::types::SourceConfiguration>) -> Self {
619        self.inner = self.inner.set_source_configuration(input);
620        self
621    }
622    /// <p>The configuration details for the source used to create the Autonomous Database.</p>
623    pub fn get_source_configuration(&self) -> &::std::option::Option<crate::types::SourceConfiguration> {
624        self.inner.get_source_configuration()
625    }
626    /// <p>The provider of the encryption key to use for the Autonomous Database.</p>
627    pub fn encryption_key_provider(mut self, input: crate::types::EncryptionKeyProviderInput) -> Self {
628        self.inner = self.inner.encryption_key_provider(input);
629        self
630    }
631    /// <p>The provider of the encryption key to use for the Autonomous Database.</p>
632    pub fn set_encryption_key_provider(mut self, input: ::std::option::Option<crate::types::EncryptionKeyProviderInput>) -> Self {
633        self.inner = self.inner.set_encryption_key_provider(input);
634        self
635    }
636    /// <p>The provider of the encryption key to use for the Autonomous Database.</p>
637    pub fn get_encryption_key_provider(&self) -> &::std::option::Option<crate::types::EncryptionKeyProviderInput> {
638        self.inner.get_encryption_key_provider()
639    }
640    /// <p>The configuration of the encryption key to use for the Autonomous Database.</p>
641    pub fn encryption_key_configuration(mut self, input: crate::types::EncryptionKeyConfigurationInput) -> Self {
642        self.inner = self.inner.encryption_key_configuration(input);
643        self
644    }
645    /// <p>The configuration of the encryption key to use for the Autonomous Database.</p>
646    pub fn set_encryption_key_configuration(mut self, input: ::std::option::Option<crate::types::EncryptionKeyConfigurationInput>) -> Self {
647        self.inner = self.inner.set_encryption_key_configuration(input);
648        self
649    }
650    /// <p>The configuration of the encryption key to use for the Autonomous Database.</p>
651    pub fn get_encryption_key_configuration(&self) -> &::std::option::Option<crate::types::EncryptionKeyConfigurationInput> {
652        self.inner.get_encryption_key_configuration()
653    }
654    /// <p>The source of the admin password for the Autonomous Database. When set to <code>CUSTOMER_MANAGED_AWS_SECRET</code>, the admin password is retrieved from an Amazon Web Services Secrets Manager secret.</p>
655    pub fn admin_password_source(mut self, input: crate::types::AdminPasswordSource) -> Self {
656        self.inner = self.inner.admin_password_source(input);
657        self
658    }
659    /// <p>The source of the admin password for the Autonomous Database. When set to <code>CUSTOMER_MANAGED_AWS_SECRET</code>, the admin password is retrieved from an Amazon Web Services Secrets Manager secret.</p>
660    pub fn set_admin_password_source(mut self, input: ::std::option::Option<crate::types::AdminPasswordSource>) -> Self {
661        self.inner = self.inner.set_admin_password_source(input);
662        self
663    }
664    /// <p>The source of the admin password for the Autonomous Database. When set to <code>CUSTOMER_MANAGED_AWS_SECRET</code>, the admin password is retrieved from an Amazon Web Services Secrets Manager secret.</p>
665    pub fn get_admin_password_source(&self) -> &::std::option::Option<crate::types::AdminPasswordSource> {
666        self.inner.get_admin_password_source()
667    }
668    /// <p>The configuration of the admin password source for the Autonomous Database.</p>
669    pub fn admin_password_source_configuration(mut self, input: crate::types::AdminPasswordSourceConfigurationInput) -> Self {
670        self.inner = self.inner.admin_password_source_configuration(input);
671        self
672    }
673    /// <p>The configuration of the admin password source for the Autonomous Database.</p>
674    pub fn set_admin_password_source_configuration(
675        mut self,
676        input: ::std::option::Option<crate::types::AdminPasswordSourceConfigurationInput>,
677    ) -> Self {
678        self.inner = self.inner.set_admin_password_source_configuration(input);
679        self
680    }
681    /// <p>The configuration of the admin password source for the Autonomous Database.</p>
682    pub fn get_admin_password_source_configuration(&self) -> &::std::option::Option<crate::types::AdminPasswordSourceConfigurationInput> {
683        self.inner.get_admin_password_source_configuration()
684    }
685    /// <p>A client-provided token to ensure the idempotency of the request.</p>
686    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
687        self.inner = self.inner.client_token(input.into());
688        self
689    }
690    /// <p>A client-provided token to ensure the idempotency of the request.</p>
691    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
692        self.inner = self.inner.set_client_token(input);
693        self
694    }
695    /// <p>A client-provided token to ensure the idempotency of the request.</p>
696    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
697        self.inner.get_client_token()
698    }
699    ///
700    /// Adds a key-value pair to `tags`.
701    ///
702    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
703    ///
704    /// <p>The list of resource tags to apply to the Autonomous Database. Each tag is a key-value pair with no predefined name, type, or namespace.</p>
705    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
706        self.inner = self.inner.tags(k.into(), v.into());
707        self
708    }
709    /// <p>The list of resource tags to apply to the Autonomous Database. Each tag is a key-value pair with no predefined name, type, or namespace.</p>
710    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
711        self.inner = self.inner.set_tags(input);
712        self
713    }
714    /// <p>The list of resource tags to apply to the Autonomous Database. Each tag is a key-value pair with no predefined name, type, or namespace.</p>
715    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
716        self.inner.get_tags()
717    }
718}