aws_sdk_neptune/operation/modify_db_cluster/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::modify_db_cluster::_modify_db_cluster_output::ModifyDbClusterOutputBuilder;
3
4pub use crate::operation::modify_db_cluster::_modify_db_cluster_input::ModifyDbClusterInputBuilder;
5
6impl crate::operation::modify_db_cluster::builders::ModifyDbClusterInputBuilder {
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_cluster::ModifyDbClusterOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::modify_db_cluster::ModifyDBClusterError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.modify_db_cluster();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `ModifyDBCluster`.
24///
25/// <p>Modify a setting for a DB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct ModifyDBClusterFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::modify_db_cluster::builders::ModifyDbClusterInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::modify_db_cluster::ModifyDbClusterOutput,
35 crate::operation::modify_db_cluster::ModifyDBClusterError,
36 > for ModifyDBClusterFluentBuilder
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_cluster::ModifyDbClusterOutput,
44 crate::operation::modify_db_cluster::ModifyDBClusterError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl ModifyDBClusterFluentBuilder {
51 /// Creates a new `ModifyDBClusterFluentBuilder`.
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 ModifyDBCluster as a reference.
60 pub fn as_input(&self) -> &crate::operation::modify_db_cluster::builders::ModifyDbClusterInputBuilder {
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_cluster::ModifyDbClusterOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::modify_db_cluster::ModifyDBClusterError,
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_cluster::ModifyDBCluster::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::modify_db_cluster::ModifyDBCluster::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_cluster::ModifyDbClusterOutput,
97 crate::operation::modify_db_cluster::ModifyDBClusterError,
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 DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.</p>
112 /// <p>Constraints:</p>
113 /// <ul>
114 /// <li>
115 /// <p>Must match the identifier of an existing DBCluster.</p></li>
116 /// </ul>
117 pub fn db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118 self.inner = self.inner.db_cluster_identifier(input.into());
119 self
120 }
121 /// <p>The DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.</p>
122 /// <p>Constraints:</p>
123 /// <ul>
124 /// <li>
125 /// <p>Must match the identifier of an existing DBCluster.</p></li>
126 /// </ul>
127 pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128 self.inner = self.inner.set_db_cluster_identifier(input);
129 self
130 }
131 /// <p>The DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.</p>
132 /// <p>Constraints:</p>
133 /// <ul>
134 /// <li>
135 /// <p>Must match the identifier of an existing DBCluster.</p></li>
136 /// </ul>
137 pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
138 self.inner.get_db_cluster_identifier()
139 }
140 /// <p>The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.</p>
141 /// <p>Constraints:</p>
142 /// <ul>
143 /// <li>
144 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens</p></li>
145 /// <li>
146 /// <p>The first character must be a letter</p></li>
147 /// <li>
148 /// <p>Cannot end with a hyphen or contain two consecutive hyphens</p></li>
149 /// </ul>
150 /// <p>Example: <code>my-cluster2</code></p>
151 pub fn new_db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
152 self.inner = self.inner.new_db_cluster_identifier(input.into());
153 self
154 }
155 /// <p>The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.</p>
156 /// <p>Constraints:</p>
157 /// <ul>
158 /// <li>
159 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens</p></li>
160 /// <li>
161 /// <p>The first character must be a letter</p></li>
162 /// <li>
163 /// <p>Cannot end with a hyphen or contain two consecutive hyphens</p></li>
164 /// </ul>
165 /// <p>Example: <code>my-cluster2</code></p>
166 pub fn set_new_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
167 self.inner = self.inner.set_new_db_cluster_identifier(input);
168 self
169 }
170 /// <p>The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.</p>
171 /// <p>Constraints:</p>
172 /// <ul>
173 /// <li>
174 /// <p>Must contain from 1 to 63 letters, numbers, or hyphens</p></li>
175 /// <li>
176 /// <p>The first character must be a letter</p></li>
177 /// <li>
178 /// <p>Cannot end with a hyphen or contain two consecutive hyphens</p></li>
179 /// </ul>
180 /// <p>Example: <code>my-cluster2</code></p>
181 pub fn get_new_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
182 self.inner.get_new_db_cluster_identifier()
183 }
184 /// <p>A value that 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 cluster. If this parameter is set to <code>false</code>, changes to the DB cluster are applied during the next maintenance window.</p>
185 /// <p>The <code>ApplyImmediately</code> parameter only affects <code>NewDBClusterIdentifier</code> values. If you set the <code>ApplyImmediately</code> parameter value to false, then changes to <code>NewDBClusterIdentifier</code> values are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
186 /// <p>Default: <code>false</code></p>
187 pub fn apply_immediately(mut self, input: bool) -> Self {
188 self.inner = self.inner.apply_immediately(input);
189 self
190 }
191 /// <p>A value that 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 cluster. If this parameter is set to <code>false</code>, changes to the DB cluster are applied during the next maintenance window.</p>
192 /// <p>The <code>ApplyImmediately</code> parameter only affects <code>NewDBClusterIdentifier</code> values. If you set the <code>ApplyImmediately</code> parameter value to false, then changes to <code>NewDBClusterIdentifier</code> values are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
193 /// <p>Default: <code>false</code></p>
194 pub fn set_apply_immediately(mut self, input: ::std::option::Option<bool>) -> Self {
195 self.inner = self.inner.set_apply_immediately(input);
196 self
197 }
198 /// <p>A value that 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 cluster. If this parameter is set to <code>false</code>, changes to the DB cluster are applied during the next maintenance window.</p>
199 /// <p>The <code>ApplyImmediately</code> parameter only affects <code>NewDBClusterIdentifier</code> values. If you set the <code>ApplyImmediately</code> parameter value to false, then changes to <code>NewDBClusterIdentifier</code> values are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of the <code>ApplyImmediately</code> parameter.</p>
200 /// <p>Default: <code>false</code></p>
201 pub fn get_apply_immediately(&self) -> &::std::option::Option<bool> {
202 self.inner.get_apply_immediately()
203 }
204 /// <p>The number of days for which automated backups are retained. You must specify a minimum value of 1.</p>
205 /// <p>Default: 1</p>
206 /// <p>Constraints:</p>
207 /// <ul>
208 /// <li>
209 /// <p>Must be a value from 1 to 35</p></li>
210 /// </ul>
211 pub fn backup_retention_period(mut self, input: i32) -> Self {
212 self.inner = self.inner.backup_retention_period(input);
213 self
214 }
215 /// <p>The number of days for which automated backups are retained. You must specify a minimum value of 1.</p>
216 /// <p>Default: 1</p>
217 /// <p>Constraints:</p>
218 /// <ul>
219 /// <li>
220 /// <p>Must be a value from 1 to 35</p></li>
221 /// </ul>
222 pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
223 self.inner = self.inner.set_backup_retention_period(input);
224 self
225 }
226 /// <p>The number of days for which automated backups are retained. You must specify a minimum value of 1.</p>
227 /// <p>Default: 1</p>
228 /// <p>Constraints:</p>
229 /// <ul>
230 /// <li>
231 /// <p>Must be a value from 1 to 35</p></li>
232 /// </ul>
233 pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
234 self.inner.get_backup_retention_period()
235 }
236 /// <p>The name of the DB cluster parameter group to use for the DB cluster.</p>
237 pub fn db_cluster_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
238 self.inner = self.inner.db_cluster_parameter_group_name(input.into());
239 self
240 }
241 /// <p>The name of the DB cluster parameter group to use for the DB cluster.</p>
242 pub fn set_db_cluster_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
243 self.inner = self.inner.set_db_cluster_parameter_group_name(input);
244 self
245 }
246 /// <p>The name of the DB cluster parameter group to use for the DB cluster.</p>
247 pub fn get_db_cluster_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
248 self.inner.get_db_cluster_parameter_group_name()
249 }
250 ///
251 /// Appends an item to `VpcSecurityGroupIds`.
252 ///
253 /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
254 ///
255 /// <p>A list of VPC security groups that the DB cluster will belong to.</p>
256 pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
257 self.inner = self.inner.vpc_security_group_ids(input.into());
258 self
259 }
260 /// <p>A list of VPC security groups that the DB cluster will belong to.</p>
261 pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
262 self.inner = self.inner.set_vpc_security_group_ids(input);
263 self
264 }
265 /// <p>A list of VPC security groups that the DB cluster will belong to.</p>
266 pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
267 self.inner.get_vpc_security_group_ids()
268 }
269 /// <p>The port number on which the DB cluster accepts connections.</p>
270 /// <p>Constraints: Value must be <code>1150-65535</code></p>
271 /// <p>Default: The same port as the original DB cluster.</p>
272 pub fn port(mut self, input: i32) -> Self {
273 self.inner = self.inner.port(input);
274 self
275 }
276 /// <p>The port number on which the DB cluster accepts connections.</p>
277 /// <p>Constraints: Value must be <code>1150-65535</code></p>
278 /// <p>Default: The same port as the original DB cluster.</p>
279 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
280 self.inner = self.inner.set_port(input);
281 self
282 }
283 /// <p>The port number on which the DB cluster accepts connections.</p>
284 /// <p>Constraints: Value must be <code>1150-65535</code></p>
285 /// <p>Default: The same port as the original DB cluster.</p>
286 pub fn get_port(&self) -> &::std::option::Option<i32> {
287 self.inner.get_port()
288 }
289 /// <p>Not supported by Neptune.</p>
290 pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
291 self.inner = self.inner.master_user_password(input.into());
292 self
293 }
294 /// <p>Not supported by Neptune.</p>
295 pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
296 self.inner = self.inner.set_master_user_password(input);
297 self
298 }
299 /// <p>Not supported by Neptune.</p>
300 pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
301 self.inner.get_master_user_password()
302 }
303 /// <p><i>Not supported by Neptune.</i></p>
304 pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
305 self.inner = self.inner.option_group_name(input.into());
306 self
307 }
308 /// <p><i>Not supported by Neptune.</i></p>
309 pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
310 self.inner = self.inner.set_option_group_name(input);
311 self
312 }
313 /// <p><i>Not supported by Neptune.</i></p>
314 pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
315 self.inner.get_option_group_name()
316 }
317 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter.</p>
318 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region.</p>
319 /// <p>Constraints:</p>
320 /// <ul>
321 /// <li>
322 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
323 /// <li>
324 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
325 /// <li>
326 /// <p>Must not conflict with the preferred maintenance window.</p></li>
327 /// <li>
328 /// <p>Must be at least 30 minutes.</p></li>
329 /// </ul>
330 pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
331 self.inner = self.inner.preferred_backup_window(input.into());
332 self
333 }
334 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter.</p>
335 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region.</p>
336 /// <p>Constraints:</p>
337 /// <ul>
338 /// <li>
339 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
340 /// <li>
341 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
342 /// <li>
343 /// <p>Must not conflict with the preferred maintenance window.</p></li>
344 /// <li>
345 /// <p>Must be at least 30 minutes.</p></li>
346 /// </ul>
347 pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
348 self.inner = self.inner.set_preferred_backup_window(input);
349 self
350 }
351 /// <p>The daily time range during which automated backups are created if automated backups are enabled, using the <code>BackupRetentionPeriod</code> parameter.</p>
352 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region.</p>
353 /// <p>Constraints:</p>
354 /// <ul>
355 /// <li>
356 /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
357 /// <li>
358 /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
359 /// <li>
360 /// <p>Must not conflict with the preferred maintenance window.</p></li>
361 /// <li>
362 /// <p>Must be at least 30 minutes.</p></li>
363 /// </ul>
364 pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
365 self.inner.get_preferred_backup_window()
366 }
367 /// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
368 /// <p>Format: <code>ddd:hh24:mi-ddd:hh24:mi</code></p>
369 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.</p>
370 /// <p>Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.</p>
371 /// <p>Constraints: Minimum 30-minute window.</p>
372 pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
373 self.inner = self.inner.preferred_maintenance_window(input.into());
374 self
375 }
376 /// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
377 /// <p>Format: <code>ddd:hh24:mi-ddd:hh24:mi</code></p>
378 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.</p>
379 /// <p>Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.</p>
380 /// <p>Constraints: Minimum 30-minute window.</p>
381 pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
382 self.inner = self.inner.set_preferred_maintenance_window(input);
383 self
384 }
385 /// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p>
386 /// <p>Format: <code>ddd:hh24:mi-ddd:hh24:mi</code></p>
387 /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.</p>
388 /// <p>Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.</p>
389 /// <p>Constraints: Minimum 30-minute window.</p>
390 pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
391 self.inner.get_preferred_maintenance_window()
392 }
393 /// <p>True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.</p>
394 /// <p>Default: <code>false</code></p>
395 pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
396 self.inner = self.inner.enable_iam_database_authentication(input);
397 self
398 }
399 /// <p>True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.</p>
400 /// <p>Default: <code>false</code></p>
401 pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
402 self.inner = self.inner.set_enable_iam_database_authentication(input);
403 self
404 }
405 /// <p>True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.</p>
406 /// <p>Default: <code>false</code></p>
407 pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
408 self.inner.get_enable_iam_database_authentication()
409 }
410 /// <p>The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster. See <a href="https://docs.aws.amazon.com/neptune/latest/userguide/cloudwatch-logs.html#cloudwatch-logs-cli">Using the CLI to publish Neptune audit logs to CloudWatch Logs</a>.</p>
411 pub fn cloudwatch_logs_export_configuration(mut self, input: crate::types::CloudwatchLogsExportConfiguration) -> Self {
412 self.inner = self.inner.cloudwatch_logs_export_configuration(input);
413 self
414 }
415 /// <p>The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster. See <a href="https://docs.aws.amazon.com/neptune/latest/userguide/cloudwatch-logs.html#cloudwatch-logs-cli">Using the CLI to publish Neptune audit logs to CloudWatch Logs</a>.</p>
416 pub fn set_cloudwatch_logs_export_configuration(mut self, input: ::std::option::Option<crate::types::CloudwatchLogsExportConfiguration>) -> Self {
417 self.inner = self.inner.set_cloudwatch_logs_export_configuration(input);
418 self
419 }
420 /// <p>The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB cluster. See <a href="https://docs.aws.amazon.com/neptune/latest/userguide/cloudwatch-logs.html#cloudwatch-logs-cli">Using the CLI to publish Neptune audit logs to CloudWatch Logs</a>.</p>
421 pub fn get_cloudwatch_logs_export_configuration(&self) -> &::std::option::Option<crate::types::CloudwatchLogsExportConfiguration> {
422 self.inner.get_cloudwatch_logs_export_configuration()
423 }
424 /// <p>The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is set to true.</p>
425 /// <p>For a list of valid engine versions, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/engine-releases.html">Engine Releases for Amazon Neptune</a>, or call <code>DescribeDBEngineVersions</code>.</p>
426 pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
427 self.inner = self.inner.engine_version(input.into());
428 self
429 }
430 /// <p>The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is set to true.</p>
431 /// <p>For a list of valid engine versions, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/engine-releases.html">Engine Releases for Amazon Neptune</a>, or call <code>DescribeDBEngineVersions</code>.</p>
432 pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
433 self.inner = self.inner.set_engine_version(input);
434 self
435 }
436 /// <p>The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless the <code>ApplyImmediately</code> parameter is set to true.</p>
437 /// <p>For a list of valid engine versions, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/engine-releases.html">Engine Releases for Amazon Neptune</a>, or call <code>DescribeDBEngineVersions</code>.</p>
438 pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
439 self.inner.get_engine_version()
440 }
441 /// <p>A value that indicates whether upgrades between different major versions are allowed.</p>
442 /// <p>Constraints: You must set the allow-major-version-upgrade flag when providing an <code>EngineVersion</code> parameter that uses a different major version than the DB cluster's current version.</p>
443 pub fn allow_major_version_upgrade(mut self, input: bool) -> Self {
444 self.inner = self.inner.allow_major_version_upgrade(input);
445 self
446 }
447 /// <p>A value that indicates whether upgrades between different major versions are allowed.</p>
448 /// <p>Constraints: You must set the allow-major-version-upgrade flag when providing an <code>EngineVersion</code> parameter that uses a different major version than the DB cluster's current version.</p>
449 pub fn set_allow_major_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
450 self.inner = self.inner.set_allow_major_version_upgrade(input);
451 self
452 }
453 /// <p>A value that indicates whether upgrades between different major versions are allowed.</p>
454 /// <p>Constraints: You must set the allow-major-version-upgrade flag when providing an <code>EngineVersion</code> parameter that uses a different major version than the DB cluster's current version.</p>
455 pub fn get_allow_major_version_upgrade(&self) -> &::std::option::Option<bool> {
456 self.inner.get_allow_major_version_upgrade()
457 }
458 /// <p>The name of the DB parameter group to apply to all instances of the DB cluster.</p><note>
459 /// <p>When you apply a parameter group using <code>DBInstanceParameterGroupName</code>, parameter changes aren't applied during the next maintenance window but instead are applied immediately.</p>
460 /// </note>
461 /// <p>Default: The existing name setting</p>
462 /// <p>Constraints:</p>
463 /// <ul>
464 /// <li>
465 /// <p>The DB parameter group must be in the same DB parameter group family as the target DB cluster version.</p></li>
466 /// <li>
467 /// <p>The <code>DBInstanceParameterGroupName</code> parameter is only valid in combination with the <code>AllowMajorVersionUpgrade</code> parameter.</p></li>
468 /// </ul>
469 pub fn db_instance_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
470 self.inner = self.inner.db_instance_parameter_group_name(input.into());
471 self
472 }
473 /// <p>The name of the DB parameter group to apply to all instances of the DB cluster.</p><note>
474 /// <p>When you apply a parameter group using <code>DBInstanceParameterGroupName</code>, parameter changes aren't applied during the next maintenance window but instead are applied immediately.</p>
475 /// </note>
476 /// <p>Default: The existing name setting</p>
477 /// <p>Constraints:</p>
478 /// <ul>
479 /// <li>
480 /// <p>The DB parameter group must be in the same DB parameter group family as the target DB cluster version.</p></li>
481 /// <li>
482 /// <p>The <code>DBInstanceParameterGroupName</code> parameter is only valid in combination with the <code>AllowMajorVersionUpgrade</code> parameter.</p></li>
483 /// </ul>
484 pub fn set_db_instance_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
485 self.inner = self.inner.set_db_instance_parameter_group_name(input);
486 self
487 }
488 /// <p>The name of the DB parameter group to apply to all instances of the DB cluster.</p><note>
489 /// <p>When you apply a parameter group using <code>DBInstanceParameterGroupName</code>, parameter changes aren't applied during the next maintenance window but instead are applied immediately.</p>
490 /// </note>
491 /// <p>Default: The existing name setting</p>
492 /// <p>Constraints:</p>
493 /// <ul>
494 /// <li>
495 /// <p>The DB parameter group must be in the same DB parameter group family as the target DB cluster version.</p></li>
496 /// <li>
497 /// <p>The <code>DBInstanceParameterGroupName</code> parameter is only valid in combination with the <code>AllowMajorVersionUpgrade</code> parameter.</p></li>
498 /// </ul>
499 pub fn get_db_instance_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
500 self.inner.get_db_instance_parameter_group_name()
501 }
502 /// <p>A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.</p>
503 pub fn deletion_protection(mut self, input: bool) -> Self {
504 self.inner = self.inner.deletion_protection(input);
505 self
506 }
507 /// <p>A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.</p>
508 pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
509 self.inner = self.inner.set_deletion_protection(input);
510 self
511 }
512 /// <p>A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.</p>
513 pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
514 self.inner.get_deletion_protection()
515 }
516 /// <p><i>If set to <code>true</code>, tags are copied to any snapshot of the DB cluster that is created.</i></p>
517 pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
518 self.inner = self.inner.copy_tags_to_snapshot(input);
519 self
520 }
521 /// <p><i>If set to <code>true</code>, tags are copied to any snapshot of the DB cluster that is created.</i></p>
522 pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
523 self.inner = self.inner.set_copy_tags_to_snapshot(input);
524 self
525 }
526 /// <p><i>If set to <code>true</code>, tags are copied to any snapshot of the DB cluster that is created.</i></p>
527 pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
528 self.inner.get_copy_tags_to_snapshot()
529 }
530 /// <p>Contains the scaling configuration of a Neptune Serverless DB cluster.</p>
531 /// <p>For more information, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/neptune-serverless-using.html">Using Amazon Neptune Serverless</a> in the <i>Amazon Neptune User Guide</i>.</p>
532 pub fn serverless_v2_scaling_configuration(mut self, input: crate::types::ServerlessV2ScalingConfiguration) -> Self {
533 self.inner = self.inner.serverless_v2_scaling_configuration(input);
534 self
535 }
536 /// <p>Contains the scaling configuration of a Neptune Serverless DB cluster.</p>
537 /// <p>For more information, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/neptune-serverless-using.html">Using Amazon Neptune Serverless</a> in the <i>Amazon Neptune User Guide</i>.</p>
538 pub fn set_serverless_v2_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ServerlessV2ScalingConfiguration>) -> Self {
539 self.inner = self.inner.set_serverless_v2_scaling_configuration(input);
540 self
541 }
542 /// <p>Contains the scaling configuration of a Neptune Serverless DB cluster.</p>
543 /// <p>For more information, see <a href="https://docs.aws.amazon.com/neptune/latest/userguide/neptune-serverless-using.html">Using Amazon Neptune Serverless</a> in the <i>Amazon Neptune User Guide</i>.</p>
544 pub fn get_serverless_v2_scaling_configuration(&self) -> &::std::option::Option<crate::types::ServerlessV2ScalingConfiguration> {
545 self.inner.get_serverless_v2_scaling_configuration()
546 }
547 /// <p>The storage type to associate with the DB cluster.</p>
548 /// <p>Valid Values:</p>
549 /// <ul>
550 /// <li>
551 /// <p><b> <code>standard</code> </b> – ( <i>the default</i> ) Configures cost-effective database storage for applications with moderate to small I/O usage.</p></li>
552 /// <li>
553 /// <p><b> <code>iopt1</code> </b> – Enables <a href="https://docs.aws.amazon.com/neptune/latest/userguide/storage-types.html#provisioned-iops-storage">I/O-Optimized storage</a> that's designed to meet the needs of I/O-intensive graph workloads that require predictable pricing with low I/O latency and consistent I/O throughput.</p>
554 /// <p>Neptune I/O-Optimized storage is only available starting with engine release 1.3.0.0.</p></li>
555 /// </ul>
556 pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
557 self.inner = self.inner.storage_type(input.into());
558 self
559 }
560 /// <p>The storage type to associate with the DB cluster.</p>
561 /// <p>Valid Values:</p>
562 /// <ul>
563 /// <li>
564 /// <p><b> <code>standard</code> </b> – ( <i>the default</i> ) Configures cost-effective database storage for applications with moderate to small I/O usage.</p></li>
565 /// <li>
566 /// <p><b> <code>iopt1</code> </b> – Enables <a href="https://docs.aws.amazon.com/neptune/latest/userguide/storage-types.html#provisioned-iops-storage">I/O-Optimized storage</a> that's designed to meet the needs of I/O-intensive graph workloads that require predictable pricing with low I/O latency and consistent I/O throughput.</p>
567 /// <p>Neptune I/O-Optimized storage is only available starting with engine release 1.3.0.0.</p></li>
568 /// </ul>
569 pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
570 self.inner = self.inner.set_storage_type(input);
571 self
572 }
573 /// <p>The storage type to associate with the DB cluster.</p>
574 /// <p>Valid Values:</p>
575 /// <ul>
576 /// <li>
577 /// <p><b> <code>standard</code> </b> – ( <i>the default</i> ) Configures cost-effective database storage for applications with moderate to small I/O usage.</p></li>
578 /// <li>
579 /// <p><b> <code>iopt1</code> </b> – Enables <a href="https://docs.aws.amazon.com/neptune/latest/userguide/storage-types.html#provisioned-iops-storage">I/O-Optimized storage</a> that's designed to meet the needs of I/O-intensive graph workloads that require predictable pricing with low I/O latency and consistent I/O throughput.</p>
580 /// <p>Neptune I/O-Optimized storage is only available starting with engine release 1.3.0.0.</p></li>
581 /// </ul>
582 pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
583 self.inner.get_storage_type()
584 }
585}