aws_sdk_elasticache/operation/modify_cache_cluster/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::modify_cache_cluster::_modify_cache_cluster_output::ModifyCacheClusterOutputBuilder;
3
4pub use crate::operation::modify_cache_cluster::_modify_cache_cluster_input::ModifyCacheClusterInputBuilder;
5
6impl crate::operation::modify_cache_cluster::builders::ModifyCacheClusterInputBuilder {
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_cache_cluster::ModifyCacheClusterOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::modify_cache_cluster::ModifyCacheClusterError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.modify_cache_cluster();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `ModifyCacheCluster`.
24///
25/// <p>Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration parameters by specifying the parameters and the new values.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct ModifyCacheClusterFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::modify_cache_cluster::builders::ModifyCacheClusterInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::modify_cache_cluster::ModifyCacheClusterOutput,
35        crate::operation::modify_cache_cluster::ModifyCacheClusterError,
36    > for ModifyCacheClusterFluentBuilder
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_cache_cluster::ModifyCacheClusterOutput,
44            crate::operation::modify_cache_cluster::ModifyCacheClusterError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl ModifyCacheClusterFluentBuilder {
51    /// Creates a new `ModifyCacheClusterFluentBuilder`.
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 ModifyCacheCluster as a reference.
60    pub fn as_input(&self) -> &crate::operation::modify_cache_cluster::builders::ModifyCacheClusterInputBuilder {
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_cache_cluster::ModifyCacheClusterOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::modify_cache_cluster::ModifyCacheClusterError,
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_cache_cluster::ModifyCacheCluster::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::modify_cache_cluster::ModifyCacheCluster::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_cache_cluster::ModifyCacheClusterOutput,
97        crate::operation::modify_cache_cluster::ModifyCacheClusterError,
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 value is stored as a lowercase string.</p>
112    pub fn cache_cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.cache_cluster_id(input.into());
114        self
115    }
116    /// <p>The cluster identifier. This value is stored as a lowercase string.</p>
117    pub fn set_cache_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_cache_cluster_id(input);
119        self
120    }
121    /// <p>The cluster identifier. This value is stored as a lowercase string.</p>
122    pub fn get_cache_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_cache_cluster_id()
124    }
125    /// <p>The number of cache nodes that the cluster should have. If the value for <code>NumCacheNodes</code> is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), more nodes are added. If the value is less than the number of existing cache nodes, nodes are removed. If the value is equal to the number of current cache nodes, any pending add or remove requests are canceled.</p>
126    /// <p>If you are removing cache nodes, you must use the <code>CacheNodeIdsToRemove</code> parameter to provide the IDs of the specific cache nodes to remove.</p>
127    /// <p>For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.</p><note>
128    /// <p>Adding or removing Memcached cache nodes can be applied immediately or as a pending operation (see <code>ApplyImmediately</code>).</p>
129    /// <p>A pending operation to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in accordance with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending operations to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending operation to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending operation to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending operation to add nodes. The customer can modify the previous pending operation to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending operations to modify the number of cache nodes in a cluster, use the <code>ModifyCacheCluster</code> request and set <code>NumCacheNodes</code> equal to the number of cache nodes currently in the cluster.</p>
130    /// </note>
131    pub fn num_cache_nodes(mut self, input: i32) -> Self {
132        self.inner = self.inner.num_cache_nodes(input);
133        self
134    }
135    /// <p>The number of cache nodes that the cluster should have. If the value for <code>NumCacheNodes</code> is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), more nodes are added. If the value is less than the number of existing cache nodes, nodes are removed. If the value is equal to the number of current cache nodes, any pending add or remove requests are canceled.</p>
136    /// <p>If you are removing cache nodes, you must use the <code>CacheNodeIdsToRemove</code> parameter to provide the IDs of the specific cache nodes to remove.</p>
137    /// <p>For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.</p><note>
138    /// <p>Adding or removing Memcached cache nodes can be applied immediately or as a pending operation (see <code>ApplyImmediately</code>).</p>
139    /// <p>A pending operation to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in accordance with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending operations to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending operation to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending operation to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending operation to add nodes. The customer can modify the previous pending operation to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending operations to modify the number of cache nodes in a cluster, use the <code>ModifyCacheCluster</code> request and set <code>NumCacheNodes</code> equal to the number of cache nodes currently in the cluster.</p>
140    /// </note>
141    pub fn set_num_cache_nodes(mut self, input: ::std::option::Option<i32>) -> Self {
142        self.inner = self.inner.set_num_cache_nodes(input);
143        self
144    }
145    /// <p>The number of cache nodes that the cluster should have. If the value for <code>NumCacheNodes</code> is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), more nodes are added. If the value is less than the number of existing cache nodes, nodes are removed. If the value is equal to the number of current cache nodes, any pending add or remove requests are canceled.</p>
146    /// <p>If you are removing cache nodes, you must use the <code>CacheNodeIdsToRemove</code> parameter to provide the IDs of the specific cache nodes to remove.</p>
147    /// <p>For clusters running Valkey or Redis OSS, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.</p><note>
148    /// <p>Adding or removing Memcached cache nodes can be applied immediately or as a pending operation (see <code>ApplyImmediately</code>).</p>
149    /// <p>A pending operation to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in accordance with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending operations to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending operation to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending operation to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending operation to add nodes. The customer can modify the previous pending operation to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending operations to modify the number of cache nodes in a cluster, use the <code>ModifyCacheCluster</code> request and set <code>NumCacheNodes</code> equal to the number of cache nodes currently in the cluster.</p>
150    /// </note>
151    pub fn get_num_cache_nodes(&self) -> &::std::option::Option<i32> {
152        self.inner.get_num_cache_nodes()
153    }
154    ///
155    /// Appends an item to `CacheNodeIdsToRemove`.
156    ///
157    /// To override the contents of this collection use [`set_cache_node_ids_to_remove`](Self::set_cache_node_ids_to_remove).
158    ///
159    /// <p>A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is only valid when <code>NumCacheNodes</code> is less than the existing number of cache nodes. The number of cache node IDs supplied in this parameter must match the difference between the existing number of cache nodes in the cluster or pending cache nodes, whichever is greater, and the value of <code>NumCacheNodes</code> in the request.</p>
160    /// <p>For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in this <code>ModifyCacheCluster</code> call is 5, you must list 2 (7 - 5) cache node IDs to remove.</p>
161    pub fn cache_node_ids_to_remove(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
162        self.inner = self.inner.cache_node_ids_to_remove(input.into());
163        self
164    }
165    /// <p>A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is only valid when <code>NumCacheNodes</code> is less than the existing number of cache nodes. The number of cache node IDs supplied in this parameter must match the difference between the existing number of cache nodes in the cluster or pending cache nodes, whichever is greater, and the value of <code>NumCacheNodes</code> in the request.</p>
166    /// <p>For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in this <code>ModifyCacheCluster</code> call is 5, you must list 2 (7 - 5) cache node IDs to remove.</p>
167    pub fn set_cache_node_ids_to_remove(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
168        self.inner = self.inner.set_cache_node_ids_to_remove(input);
169        self
170    }
171    /// <p>A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is only valid when <code>NumCacheNodes</code> is less than the existing number of cache nodes. The number of cache node IDs supplied in this parameter must match the difference between the existing number of cache nodes in the cluster or pending cache nodes, whichever is greater, and the value of <code>NumCacheNodes</code> in the request.</p>
172    /// <p>For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in this <code>ModifyCacheCluster</code> call is 5, you must list 2 (7 - 5) cache node IDs to remove.</p>
173    pub fn get_cache_node_ids_to_remove(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
174        self.inner.get_cache_node_ids_to_remove()
175    }
176    /// <p>Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or created across multiple Availability Zones.</p>
177    /// <p>Valid values: <code>single-az</code> | <code>cross-az</code>.</p>
178    /// <p>This option is only supported for Memcached clusters.</p><note>
179    /// <p>You cannot specify <code>single-az</code> if the Memcached cluster already has cache nodes in different Availability Zones. If <code>cross-az</code> is specified, existing Memcached nodes remain in their current Availability Zone.</p>
180    /// <p>Only newly created nodes are located in different Availability Zones.</p>
181    /// </note>
182    pub fn az_mode(mut self, input: crate::types::AzMode) -> Self {
183        self.inner = self.inner.az_mode(input);
184        self
185    }
186    /// <p>Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or created across multiple Availability Zones.</p>
187    /// <p>Valid values: <code>single-az</code> | <code>cross-az</code>.</p>
188    /// <p>This option is only supported for Memcached clusters.</p><note>
189    /// <p>You cannot specify <code>single-az</code> if the Memcached cluster already has cache nodes in different Availability Zones. If <code>cross-az</code> is specified, existing Memcached nodes remain in their current Availability Zone.</p>
190    /// <p>Only newly created nodes are located in different Availability Zones.</p>
191    /// </note>
192    pub fn set_az_mode(mut self, input: ::std::option::Option<crate::types::AzMode>) -> Self {
193        self.inner = self.inner.set_az_mode(input);
194        self
195    }
196    /// <p>Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or created across multiple Availability Zones.</p>
197    /// <p>Valid values: <code>single-az</code> | <code>cross-az</code>.</p>
198    /// <p>This option is only supported for Memcached clusters.</p><note>
199    /// <p>You cannot specify <code>single-az</code> if the Memcached cluster already has cache nodes in different Availability Zones. If <code>cross-az</code> is specified, existing Memcached nodes remain in their current Availability Zone.</p>
200    /// <p>Only newly created nodes are located in different Availability Zones.</p>
201    /// </note>
202    pub fn get_az_mode(&self) -> &::std::option::Option<crate::types::AzMode> {
203        self.inner.get_az_mode()
204    }
205    ///
206    /// Appends an item to `NewAvailabilityZones`.
207    ///
208    /// To override the contents of this collection use [`set_new_availability_zones`](Self::set_new_availability_zones).
209    ///
210    /// <note>
211    /// <p>This option is only supported on Memcached clusters.</p>
212    /// </note>
213    /// <p>The list of Availability Zones where the new Memcached cache nodes are created.</p>
214    /// <p>This parameter is only valid when <code>NumCacheNodes</code> in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.</p>
215    /// <p>Scenarios:</p>
216    /// <ul>
217    /// <li>
218    /// <p><b>Scenario 1:</b> You have 3 active nodes and wish to add 2 nodes. Specify <code>NumCacheNodes=5</code> (3 + 2) and optionally specify two Availability Zones for the two new nodes.</p></li>
219    /// <li>
220    /// <p><b>Scenario 2:</b> You have 3 active nodes and 2 nodes pending creation (from the scenario 1 call) and want to add 1 more node. Specify <code>NumCacheNodes=6</code> ((3 + 2) + 1) and optionally specify an Availability Zone for the new node.</p></li>
221    /// <li>
222    /// <p><b>Scenario 3:</b> You want to cancel all pending operations. Specify <code>NumCacheNodes=3</code> to cancel all pending operations.</p></li>
223    /// </ul>
224    /// <p>The Availability Zone placement of nodes pending creation cannot be modified. If you wish to cancel any nodes pending creation, add 0 nodes by setting <code>NumCacheNodes</code> to the number of current nodes.</p>
225    /// <p>If <code>cross-az</code> is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the <b>Availability Zone Considerations</b> section of <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html">Cache Node Considerations for Memcached</a>.</p>
226    /// <p><b>Impact of new add/remove requests upon pending requests</b></p>
227    /// <ul>
228    /// <li>
229    /// <p>Scenario-1</p>
230    /// <ul>
231    /// <li>
232    /// <p>Pending Action: Delete</p></li>
233    /// <li>
234    /// <p>New Request: Delete</p></li>
235    /// <li>
236    /// <p>Result: The new delete, pending or immediate, replaces the pending delete.</p></li>
237    /// </ul></li>
238    /// <li>
239    /// <p>Scenario-2</p>
240    /// <ul>
241    /// <li>
242    /// <p>Pending Action: Delete</p></li>
243    /// <li>
244    /// <p>New Request: Create</p></li>
245    /// <li>
246    /// <p>Result: The new create, pending or immediate, replaces the pending delete.</p></li>
247    /// </ul></li>
248    /// <li>
249    /// <p>Scenario-3</p>
250    /// <ul>
251    /// <li>
252    /// <p>Pending Action: Create</p></li>
253    /// <li>
254    /// <p>New Request: Delete</p></li>
255    /// <li>
256    /// <p>Result: The new delete, pending or immediate, replaces the pending create.</p></li>
257    /// </ul></li>
258    /// <li>
259    /// <p>Scenario-4</p>
260    /// <ul>
261    /// <li>
262    /// <p>Pending Action: Create</p></li>
263    /// <li>
264    /// <p>New Request: Create</p></li>
265    /// <li>
266    /// <p>Result: The new create is added to the pending create.</p><important>
267    /// <p><b>Important:</b> If the new create request is <b>Apply Immediately - Yes</b>, all creates are performed immediately. If the new create request is <b>Apply Immediately - No</b>, all creates are pending.</p>
268    /// </important></li>
269    /// </ul></li>
270    /// </ul>
271    pub fn new_availability_zones(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
272        self.inner = self.inner.new_availability_zones(input.into());
273        self
274    }
275    /// <note>
276    /// <p>This option is only supported on Memcached clusters.</p>
277    /// </note>
278    /// <p>The list of Availability Zones where the new Memcached cache nodes are created.</p>
279    /// <p>This parameter is only valid when <code>NumCacheNodes</code> in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.</p>
280    /// <p>Scenarios:</p>
281    /// <ul>
282    /// <li>
283    /// <p><b>Scenario 1:</b> You have 3 active nodes and wish to add 2 nodes. Specify <code>NumCacheNodes=5</code> (3 + 2) and optionally specify two Availability Zones for the two new nodes.</p></li>
284    /// <li>
285    /// <p><b>Scenario 2:</b> You have 3 active nodes and 2 nodes pending creation (from the scenario 1 call) and want to add 1 more node. Specify <code>NumCacheNodes=6</code> ((3 + 2) + 1) and optionally specify an Availability Zone for the new node.</p></li>
286    /// <li>
287    /// <p><b>Scenario 3:</b> You want to cancel all pending operations. Specify <code>NumCacheNodes=3</code> to cancel all pending operations.</p></li>
288    /// </ul>
289    /// <p>The Availability Zone placement of nodes pending creation cannot be modified. If you wish to cancel any nodes pending creation, add 0 nodes by setting <code>NumCacheNodes</code> to the number of current nodes.</p>
290    /// <p>If <code>cross-az</code> is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the <b>Availability Zone Considerations</b> section of <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html">Cache Node Considerations for Memcached</a>.</p>
291    /// <p><b>Impact of new add/remove requests upon pending requests</b></p>
292    /// <ul>
293    /// <li>
294    /// <p>Scenario-1</p>
295    /// <ul>
296    /// <li>
297    /// <p>Pending Action: Delete</p></li>
298    /// <li>
299    /// <p>New Request: Delete</p></li>
300    /// <li>
301    /// <p>Result: The new delete, pending or immediate, replaces the pending delete.</p></li>
302    /// </ul></li>
303    /// <li>
304    /// <p>Scenario-2</p>
305    /// <ul>
306    /// <li>
307    /// <p>Pending Action: Delete</p></li>
308    /// <li>
309    /// <p>New Request: Create</p></li>
310    /// <li>
311    /// <p>Result: The new create, pending or immediate, replaces the pending delete.</p></li>
312    /// </ul></li>
313    /// <li>
314    /// <p>Scenario-3</p>
315    /// <ul>
316    /// <li>
317    /// <p>Pending Action: Create</p></li>
318    /// <li>
319    /// <p>New Request: Delete</p></li>
320    /// <li>
321    /// <p>Result: The new delete, pending or immediate, replaces the pending create.</p></li>
322    /// </ul></li>
323    /// <li>
324    /// <p>Scenario-4</p>
325    /// <ul>
326    /// <li>
327    /// <p>Pending Action: Create</p></li>
328    /// <li>
329    /// <p>New Request: Create</p></li>
330    /// <li>
331    /// <p>Result: The new create is added to the pending create.</p><important>
332    /// <p><b>Important:</b> If the new create request is <b>Apply Immediately - Yes</b>, all creates are performed immediately. If the new create request is <b>Apply Immediately - No</b>, all creates are pending.</p>
333    /// </important></li>
334    /// </ul></li>
335    /// </ul>
336    pub fn set_new_availability_zones(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
337        self.inner = self.inner.set_new_availability_zones(input);
338        self
339    }
340    /// <note>
341    /// <p>This option is only supported on Memcached clusters.</p>
342    /// </note>
343    /// <p>The list of Availability Zones where the new Memcached cache nodes are created.</p>
344    /// <p>This parameter is only valid when <code>NumCacheNodes</code> in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.</p>
345    /// <p>Scenarios:</p>
346    /// <ul>
347    /// <li>
348    /// <p><b>Scenario 1:</b> You have 3 active nodes and wish to add 2 nodes. Specify <code>NumCacheNodes=5</code> (3 + 2) and optionally specify two Availability Zones for the two new nodes.</p></li>
349    /// <li>
350    /// <p><b>Scenario 2:</b> You have 3 active nodes and 2 nodes pending creation (from the scenario 1 call) and want to add 1 more node. Specify <code>NumCacheNodes=6</code> ((3 + 2) + 1) and optionally specify an Availability Zone for the new node.</p></li>
351    /// <li>
352    /// <p><b>Scenario 3:</b> You want to cancel all pending operations. Specify <code>NumCacheNodes=3</code> to cancel all pending operations.</p></li>
353    /// </ul>
354    /// <p>The Availability Zone placement of nodes pending creation cannot be modified. If you wish to cancel any nodes pending creation, add 0 nodes by setting <code>NumCacheNodes</code> to the number of current nodes.</p>
355    /// <p>If <code>cross-az</code> is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the <b>Availability Zone Considerations</b> section of <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html">Cache Node Considerations for Memcached</a>.</p>
356    /// <p><b>Impact of new add/remove requests upon pending requests</b></p>
357    /// <ul>
358    /// <li>
359    /// <p>Scenario-1</p>
360    /// <ul>
361    /// <li>
362    /// <p>Pending Action: Delete</p></li>
363    /// <li>
364    /// <p>New Request: Delete</p></li>
365    /// <li>
366    /// <p>Result: The new delete, pending or immediate, replaces the pending delete.</p></li>
367    /// </ul></li>
368    /// <li>
369    /// <p>Scenario-2</p>
370    /// <ul>
371    /// <li>
372    /// <p>Pending Action: Delete</p></li>
373    /// <li>
374    /// <p>New Request: Create</p></li>
375    /// <li>
376    /// <p>Result: The new create, pending or immediate, replaces the pending delete.</p></li>
377    /// </ul></li>
378    /// <li>
379    /// <p>Scenario-3</p>
380    /// <ul>
381    /// <li>
382    /// <p>Pending Action: Create</p></li>
383    /// <li>
384    /// <p>New Request: Delete</p></li>
385    /// <li>
386    /// <p>Result: The new delete, pending or immediate, replaces the pending create.</p></li>
387    /// </ul></li>
388    /// <li>
389    /// <p>Scenario-4</p>
390    /// <ul>
391    /// <li>
392    /// <p>Pending Action: Create</p></li>
393    /// <li>
394    /// <p>New Request: Create</p></li>
395    /// <li>
396    /// <p>Result: The new create is added to the pending create.</p><important>
397    /// <p><b>Important:</b> If the new create request is <b>Apply Immediately - Yes</b>, all creates are performed immediately. If the new create request is <b>Apply Immediately - No</b>, all creates are pending.</p>
398    /// </important></li>
399    /// </ul></li>
400    /// </ul>
401    pub fn get_new_availability_zones(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
402        self.inner.get_new_availability_zones()
403    }
404    ///
405    /// Appends an item to `CacheSecurityGroupNames`.
406    ///
407    /// To override the contents of this collection use [`set_cache_security_group_names`](Self::set_cache_security_group_names).
408    ///
409    /// <p>A list of cache security group names to authorize on this cluster. This change is asynchronously applied as soon as possible.</p>
410    /// <p>You can use this parameter only with clusters that are created outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
411    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".</p>
412    pub fn cache_security_group_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
413        self.inner = self.inner.cache_security_group_names(input.into());
414        self
415    }
416    /// <p>A list of cache security group names to authorize on this cluster. This change is asynchronously applied as soon as possible.</p>
417    /// <p>You can use this parameter only with clusters that are created outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
418    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".</p>
419    pub fn set_cache_security_group_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
420        self.inner = self.inner.set_cache_security_group_names(input);
421        self
422    }
423    /// <p>A list of cache security group names to authorize on this cluster. This change is asynchronously applied as soon as possible.</p>
424    /// <p>You can use this parameter only with clusters that are created outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
425    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".</p>
426    pub fn get_cache_security_group_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
427        self.inner.get_cache_security_group_names()
428    }
429    ///
430    /// Appends an item to `SecurityGroupIds`.
431    ///
432    /// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
433    ///
434    /// <p>Specifies the VPC Security Groups associated with the cluster.</p>
435    /// <p>This parameter can be used only with clusters that are created in an Amazon Virtual Private Cloud (Amazon VPC).</p>
436    pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
437        self.inner = self.inner.security_group_ids(input.into());
438        self
439    }
440    /// <p>Specifies the VPC Security Groups associated with the cluster.</p>
441    /// <p>This parameter can be used only with clusters that are created in an Amazon Virtual Private Cloud (Amazon VPC).</p>
442    pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
443        self.inner = self.inner.set_security_group_ids(input);
444        self
445    }
446    /// <p>Specifies the VPC Security Groups associated with the cluster.</p>
447    /// <p>This parameter can be used only with clusters that are created in an Amazon Virtual Private Cloud (Amazon VPC).</p>
448    pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
449        self.inner.get_security_group_ids()
450    }
451    /// <p>Specifies the weekly time range during which maintenance on the 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.</p>
452    /// <p>Valid values for <code>ddd</code> are:</p>
453    /// <ul>
454    /// <li>
455    /// <p><code>sun</code></p></li>
456    /// <li>
457    /// <p><code>mon</code></p></li>
458    /// <li>
459    /// <p><code>tue</code></p></li>
460    /// <li>
461    /// <p><code>wed</code></p></li>
462    /// <li>
463    /// <p><code>thu</code></p></li>
464    /// <li>
465    /// <p><code>fri</code></p></li>
466    /// <li>
467    /// <p><code>sat</code></p></li>
468    /// </ul>
469    /// <p>Example: <code>sun:23:00-mon:01:30</code></p>
470    pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
471        self.inner = self.inner.preferred_maintenance_window(input.into());
472        self
473    }
474    /// <p>Specifies the weekly time range during which maintenance on the 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.</p>
475    /// <p>Valid values for <code>ddd</code> are:</p>
476    /// <ul>
477    /// <li>
478    /// <p><code>sun</code></p></li>
479    /// <li>
480    /// <p><code>mon</code></p></li>
481    /// <li>
482    /// <p><code>tue</code></p></li>
483    /// <li>
484    /// <p><code>wed</code></p></li>
485    /// <li>
486    /// <p><code>thu</code></p></li>
487    /// <li>
488    /// <p><code>fri</code></p></li>
489    /// <li>
490    /// <p><code>sat</code></p></li>
491    /// </ul>
492    /// <p>Example: <code>sun:23:00-mon:01:30</code></p>
493    pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
494        self.inner = self.inner.set_preferred_maintenance_window(input);
495        self
496    }
497    /// <p>Specifies the weekly time range during which maintenance on the 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.</p>
498    /// <p>Valid values for <code>ddd</code> are:</p>
499    /// <ul>
500    /// <li>
501    /// <p><code>sun</code></p></li>
502    /// <li>
503    /// <p><code>mon</code></p></li>
504    /// <li>
505    /// <p><code>tue</code></p></li>
506    /// <li>
507    /// <p><code>wed</code></p></li>
508    /// <li>
509    /// <p><code>thu</code></p></li>
510    /// <li>
511    /// <p><code>fri</code></p></li>
512    /// <li>
513    /// <p><code>sat</code></p></li>
514    /// </ul>
515    /// <p>Example: <code>sun:23:00-mon:01:30</code></p>
516    pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
517        self.inner.get_preferred_maintenance_window()
518    }
519    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
520    /// <p>The Amazon SNS topic owner must be same as the cluster owner.</p>
521    /// </note>
522    pub fn notification_topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
523        self.inner = self.inner.notification_topic_arn(input.into());
524        self
525    }
526    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
527    /// <p>The Amazon SNS topic owner must be same as the cluster owner.</p>
528    /// </note>
529    pub fn set_notification_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
530        self.inner = self.inner.set_notification_topic_arn(input);
531        self
532    }
533    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
534    /// <p>The Amazon SNS topic owner must be same as the cluster owner.</p>
535    /// </note>
536    pub fn get_notification_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
537        self.inner.get_notification_topic_arn()
538    }
539    /// <p>The name of the cache parameter group to apply to this cluster. This change is asynchronously applied as soon as possible for parameters when the <code>ApplyImmediately</code> parameter is specified as <code>true</code> for this request.</p>
540    pub fn cache_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
541        self.inner = self.inner.cache_parameter_group_name(input.into());
542        self
543    }
544    /// <p>The name of the cache parameter group to apply to this cluster. This change is asynchronously applied as soon as possible for parameters when the <code>ApplyImmediately</code> parameter is specified as <code>true</code> for this request.</p>
545    pub fn set_cache_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
546        self.inner = self.inner.set_cache_parameter_group_name(input);
547        self
548    }
549    /// <p>The name of the cache parameter group to apply to this cluster. This change is asynchronously applied as soon as possible for parameters when the <code>ApplyImmediately</code> parameter is specified as <code>true</code> for this request.</p>
550    pub fn get_cache_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
551        self.inner.get_cache_parameter_group_name()
552    }
553    /// <p>The status of the Amazon SNS notification topic. Notifications are sent only if the status is <code>active</code>.</p>
554    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
555    pub fn notification_topic_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
556        self.inner = self.inner.notification_topic_status(input.into());
557        self
558    }
559    /// <p>The status of the Amazon SNS notification topic. Notifications are sent only if the status is <code>active</code>.</p>
560    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
561    pub fn set_notification_topic_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
562        self.inner = self.inner.set_notification_topic_status(input);
563        self
564    }
565    /// <p>The status of the Amazon SNS notification topic. Notifications are sent only if the status is <code>active</code>.</p>
566    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
567    pub fn get_notification_topic_status(&self) -> &::std::option::Option<::std::string::String> {
568        self.inner.get_notification_topic_status()
569    }
570    /// <p>If <code>true</code>, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the cluster.</p>
571    /// <p>If <code>false</code>, changes to the cluster are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p><important>
572    /// <p>If you perform a <code>ModifyCacheCluster</code> before a pending modification is applied, the pending modification is replaced by the newer modification.</p>
573    /// </important>
574    /// <p>Valid values: <code>true</code> | <code>false</code></p>
575    /// <p>Default: <code>false</code></p>
576    pub fn apply_immediately(mut self, input: bool) -> Self {
577        self.inner = self.inner.apply_immediately(input);
578        self
579    }
580    /// <p>If <code>true</code>, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the cluster.</p>
581    /// <p>If <code>false</code>, changes to the cluster are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p><important>
582    /// <p>If you perform a <code>ModifyCacheCluster</code> before a pending modification is applied, the pending modification is replaced by the newer modification.</p>
583    /// </important>
584    /// <p>Valid values: <code>true</code> | <code>false</code></p>
585    /// <p>Default: <code>false</code></p>
586    pub fn set_apply_immediately(mut self, input: ::std::option::Option<bool>) -> Self {
587        self.inner = self.inner.set_apply_immediately(input);
588        self
589    }
590    /// <p>If <code>true</code>, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the <code>PreferredMaintenanceWindow</code> setting for the cluster.</p>
591    /// <p>If <code>false</code>, changes to the cluster are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p><important>
592    /// <p>If you perform a <code>ModifyCacheCluster</code> before a pending modification is applied, the pending modification is replaced by the newer modification.</p>
593    /// </important>
594    /// <p>Valid values: <code>true</code> | <code>false</code></p>
595    /// <p>Default: <code>false</code></p>
596    pub fn get_apply_immediately(&self) -> &::std::option::Option<bool> {
597        self.inner.get_apply_immediately()
598    }
599    /// <p>The engine type used by the cache cluster. The options are valkey, memcached or redis.</p>
600    pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
601        self.inner = self.inner.engine(input.into());
602        self
603    }
604    /// <p>The engine type used by the cache cluster. The options are valkey, memcached or redis.</p>
605    pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
606        self.inner = self.inner.set_engine(input);
607        self
608    }
609    /// <p>The engine type used by the cache cluster. The options are valkey, memcached or redis.</p>
610    pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
611        self.inner.get_engine()
612    }
613    /// <p>The upgraded version of the cache engine to be run on the cache nodes.</p>
614    /// <p><b>Important:</b> You can upgrade to a newer engine version (see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/SelectEngine.html#VersionManagement">Selecting a Cache Engine and Version</a>), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.</p>
615    pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
616        self.inner = self.inner.engine_version(input.into());
617        self
618    }
619    /// <p>The upgraded version of the cache engine to be run on the cache nodes.</p>
620    /// <p><b>Important:</b> You can upgrade to a newer engine version (see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/SelectEngine.html#VersionManagement">Selecting a Cache Engine and Version</a>), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.</p>
621    pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
622        self.inner = self.inner.set_engine_version(input);
623        self
624    }
625    /// <p>The upgraded version of the cache engine to be run on the cache nodes.</p>
626    /// <p><b>Important:</b> You can upgrade to a newer engine version (see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/SelectEngine.html#VersionManagement">Selecting a Cache Engine and Version</a>), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.</p>
627    pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
628        self.inner.get_engine_version()
629    }
630    /// <p>&nbsp;If you are running Valkey 7.2 or Redis OSS engine version 6.0 or later, set this parameter to yes to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
631    pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
632        self.inner = self.inner.auto_minor_version_upgrade(input);
633        self
634    }
635    /// <p>&nbsp;If you are running Valkey 7.2 or Redis OSS engine version 6.0 or later, set this parameter to yes to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
636    pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
637        self.inner = self.inner.set_auto_minor_version_upgrade(input);
638        self
639    }
640    /// <p>&nbsp;If you are running Valkey 7.2 or Redis OSS engine version 6.0 or later, set this parameter to yes to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
641    pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
642        self.inner.get_auto_minor_version_upgrade()
643    }
644    /// <p>The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set <code>SnapshotRetentionLimit</code> to 5, a snapshot that was taken today is retained for 5 days before being deleted.</p><note>
645    /// <p>If the value of <code>SnapshotRetentionLimit</code> is set to zero (0), backups are turned off.</p>
646    /// </note>
647    pub fn snapshot_retention_limit(mut self, input: i32) -> Self {
648        self.inner = self.inner.snapshot_retention_limit(input);
649        self
650    }
651    /// <p>The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set <code>SnapshotRetentionLimit</code> to 5, a snapshot that was taken today is retained for 5 days before being deleted.</p><note>
652    /// <p>If the value of <code>SnapshotRetentionLimit</code> is set to zero (0), backups are turned off.</p>
653    /// </note>
654    pub fn set_snapshot_retention_limit(mut self, input: ::std::option::Option<i32>) -> Self {
655        self.inner = self.inner.set_snapshot_retention_limit(input);
656        self
657    }
658    /// <p>The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set <code>SnapshotRetentionLimit</code> to 5, a snapshot that was taken today is retained for 5 days before being deleted.</p><note>
659    /// <p>If the value of <code>SnapshotRetentionLimit</code> is set to zero (0), backups are turned off.</p>
660    /// </note>
661    pub fn get_snapshot_retention_limit(&self) -> &::std::option::Option<i32> {
662        self.inner.get_snapshot_retention_limit()
663    }
664    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster.</p>
665    pub fn snapshot_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
666        self.inner = self.inner.snapshot_window(input.into());
667        self
668    }
669    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster.</p>
670    pub fn set_snapshot_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
671        self.inner = self.inner.set_snapshot_window(input);
672        self
673    }
674    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster.</p>
675    pub fn get_snapshot_window(&self) -> &::std::option::Option<::std::string::String> {
676        self.inner.get_snapshot_window()
677    }
678    /// <p>A valid cache node type that you want to scale this cluster up to.</p>
679    pub fn cache_node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
680        self.inner = self.inner.cache_node_type(input.into());
681        self
682    }
683    /// <p>A valid cache node type that you want to scale this cluster up to.</p>
684    pub fn set_cache_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
685        self.inner = self.inner.set_cache_node_type(input);
686        self
687    }
688    /// <p>A valid cache node type that you want to scale this cluster up to.</p>
689    pub fn get_cache_node_type(&self) -> &::std::option::Option<::std::string::String> {
690        self.inner.get_cache_node_type()
691    }
692    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update</code> parameter. Password constraints:</p>
693    /// <ul>
694    /// <li>
695    /// <p>Must be only printable ASCII characters</p></li>
696    /// <li>
697    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
698    /// <li>
699    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
700    /// </ul>
701    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
702    pub fn auth_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
703        self.inner = self.inner.auth_token(input.into());
704        self
705    }
706    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update</code> parameter. Password constraints:</p>
707    /// <ul>
708    /// <li>
709    /// <p>Must be only printable ASCII characters</p></li>
710    /// <li>
711    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
712    /// <li>
713    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
714    /// </ul>
715    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
716    pub fn set_auth_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
717        self.inner = self.inner.set_auth_token(input);
718        self
719    }
720    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update</code> parameter. Password constraints:</p>
721    /// <ul>
722    /// <li>
723    /// <p>Must be only printable ASCII characters</p></li>
724    /// <li>
725    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
726    /// <li>
727    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
728    /// </ul>
729    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
730    pub fn get_auth_token(&self) -> &::std::option::Option<::std::string::String> {
731        self.inner.get_auth_token()
732    }
733    /// <p>Specifies the strategy to use to update the AUTH token. This parameter must be specified with the <code>auth-token</code> parameter. Possible values:</p>
734    /// <ul>
735    /// <li>
736    /// <p>ROTATE - default, if no update strategy is provided</p></li>
737    /// <li>
738    /// <p>SET - allowed only after ROTATE</p></li>
739    /// <li>
740    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
741    /// </ul>
742    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
743    pub fn auth_token_update_strategy(mut self, input: crate::types::AuthTokenUpdateStrategyType) -> Self {
744        self.inner = self.inner.auth_token_update_strategy(input);
745        self
746    }
747    /// <p>Specifies the strategy to use to update the AUTH token. This parameter must be specified with the <code>auth-token</code> parameter. Possible values:</p>
748    /// <ul>
749    /// <li>
750    /// <p>ROTATE - default, if no update strategy is provided</p></li>
751    /// <li>
752    /// <p>SET - allowed only after ROTATE</p></li>
753    /// <li>
754    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
755    /// </ul>
756    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
757    pub fn set_auth_token_update_strategy(mut self, input: ::std::option::Option<crate::types::AuthTokenUpdateStrategyType>) -> Self {
758        self.inner = self.inner.set_auth_token_update_strategy(input);
759        self
760    }
761    /// <p>Specifies the strategy to use to update the AUTH token. This parameter must be specified with the <code>auth-token</code> parameter. Possible values:</p>
762    /// <ul>
763    /// <li>
764    /// <p>ROTATE - default, if no update strategy is provided</p></li>
765    /// <li>
766    /// <p>SET - allowed only after ROTATE</p></li>
767    /// <li>
768    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
769    /// </ul>
770    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
771    pub fn get_auth_token_update_strategy(&self) -> &::std::option::Option<crate::types::AuthTokenUpdateStrategyType> {
772        self.inner.get_auth_token_update_strategy()
773    }
774    ///
775    /// Appends an item to `LogDeliveryConfigurations`.
776    ///
777    /// To override the contents of this collection use [`set_log_delivery_configurations`](Self::set_log_delivery_configurations).
778    ///
779    /// <p>Specifies the destination, format and type of the logs.</p>
780    pub fn log_delivery_configurations(mut self, input: crate::types::LogDeliveryConfigurationRequest) -> Self {
781        self.inner = self.inner.log_delivery_configurations(input);
782        self
783    }
784    /// <p>Specifies the destination, format and type of the logs.</p>
785    pub fn set_log_delivery_configurations(
786        mut self,
787        input: ::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>>,
788    ) -> Self {
789        self.inner = self.inner.set_log_delivery_configurations(input);
790        self
791    }
792    /// <p>Specifies the destination, format and type of the logs.</p>
793    pub fn get_log_delivery_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>> {
794        self.inner.get_log_delivery_configurations()
795    }
796    /// <p>The network type you choose when modifying a cluster, either <code>ipv4</code> | <code>ipv6</code>. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the <a href="http://aws.amazon.com/ec2/nitro/">Nitro system</a>.</p>
797    pub fn ip_discovery(mut self, input: crate::types::IpDiscovery) -> Self {
798        self.inner = self.inner.ip_discovery(input);
799        self
800    }
801    /// <p>The network type you choose when modifying a cluster, either <code>ipv4</code> | <code>ipv6</code>. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the <a href="http://aws.amazon.com/ec2/nitro/">Nitro system</a>.</p>
802    pub fn set_ip_discovery(mut self, input: ::std::option::Option<crate::types::IpDiscovery>) -> Self {
803        self.inner = self.inner.set_ip_discovery(input);
804        self
805    }
806    /// <p>The network type you choose when modifying a cluster, either <code>ipv4</code> | <code>ipv6</code>. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the <a href="http://aws.amazon.com/ec2/nitro/">Nitro system</a>.</p>
807    pub fn get_ip_discovery(&self) -> &::std::option::Option<crate::types::IpDiscovery> {
808        self.inner.get_ip_discovery()
809    }
810    /// <p>Configures horizontal or vertical scaling for Memcached clusters, specifying the scaling percentage and interval.</p>
811    pub fn scale_config(mut self, input: crate::types::ScaleConfig) -> Self {
812        self.inner = self.inner.scale_config(input);
813        self
814    }
815    /// <p>Configures horizontal or vertical scaling for Memcached clusters, specifying the scaling percentage and interval.</p>
816    pub fn set_scale_config(mut self, input: ::std::option::Option<crate::types::ScaleConfig>) -> Self {
817        self.inner = self.inner.set_scale_config(input);
818        self
819    }
820    /// <p>Configures horizontal or vertical scaling for Memcached clusters, specifying the scaling percentage and interval.</p>
821    pub fn get_scale_config(&self) -> &::std::option::Option<crate::types::ScaleConfig> {
822        self.inner.get_scale_config()
823    }
824}