1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Contains all of the attributes of a specific DAX cluster.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Cluster {
/// <p>The name of the DAX cluster.</p>
pub cluster_name: ::std::option::Option<::std::string::String>,
/// <p>The description of the cluster.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) that uniquely identifies the cluster.</p>
pub cluster_arn: ::std::option::Option<::std::string::String>,
/// <p>The total number of nodes in the cluster.</p>
pub total_nodes: ::std::option::Option<i32>,
/// <p>The number of nodes in the cluster that are active (i.e., capable of serving requests).</p>
pub active_nodes: ::std::option::Option<i32>,
/// <p>The node type for the nodes in the cluster. (All nodes in a DAX cluster are of the same type.)</p>
pub node_type: ::std::option::Option<::std::string::String>,
/// <p>The current status of the cluster.</p>
pub status: ::std::option::Option<::std::string::String>,
/// <p>The endpoint for this DAX cluster, consisting of a DNS name, a port number, and a URL. Applications should use the URL to configure the DAX client to find their cluster.</p>
pub cluster_discovery_endpoint: ::std::option::Option<crate::types::Endpoint>,
/// <p>A list of nodes to be removed from the cluster.</p>
pub node_ids_to_remove: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>A list of nodes that are currently in the cluster.</p>
pub nodes: ::std::option::Option<::std::vec::Vec<crate::types::Node>>,
/// <p>A range of time when maintenance of DAX cluster software will be performed. For example: <code>sun:01:00-sun:09:00</code>. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.</p>
pub preferred_maintenance_window: ::std::option::Option<::std::string::String>,
/// <p>Describes a notification topic and its status. Notification topics are used for publishing DAX events to subscribers using Amazon Simple Notification Service (SNS).</p>
pub notification_configuration: ::std::option::Option<crate::types::NotificationConfiguration>,
/// <p>The subnet group where the DAX cluster is running.</p>
pub subnet_group: ::std::option::Option<::std::string::String>,
/// <p>A list of security groups, and the status of each, for the nodes in the cluster.</p>
pub security_groups: ::std::option::Option<::std::vec::Vec<crate::types::SecurityGroupMembership>>,
/// <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>
pub iam_role_arn: ::std::option::Option<::std::string::String>,
/// <p>The parameter group being used by nodes in the cluster.</p>
pub parameter_group: ::std::option::Option<crate::types::ParameterGroupStatus>,
/// <p>The description of the server-side encryption status on the specified DAX cluster.</p>
pub sse_description: ::std::option::Option<crate::types::SseDescription>,
/// <p>The type of encryption supported by the cluster's endpoint. Values are:</p>
/// <ul>
/// <li>
/// <p><code>NONE</code> for no encryption</p>
/// <p><code>TLS</code> for Transport Layer Security</p></li>
/// </ul>
pub cluster_endpoint_encryption_type: ::std::option::Option<crate::types::ClusterEndpointEncryptionType>,
/// <p>The IP address type of the cluster. Values are:</p>
/// <ul>
/// <li>
/// <p><code>ipv4</code> - IPv4 addresses only</p></li>
/// <li>
/// <p><code>ipv6</code> - IPv6 addresses only</p></li>
/// <li>
/// <p><code>dual_stack</code> - Both IPv4 and IPv6 addresses</p></li>
/// </ul>
pub network_type: ::std::option::Option<crate::types::NetworkType>,
}
impl Cluster {
/// <p>The name of the DAX cluster.</p>
pub fn cluster_name(&self) -> ::std::option::Option<&str> {
self.cluster_name.as_deref()
}
/// <p>The description of the cluster.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The Amazon Resource Name (ARN) that uniquely identifies the cluster.</p>
pub fn cluster_arn(&self) -> ::std::option::Option<&str> {
self.cluster_arn.as_deref()
}
/// <p>The total number of nodes in the cluster.</p>
pub fn total_nodes(&self) -> ::std::option::Option<i32> {
self.total_nodes
}
/// <p>The number of nodes in the cluster that are active (i.e., capable of serving requests).</p>
pub fn active_nodes(&self) -> ::std::option::Option<i32> {
self.active_nodes
}
/// <p>The node type for the nodes in the cluster. (All nodes in a DAX cluster are of the same type.)</p>
pub fn node_type(&self) -> ::std::option::Option<&str> {
self.node_type.as_deref()
}
/// <p>The current status of the cluster.</p>
pub fn status(&self) -> ::std::option::Option<&str> {
self.status.as_deref()
}
/// <p>The endpoint for this DAX cluster, consisting of a DNS name, a port number, and a URL. Applications should use the URL to configure the DAX client to find their cluster.</p>
pub fn cluster_discovery_endpoint(&self) -> ::std::option::Option<&crate::types::Endpoint> {
self.cluster_discovery_endpoint.as_ref()
}
/// <p>A list of nodes to be removed from the cluster.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.node_ids_to_remove.is_none()`.
pub fn node_ids_to_remove(&self) -> &[::std::string::String] {
self.node_ids_to_remove.as_deref().unwrap_or_default()
}
/// <p>A list of nodes that are currently in the cluster.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.nodes.is_none()`.
pub fn nodes(&self) -> &[crate::types::Node] {
self.nodes.as_deref().unwrap_or_default()
}
/// <p>A range of time when maintenance of DAX cluster software will be performed. For example: <code>sun:01:00-sun:09:00</code>. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.</p>
pub fn preferred_maintenance_window(&self) -> ::std::option::Option<&str> {
self.preferred_maintenance_window.as_deref()
}
/// <p>Describes a notification topic and its status. Notification topics are used for publishing DAX events to subscribers using Amazon Simple Notification Service (SNS).</p>
pub fn notification_configuration(&self) -> ::std::option::Option<&crate::types::NotificationConfiguration> {
self.notification_configuration.as_ref()
}
/// <p>The subnet group where the DAX cluster is running.</p>
pub fn subnet_group(&self) -> ::std::option::Option<&str> {
self.subnet_group.as_deref()
}
/// <p>A list of security groups, and the status of each, for the nodes in the cluster.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.security_groups.is_none()`.
pub fn security_groups(&self) -> &[crate::types::SecurityGroupMembership] {
self.security_groups.as_deref().unwrap_or_default()
}
/// <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>
pub fn iam_role_arn(&self) -> ::std::option::Option<&str> {
self.iam_role_arn.as_deref()
}
/// <p>The parameter group being used by nodes in the cluster.</p>
pub fn parameter_group(&self) -> ::std::option::Option<&crate::types::ParameterGroupStatus> {
self.parameter_group.as_ref()
}
/// <p>The description of the server-side encryption status on the specified DAX cluster.</p>
pub fn sse_description(&self) -> ::std::option::Option<&crate::types::SseDescription> {
self.sse_description.as_ref()
}
/// <p>The type of encryption supported by the cluster's endpoint. Values are:</p>
/// <ul>
/// <li>
/// <p><code>NONE</code> for no encryption</p>
/// <p><code>TLS</code> for Transport Layer Security</p></li>
/// </ul>
pub fn cluster_endpoint_encryption_type(&self) -> ::std::option::Option<&crate::types::ClusterEndpointEncryptionType> {
self.cluster_endpoint_encryption_type.as_ref()
}
/// <p>The IP address type of the cluster. Values are:</p>
/// <ul>
/// <li>
/// <p><code>ipv4</code> - IPv4 addresses only</p></li>
/// <li>
/// <p><code>ipv6</code> - IPv6 addresses only</p></li>
/// <li>
/// <p><code>dual_stack</code> - Both IPv4 and IPv6 addresses</p></li>
/// </ul>
pub fn network_type(&self) -> ::std::option::Option<&crate::types::NetworkType> {
self.network_type.as_ref()
}
}
impl Cluster {
/// Creates a new builder-style object to manufacture [`Cluster`](crate::types::Cluster).
pub fn builder() -> crate::types::builders::ClusterBuilder {
crate::types::builders::ClusterBuilder::default()
}
}
/// A builder for [`Cluster`](crate::types::Cluster).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ClusterBuilder {
pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) cluster_arn: ::std::option::Option<::std::string::String>,
pub(crate) total_nodes: ::std::option::Option<i32>,
pub(crate) active_nodes: ::std::option::Option<i32>,
pub(crate) node_type: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<::std::string::String>,
pub(crate) cluster_discovery_endpoint: ::std::option::Option<crate::types::Endpoint>,
pub(crate) node_ids_to_remove: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) nodes: ::std::option::Option<::std::vec::Vec<crate::types::Node>>,
pub(crate) preferred_maintenance_window: ::std::option::Option<::std::string::String>,
pub(crate) notification_configuration: ::std::option::Option<crate::types::NotificationConfiguration>,
pub(crate) subnet_group: ::std::option::Option<::std::string::String>,
pub(crate) security_groups: ::std::option::Option<::std::vec::Vec<crate::types::SecurityGroupMembership>>,
pub(crate) iam_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) parameter_group: ::std::option::Option<crate::types::ParameterGroupStatus>,
pub(crate) sse_description: ::std::option::Option<crate::types::SseDescription>,
pub(crate) cluster_endpoint_encryption_type: ::std::option::Option<crate::types::ClusterEndpointEncryptionType>,
pub(crate) network_type: ::std::option::Option<crate::types::NetworkType>,
}
impl ClusterBuilder {
/// <p>The name of the DAX cluster.</p>
pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the DAX cluster.</p>
pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_name = input;
self
}
/// <p>The name of the DAX cluster.</p>
pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_name
}
/// <p>The description of the cluster.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the cluster.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the cluster.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The Amazon Resource Name (ARN) that uniquely identifies the cluster.</p>
pub fn cluster_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) that uniquely identifies the cluster.</p>
pub fn set_cluster_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) that uniquely identifies the cluster.</p>
pub fn get_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_arn
}
/// <p>The total number of nodes in the cluster.</p>
pub fn total_nodes(mut self, input: i32) -> Self {
self.total_nodes = ::std::option::Option::Some(input);
self
}
/// <p>The total number of nodes in the cluster.</p>
pub fn set_total_nodes(mut self, input: ::std::option::Option<i32>) -> Self {
self.total_nodes = input;
self
}
/// <p>The total number of nodes in the cluster.</p>
pub fn get_total_nodes(&self) -> &::std::option::Option<i32> {
&self.total_nodes
}
/// <p>The number of nodes in the cluster that are active (i.e., capable of serving requests).</p>
pub fn active_nodes(mut self, input: i32) -> Self {
self.active_nodes = ::std::option::Option::Some(input);
self
}
/// <p>The number of nodes in the cluster that are active (i.e., capable of serving requests).</p>
pub fn set_active_nodes(mut self, input: ::std::option::Option<i32>) -> Self {
self.active_nodes = input;
self
}
/// <p>The number of nodes in the cluster that are active (i.e., capable of serving requests).</p>
pub fn get_active_nodes(&self) -> &::std::option::Option<i32> {
&self.active_nodes
}
/// <p>The node type for the nodes in the cluster. (All nodes in a DAX cluster are of the same type.)</p>
pub fn node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.node_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The node type for the nodes in the cluster. (All nodes in a DAX cluster are of the same type.)</p>
pub fn set_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.node_type = input;
self
}
/// <p>The node type for the nodes in the cluster. (All nodes in a DAX cluster are of the same type.)</p>
pub fn get_node_type(&self) -> &::std::option::Option<::std::string::String> {
&self.node_type
}
/// <p>The current status of the cluster.</p>
pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status = ::std::option::Option::Some(input.into());
self
}
/// <p>The current status of the cluster.</p>
pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status = input;
self
}
/// <p>The current status of the cluster.</p>
pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
&self.status
}
/// <p>The endpoint for this DAX cluster, consisting of a DNS name, a port number, and a URL. Applications should use the URL to configure the DAX client to find their cluster.</p>
pub fn cluster_discovery_endpoint(mut self, input: crate::types::Endpoint) -> Self {
self.cluster_discovery_endpoint = ::std::option::Option::Some(input);
self
}
/// <p>The endpoint for this DAX cluster, consisting of a DNS name, a port number, and a URL. Applications should use the URL to configure the DAX client to find their cluster.</p>
pub fn set_cluster_discovery_endpoint(mut self, input: ::std::option::Option<crate::types::Endpoint>) -> Self {
self.cluster_discovery_endpoint = input;
self
}
/// <p>The endpoint for this DAX cluster, consisting of a DNS name, a port number, and a URL. Applications should use the URL to configure the DAX client to find their cluster.</p>
pub fn get_cluster_discovery_endpoint(&self) -> &::std::option::Option<crate::types::Endpoint> {
&self.cluster_discovery_endpoint
}
/// Appends an item to `node_ids_to_remove`.
///
/// To override the contents of this collection use [`set_node_ids_to_remove`](Self::set_node_ids_to_remove).
///
/// <p>A list of nodes to be removed from the cluster.</p>
pub fn node_ids_to_remove(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.node_ids_to_remove.unwrap_or_default();
v.push(input.into());
self.node_ids_to_remove = ::std::option::Option::Some(v);
self
}
/// <p>A list of nodes to be removed from the cluster.</p>
pub fn set_node_ids_to_remove(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.node_ids_to_remove = input;
self
}
/// <p>A list of nodes to be removed from the cluster.</p>
pub fn get_node_ids_to_remove(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.node_ids_to_remove
}
/// Appends an item to `nodes`.
///
/// To override the contents of this collection use [`set_nodes`](Self::set_nodes).
///
/// <p>A list of nodes that are currently in the cluster.</p>
pub fn nodes(mut self, input: crate::types::Node) -> Self {
let mut v = self.nodes.unwrap_or_default();
v.push(input);
self.nodes = ::std::option::Option::Some(v);
self
}
/// <p>A list of nodes that are currently in the cluster.</p>
pub fn set_nodes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Node>>) -> Self {
self.nodes = input;
self
}
/// <p>A list of nodes that are currently in the cluster.</p>
pub fn get_nodes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Node>> {
&self.nodes
}
/// <p>A range of time when maintenance of DAX cluster software will be performed. For example: <code>sun:01:00-sun:09:00</code>. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.</p>
pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.preferred_maintenance_window = ::std::option::Option::Some(input.into());
self
}
/// <p>A range of time when maintenance of DAX cluster software will be performed. For example: <code>sun:01:00-sun:09:00</code>. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.</p>
pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.preferred_maintenance_window = input;
self
}
/// <p>A range of time when maintenance of DAX cluster software will be performed. For example: <code>sun:01:00-sun:09:00</code>. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.</p>
pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
&self.preferred_maintenance_window
}
/// <p>Describes a notification topic and its status. Notification topics are used for publishing DAX events to subscribers using Amazon Simple Notification Service (SNS).</p>
pub fn notification_configuration(mut self, input: crate::types::NotificationConfiguration) -> Self {
self.notification_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Describes a notification topic and its status. Notification topics are used for publishing DAX events to subscribers using Amazon Simple Notification Service (SNS).</p>
pub fn set_notification_configuration(mut self, input: ::std::option::Option<crate::types::NotificationConfiguration>) -> Self {
self.notification_configuration = input;
self
}
/// <p>Describes a notification topic and its status. Notification topics are used for publishing DAX events to subscribers using Amazon Simple Notification Service (SNS).</p>
pub fn get_notification_configuration(&self) -> &::std::option::Option<crate::types::NotificationConfiguration> {
&self.notification_configuration
}
/// <p>The subnet group where the DAX cluster is running.</p>
pub fn subnet_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.subnet_group = ::std::option::Option::Some(input.into());
self
}
/// <p>The subnet group where the DAX cluster is running.</p>
pub fn set_subnet_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.subnet_group = input;
self
}
/// <p>The subnet group where the DAX cluster is running.</p>
pub fn get_subnet_group(&self) -> &::std::option::Option<::std::string::String> {
&self.subnet_group
}
/// Appends an item to `security_groups`.
///
/// To override the contents of this collection use [`set_security_groups`](Self::set_security_groups).
///
/// <p>A list of security groups, and the status of each, for the nodes in the cluster.</p>
pub fn security_groups(mut self, input: crate::types::SecurityGroupMembership) -> Self {
let mut v = self.security_groups.unwrap_or_default();
v.push(input);
self.security_groups = ::std::option::Option::Some(v);
self
}
/// <p>A list of security groups, and the status of each, for the nodes in the cluster.</p>
pub fn set_security_groups(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SecurityGroupMembership>>) -> Self {
self.security_groups = input;
self
}
/// <p>A list of security groups, and the status of each, for the nodes in the cluster.</p>
pub fn get_security_groups(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SecurityGroupMembership>> {
&self.security_groups
}
/// <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>
pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.iam_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.iam_role_arn = input;
self
}
/// <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>
pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.iam_role_arn
}
/// <p>The parameter group being used by nodes in the cluster.</p>
pub fn parameter_group(mut self, input: crate::types::ParameterGroupStatus) -> Self {
self.parameter_group = ::std::option::Option::Some(input);
self
}
/// <p>The parameter group being used by nodes in the cluster.</p>
pub fn set_parameter_group(mut self, input: ::std::option::Option<crate::types::ParameterGroupStatus>) -> Self {
self.parameter_group = input;
self
}
/// <p>The parameter group being used by nodes in the cluster.</p>
pub fn get_parameter_group(&self) -> &::std::option::Option<crate::types::ParameterGroupStatus> {
&self.parameter_group
}
/// <p>The description of the server-side encryption status on the specified DAX cluster.</p>
pub fn sse_description(mut self, input: crate::types::SseDescription) -> Self {
self.sse_description = ::std::option::Option::Some(input);
self
}
/// <p>The description of the server-side encryption status on the specified DAX cluster.</p>
pub fn set_sse_description(mut self, input: ::std::option::Option<crate::types::SseDescription>) -> Self {
self.sse_description = input;
self
}
/// <p>The description of the server-side encryption status on the specified DAX cluster.</p>
pub fn get_sse_description(&self) -> &::std::option::Option<crate::types::SseDescription> {
&self.sse_description
}
/// <p>The type of encryption supported by the cluster's endpoint. Values are:</p>
/// <ul>
/// <li>
/// <p><code>NONE</code> for no encryption</p>
/// <p><code>TLS</code> for Transport Layer Security</p></li>
/// </ul>
pub fn cluster_endpoint_encryption_type(mut self, input: crate::types::ClusterEndpointEncryptionType) -> Self {
self.cluster_endpoint_encryption_type = ::std::option::Option::Some(input);
self
}
/// <p>The type of encryption supported by the cluster's endpoint. Values are:</p>
/// <ul>
/// <li>
/// <p><code>NONE</code> for no encryption</p>
/// <p><code>TLS</code> for Transport Layer Security</p></li>
/// </ul>
pub fn set_cluster_endpoint_encryption_type(mut self, input: ::std::option::Option<crate::types::ClusterEndpointEncryptionType>) -> Self {
self.cluster_endpoint_encryption_type = input;
self
}
/// <p>The type of encryption supported by the cluster's endpoint. Values are:</p>
/// <ul>
/// <li>
/// <p><code>NONE</code> for no encryption</p>
/// <p><code>TLS</code> for Transport Layer Security</p></li>
/// </ul>
pub fn get_cluster_endpoint_encryption_type(&self) -> &::std::option::Option<crate::types::ClusterEndpointEncryptionType> {
&self.cluster_endpoint_encryption_type
}
/// <p>The IP address type of the cluster. Values are:</p>
/// <ul>
/// <li>
/// <p><code>ipv4</code> - IPv4 addresses only</p></li>
/// <li>
/// <p><code>ipv6</code> - IPv6 addresses only</p></li>
/// <li>
/// <p><code>dual_stack</code> - Both IPv4 and IPv6 addresses</p></li>
/// </ul>
pub fn network_type(mut self, input: crate::types::NetworkType) -> Self {
self.network_type = ::std::option::Option::Some(input);
self
}
/// <p>The IP address type of the cluster. Values are:</p>
/// <ul>
/// <li>
/// <p><code>ipv4</code> - IPv4 addresses only</p></li>
/// <li>
/// <p><code>ipv6</code> - IPv6 addresses only</p></li>
/// <li>
/// <p><code>dual_stack</code> - Both IPv4 and IPv6 addresses</p></li>
/// </ul>
pub fn set_network_type(mut self, input: ::std::option::Option<crate::types::NetworkType>) -> Self {
self.network_type = input;
self
}
/// <p>The IP address type of the cluster. Values are:</p>
/// <ul>
/// <li>
/// <p><code>ipv4</code> - IPv4 addresses only</p></li>
/// <li>
/// <p><code>ipv6</code> - IPv6 addresses only</p></li>
/// <li>
/// <p><code>dual_stack</code> - Both IPv4 and IPv6 addresses</p></li>
/// </ul>
pub fn get_network_type(&self) -> &::std::option::Option<crate::types::NetworkType> {
&self.network_type
}
/// Consumes the builder and constructs a [`Cluster`](crate::types::Cluster).
pub fn build(self) -> crate::types::Cluster {
crate::types::Cluster {
cluster_name: self.cluster_name,
description: self.description,
cluster_arn: self.cluster_arn,
total_nodes: self.total_nodes,
active_nodes: self.active_nodes,
node_type: self.node_type,
status: self.status,
cluster_discovery_endpoint: self.cluster_discovery_endpoint,
node_ids_to_remove: self.node_ids_to_remove,
nodes: self.nodes,
preferred_maintenance_window: self.preferred_maintenance_window,
notification_configuration: self.notification_configuration,
subnet_group: self.subnet_group,
security_groups: self.security_groups,
iam_role_arn: self.iam_role_arn,
parameter_group: self.parameter_group,
sse_description: self.sse_description,
cluster_endpoint_encryption_type: self.cluster_endpoint_encryption_type,
network_type: self.network_type,
}
}
}