aws_sdk_dax/operation/create_cluster/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_cluster::_create_cluster_output::CreateClusterOutputBuilder;
3
4pub use crate::operation::create_cluster::_create_cluster_input::CreateClusterInputBuilder;
5
6impl crate::operation::create_cluster::builders::CreateClusterInputBuilder {
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_cluster::CreateClusterOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_cluster::CreateClusterError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_cluster();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateCluster`.
24///
25/// <p>Creates a DAX cluster. All nodes in the cluster run the same DAX caching software.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreateClusterFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::create_cluster::builders::CreateClusterInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::create_cluster::CreateClusterOutput,
35        crate::operation::create_cluster::CreateClusterError,
36    > for CreateClusterFluentBuilder
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_cluster::CreateClusterOutput,
44            crate::operation::create_cluster::CreateClusterError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl CreateClusterFluentBuilder {
51    /// Creates a new `CreateClusterFluentBuilder`.
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 CreateCluster as a reference.
60    pub fn as_input(&self) -> &crate::operation::create_cluster::builders::CreateClusterInputBuilder {
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_cluster::CreateClusterOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::create_cluster::CreateClusterError,
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_cluster::CreateCluster::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::create_cluster::CreateCluster::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_cluster::CreateClusterOutput,
97        crate::operation::create_cluster::CreateClusterError,
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 cluster identifier. This parameter is stored as a lowercase string.</p>
112    /// <p><b>Constraints:</b></p>
113    /// <ul>
114    /// <li>
115    /// <p>A name must contain from 1 to 20 alphanumeric characters or hyphens.</p></li>
116    /// <li>
117    /// <p>The first character must be a letter.</p></li>
118    /// <li>
119    /// <p>A name cannot end with a hyphen or contain two consecutive hyphens.</p></li>
120    /// </ul>
121    pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.inner = self.inner.cluster_name(input.into());
123        self
124    }
125    /// <p>The cluster identifier. This parameter is stored as a lowercase string.</p>
126    /// <p><b>Constraints:</b></p>
127    /// <ul>
128    /// <li>
129    /// <p>A name must contain from 1 to 20 alphanumeric characters or hyphens.</p></li>
130    /// <li>
131    /// <p>The first character must be a letter.</p></li>
132    /// <li>
133    /// <p>A name cannot end with a hyphen or contain two consecutive hyphens.</p></li>
134    /// </ul>
135    pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
136        self.inner = self.inner.set_cluster_name(input);
137        self
138    }
139    /// <p>The cluster identifier. This parameter is stored as a lowercase string.</p>
140    /// <p><b>Constraints:</b></p>
141    /// <ul>
142    /// <li>
143    /// <p>A name must contain from 1 to 20 alphanumeric characters or hyphens.</p></li>
144    /// <li>
145    /// <p>The first character must be a letter.</p></li>
146    /// <li>
147    /// <p>A name cannot end with a hyphen or contain two consecutive hyphens.</p></li>
148    /// </ul>
149    pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
150        self.inner.get_cluster_name()
151    }
152    /// <p>The compute and memory capacity of the nodes in the cluster.</p>
153    pub fn node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
154        self.inner = self.inner.node_type(input.into());
155        self
156    }
157    /// <p>The compute and memory capacity of the nodes in the cluster.</p>
158    pub fn set_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
159        self.inner = self.inner.set_node_type(input);
160        self
161    }
162    /// <p>The compute and memory capacity of the nodes in the cluster.</p>
163    pub fn get_node_type(&self) -> &::std::option::Option<::std::string::String> {
164        self.inner.get_node_type()
165    }
166    /// <p>A description of the cluster.</p>
167    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
168        self.inner = self.inner.description(input.into());
169        self
170    }
171    /// <p>A description of the cluster.</p>
172    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
173        self.inner = self.inner.set_description(input);
174        self
175    }
176    /// <p>A description of the cluster.</p>
177    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
178        self.inner.get_description()
179    }
180    /// <p>The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas. For additional fault tolerance, you can create a multiple node cluster with one or more read replicas. To do this, set <code>ReplicationFactor</code> to a number between 3 (one primary and two read replicas) and 10 (one primary and nine read replicas). <code>If the AvailabilityZones</code> parameter is provided, its length must equal the <code>ReplicationFactor</code>.</p><note>
181    /// <p>Amazon Web Services recommends that you have at least two read replicas per cluster.</p>
182    /// </note>
183    pub fn replication_factor(mut self, input: i32) -> Self {
184        self.inner = self.inner.replication_factor(input);
185        self
186    }
187    /// <p>The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas. For additional fault tolerance, you can create a multiple node cluster with one or more read replicas. To do this, set <code>ReplicationFactor</code> to a number between 3 (one primary and two read replicas) and 10 (one primary and nine read replicas). <code>If the AvailabilityZones</code> parameter is provided, its length must equal the <code>ReplicationFactor</code>.</p><note>
188    /// <p>Amazon Web Services recommends that you have at least two read replicas per cluster.</p>
189    /// </note>
190    pub fn set_replication_factor(mut self, input: ::std::option::Option<i32>) -> Self {
191        self.inner = self.inner.set_replication_factor(input);
192        self
193    }
194    /// <p>The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas. For additional fault tolerance, you can create a multiple node cluster with one or more read replicas. To do this, set <code>ReplicationFactor</code> to a number between 3 (one primary and two read replicas) and 10 (one primary and nine read replicas). <code>If the AvailabilityZones</code> parameter is provided, its length must equal the <code>ReplicationFactor</code>.</p><note>
195    /// <p>Amazon Web Services recommends that you have at least two read replicas per cluster.</p>
196    /// </note>
197    pub fn get_replication_factor(&self) -> &::std::option::Option<i32> {
198        self.inner.get_replication_factor()
199    }
200    ///
201    /// Appends an item to `AvailabilityZones`.
202    ///
203    /// To override the contents of this collection use [`set_availability_zones`](Self::set_availability_zones).
204    ///
205    /// <p>The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated. If provided, the length of this list must equal the <code>ReplicationFactor</code> parameter. If you omit this parameter, DAX will spread the nodes across Availability Zones for the highest availability.</p>
206    pub fn availability_zones(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
207        self.inner = self.inner.availability_zones(input.into());
208        self
209    }
210    /// <p>The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated. If provided, the length of this list must equal the <code>ReplicationFactor</code> parameter. If you omit this parameter, DAX will spread the nodes across Availability Zones for the highest availability.</p>
211    pub fn set_availability_zones(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
212        self.inner = self.inner.set_availability_zones(input);
213        self
214    }
215    /// <p>The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated. If provided, the length of this list must equal the <code>ReplicationFactor</code> parameter. If you omit this parameter, DAX will spread the nodes across Availability Zones for the highest availability.</p>
216    pub fn get_availability_zones(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
217        self.inner.get_availability_zones()
218    }
219    /// <p>The name of the subnet group to be used for the replication group.</p><important>
220    /// <p>DAX clusters can only run in an Amazon VPC environment. All of the subnets that you specify in a subnet group must exist in the same VPC.</p>
221    /// </important>
222    pub fn subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
223        self.inner = self.inner.subnet_group_name(input.into());
224        self
225    }
226    /// <p>The name of the subnet group to be used for the replication group.</p><important>
227    /// <p>DAX clusters can only run in an Amazon VPC environment. All of the subnets that you specify in a subnet group must exist in the same VPC.</p>
228    /// </important>
229    pub fn set_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
230        self.inner = self.inner.set_subnet_group_name(input);
231        self
232    }
233    /// <p>The name of the subnet group to be used for the replication group.</p><important>
234    /// <p>DAX clusters can only run in an Amazon VPC environment. All of the subnets that you specify in a subnet group must exist in the same VPC.</p>
235    /// </important>
236    pub fn get_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
237        self.inner.get_subnet_group_name()
238    }
239    ///
240    /// Appends an item to `SecurityGroupIds`.
241    ///
242    /// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
243    ///
244    /// <p>A list of security group IDs to be assigned to each node in the DAX cluster. (Each of the security group ID is system-generated.)</p>
245    /// <p>If this parameter is not specified, DAX assigns the default VPC security group to each node.</p>
246    pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
247        self.inner = self.inner.security_group_ids(input.into());
248        self
249    }
250    /// <p>A list of security group IDs to be assigned to each node in the DAX cluster. (Each of the security group ID is system-generated.)</p>
251    /// <p>If this parameter is not specified, DAX assigns the default VPC security group to each node.</p>
252    pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
253        self.inner = self.inner.set_security_group_ids(input);
254        self
255    }
256    /// <p>A list of security group IDs to be assigned to each node in the DAX cluster. (Each of the security group ID is system-generated.)</p>
257    /// <p>If this parameter is not specified, DAX assigns the default VPC security group to each node.</p>
258    pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
259        self.inner.get_security_group_ids()
260    }
261    /// <p>Specifies the weekly time range during which maintenance on the DAX cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for <code>ddd</code> are:</p>
262    /// <ul>
263    /// <li>
264    /// <p><code>sun</code></p></li>
265    /// <li>
266    /// <p><code>mon</code></p></li>
267    /// <li>
268    /// <p><code>tue</code></p></li>
269    /// <li>
270    /// <p><code>wed</code></p></li>
271    /// <li>
272    /// <p><code>thu</code></p></li>
273    /// <li>
274    /// <p><code>fri</code></p></li>
275    /// <li>
276    /// <p><code>sat</code></p></li>
277    /// </ul>
278    /// <p>Example: <code>sun:05:00-sun:09:00</code></p><note>
279    /// <p>If you don't specify a preferred maintenance window when you create or modify a cache cluster, DAX assigns a 60-minute maintenance window on a randomly selected day of the week.</p>
280    /// </note>
281    pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
282        self.inner = self.inner.preferred_maintenance_window(input.into());
283        self
284    }
285    /// <p>Specifies the weekly time range during which maintenance on the DAX cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for <code>ddd</code> are:</p>
286    /// <ul>
287    /// <li>
288    /// <p><code>sun</code></p></li>
289    /// <li>
290    /// <p><code>mon</code></p></li>
291    /// <li>
292    /// <p><code>tue</code></p></li>
293    /// <li>
294    /// <p><code>wed</code></p></li>
295    /// <li>
296    /// <p><code>thu</code></p></li>
297    /// <li>
298    /// <p><code>fri</code></p></li>
299    /// <li>
300    /// <p><code>sat</code></p></li>
301    /// </ul>
302    /// <p>Example: <code>sun:05:00-sun:09:00</code></p><note>
303    /// <p>If you don't specify a preferred maintenance window when you create or modify a cache cluster, DAX assigns a 60-minute maintenance window on a randomly selected day of the week.</p>
304    /// </note>
305    pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
306        self.inner = self.inner.set_preferred_maintenance_window(input);
307        self
308    }
309    /// <p>Specifies the weekly time range during which maintenance on the DAX cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for <code>ddd</code> are:</p>
310    /// <ul>
311    /// <li>
312    /// <p><code>sun</code></p></li>
313    /// <li>
314    /// <p><code>mon</code></p></li>
315    /// <li>
316    /// <p><code>tue</code></p></li>
317    /// <li>
318    /// <p><code>wed</code></p></li>
319    /// <li>
320    /// <p><code>thu</code></p></li>
321    /// <li>
322    /// <p><code>fri</code></p></li>
323    /// <li>
324    /// <p><code>sat</code></p></li>
325    /// </ul>
326    /// <p>Example: <code>sun:05:00-sun:09:00</code></p><note>
327    /// <p>If you don't specify a preferred maintenance window when you create or modify a cache cluster, DAX assigns a 60-minute maintenance window on a randomly selected day of the week.</p>
328    /// </note>
329    pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
330        self.inner.get_preferred_maintenance_window()
331    }
332    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.</p><note>
333    /// <p>The Amazon SNS topic owner must be same as the DAX cluster owner.</p>
334    /// </note>
335    pub fn notification_topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
336        self.inner = self.inner.notification_topic_arn(input.into());
337        self
338    }
339    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.</p><note>
340    /// <p>The Amazon SNS topic owner must be same as the DAX cluster owner.</p>
341    /// </note>
342    pub fn set_notification_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
343        self.inner = self.inner.set_notification_topic_arn(input);
344        self
345    }
346    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.</p><note>
347    /// <p>The Amazon SNS topic owner must be same as the DAX cluster owner.</p>
348    /// </note>
349    pub fn get_notification_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
350        self.inner.get_notification_topic_arn()
351    }
352    /// <p>A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.</p>
353    pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
354        self.inner = self.inner.iam_role_arn(input.into());
355        self
356    }
357    /// <p>A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.</p>
358    pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
359        self.inner = self.inner.set_iam_role_arn(input);
360        self
361    }
362    /// <p>A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.</p>
363    pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
364        self.inner.get_iam_role_arn()
365    }
366    /// <p>The parameter group to be associated with the DAX cluster.</p>
367    pub fn parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
368        self.inner = self.inner.parameter_group_name(input.into());
369        self
370    }
371    /// <p>The parameter group to be associated with the DAX cluster.</p>
372    pub fn set_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
373        self.inner = self.inner.set_parameter_group_name(input);
374        self
375    }
376    /// <p>The parameter group to be associated with the DAX cluster.</p>
377    pub fn get_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
378        self.inner.get_parameter_group_name()
379    }
380    ///
381    /// Appends an item to `Tags`.
382    ///
383    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
384    ///
385    /// <p>A set of tags to associate with the DAX cluster.</p>
386    pub fn tags(mut self, input: crate::types::Tag) -> Self {
387        self.inner = self.inner.tags(input);
388        self
389    }
390    /// <p>A set of tags to associate with the DAX cluster.</p>
391    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
392        self.inner = self.inner.set_tags(input);
393        self
394    }
395    /// <p>A set of tags to associate with the DAX cluster.</p>
396    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
397        self.inner.get_tags()
398    }
399    /// <p>Represents the settings used to enable server-side encryption on the cluster.</p>
400    pub fn sse_specification(mut self, input: crate::types::SseSpecification) -> Self {
401        self.inner = self.inner.sse_specification(input);
402        self
403    }
404    /// <p>Represents the settings used to enable server-side encryption on the cluster.</p>
405    pub fn set_sse_specification(mut self, input: ::std::option::Option<crate::types::SseSpecification>) -> Self {
406        self.inner = self.inner.set_sse_specification(input);
407        self
408    }
409    /// <p>Represents the settings used to enable server-side encryption on the cluster.</p>
410    pub fn get_sse_specification(&self) -> &::std::option::Option<crate::types::SseSpecification> {
411        self.inner.get_sse_specification()
412    }
413    /// <p>The type of encryption the cluster's endpoint should support. Values are:</p>
414    /// <ul>
415    /// <li>
416    /// <p><code>NONE</code> for no encryption</p></li>
417    /// <li>
418    /// <p><code>TLS</code> for Transport Layer Security</p></li>
419    /// </ul>
420    pub fn cluster_endpoint_encryption_type(mut self, input: crate::types::ClusterEndpointEncryptionType) -> Self {
421        self.inner = self.inner.cluster_endpoint_encryption_type(input);
422        self
423    }
424    /// <p>The type of encryption the cluster's endpoint should support. Values are:</p>
425    /// <ul>
426    /// <li>
427    /// <p><code>NONE</code> for no encryption</p></li>
428    /// <li>
429    /// <p><code>TLS</code> for Transport Layer Security</p></li>
430    /// </ul>
431    pub fn set_cluster_endpoint_encryption_type(mut self, input: ::std::option::Option<crate::types::ClusterEndpointEncryptionType>) -> Self {
432        self.inner = self.inner.set_cluster_endpoint_encryption_type(input);
433        self
434    }
435    /// <p>The type of encryption the cluster's endpoint should support. Values are:</p>
436    /// <ul>
437    /// <li>
438    /// <p><code>NONE</code> for no encryption</p></li>
439    /// <li>
440    /// <p><code>TLS</code> for Transport Layer Security</p></li>
441    /// </ul>
442    pub fn get_cluster_endpoint_encryption_type(&self) -> &::std::option::Option<crate::types::ClusterEndpointEncryptionType> {
443        self.inner.get_cluster_endpoint_encryption_type()
444    }
445    /// <p>Specifies the IP protocol(s) the cluster uses for network communications. Values are:</p>
446    /// <ul>
447    /// <li>
448    /// <p><code>ipv4</code> - The cluster is accessible only through IPv4 addresses</p></li>
449    /// <li>
450    /// <p><code>ipv6</code> - The cluster is accessible only through IPv6 addresses</p></li>
451    /// <li>
452    /// <p><code>dual_stack</code> - The cluster is accessible through both IPv4 and IPv6 addresses.</p></li>
453    /// </ul><note>
454    /// <p>If no explicit <code>NetworkType</code> is provided, the network type is derived based on the subnet group's configuration.</p>
455    /// </note>
456    pub fn network_type(mut self, input: crate::types::NetworkType) -> Self {
457        self.inner = self.inner.network_type(input);
458        self
459    }
460    /// <p>Specifies the IP protocol(s) the cluster uses for network communications. Values are:</p>
461    /// <ul>
462    /// <li>
463    /// <p><code>ipv4</code> - The cluster is accessible only through IPv4 addresses</p></li>
464    /// <li>
465    /// <p><code>ipv6</code> - The cluster is accessible only through IPv6 addresses</p></li>
466    /// <li>
467    /// <p><code>dual_stack</code> - The cluster is accessible through both IPv4 and IPv6 addresses.</p></li>
468    /// </ul><note>
469    /// <p>If no explicit <code>NetworkType</code> is provided, the network type is derived based on the subnet group's configuration.</p>
470    /// </note>
471    pub fn set_network_type(mut self, input: ::std::option::Option<crate::types::NetworkType>) -> Self {
472        self.inner = self.inner.set_network_type(input);
473        self
474    }
475    /// <p>Specifies the IP protocol(s) the cluster uses for network communications. Values are:</p>
476    /// <ul>
477    /// <li>
478    /// <p><code>ipv4</code> - The cluster is accessible only through IPv4 addresses</p></li>
479    /// <li>
480    /// <p><code>ipv6</code> - The cluster is accessible only through IPv6 addresses</p></li>
481    /// <li>
482    /// <p><code>dual_stack</code> - The cluster is accessible through both IPv4 and IPv6 addresses.</p></li>
483    /// </ul><note>
484    /// <p>If no explicit <code>NetworkType</code> is provided, the network type is derived based on the subnet group's configuration.</p>
485    /// </note>
486    pub fn get_network_type(&self) -> &::std::option::Option<crate::types::NetworkType> {
487        self.inner.get_network_type()
488    }
489}