aws-sdk-elasticache 1.110.0

AWS SDK for Amazon ElastiCache
Documentation
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
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents the input of a <code>ModifyReplicationGroups</code> operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ModifyReplicationGroupInput {
    /// <p>The identifier of the replication group to modify.</p>
    pub replication_group_id: ::std::option::Option<::std::string::String>,
    /// <p>A description for the replication group. Maximum length is 255 characters.</p>
    pub replication_group_description: ::std::option::Option<::std::string::String>,
    /// <p>For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.</p>
    pub primary_cluster_id: ::std::option::Option<::std::string::String>,
    /// <p>The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Valkey or Redis OSS (cluster mode enabled) replication groups.</p>
    pub snapshotting_cluster_id: ::std::option::Option<::std::string::String>,
    /// <p>Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    pub automatic_failover_enabled: ::std::option::Option<bool>,
    /// <p>A flag to indicate MultiAZ is enabled.</p>
    pub multi_az_enabled: ::std::option::Option<bool>,
    /// <p>Deprecated. This parameter is not used.</p>
    #[deprecated]
    pub node_group_id: ::std::option::Option<::std::string::String>,
    /// <p>A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.</p>
    /// <p>This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be <code>Default</code>.</p>
    pub cache_security_group_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Specifies the VPC Security Groups associated with the clusters in the replication group.</p>
    /// <p>This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).</p>
    pub security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <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>
    /// <p>Valid values for <code>ddd</code> are:</p>
    /// <ul>
    /// <li>
    /// <p><code>sun</code></p></li>
    /// <li>
    /// <p><code>mon</code></p></li>
    /// <li>
    /// <p><code>tue</code></p></li>
    /// <li>
    /// <p><code>wed</code></p></li>
    /// <li>
    /// <p><code>thu</code></p></li>
    /// <li>
    /// <p><code>fri</code></p></li>
    /// <li>
    /// <p><code>sat</code></p></li>
    /// </ul>
    /// <p>Example: <code>sun:23:00-mon:01:30</code></p>
    pub preferred_maintenance_window: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
    /// <p>The Amazon SNS topic owner must be same as the replication group owner.</p>
    /// </note>
    pub notification_topic_arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the cache parameter group to apply to all of the clusters in this replication group. 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>
    pub cache_parameter_group_name: ::std::option::Option<::std::string::String>,
    /// <p>The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is <code>active</code>.</p>
    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
    pub notification_topic_status: ::std::option::Option<::std::string::String>,
    /// <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 replication group.</p>
    /// <p>If <code>false</code>, changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    /// <p>Default: <code>false</code></p>
    pub apply_immediately: ::std::option::Option<bool>,
    /// <p>Modifies the engine listed in a replication group message. The options are valkey, memcached or redis.</p>
    pub engine: ::std::option::Option<::std::string::String>,
    /// <p>The upgraded version of the cache engine to be run on the clusters in the replication group.</p>
    /// <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 replication group and create it anew with the earlier engine version.</p>
    pub engine_version: ::std::option::Option<::std::string::String>,
    /// <p>&nbsp;If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
    pub auto_minor_version_upgrade: ::std::option::Option<bool>,
    /// <p>The number of days for which ElastiCache retains automatic node group (shard) 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>
    /// <p><b>Important</b> If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.</p>
    pub snapshot_retention_limit: ::std::option::Option<i32>,
    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by <code>SnapshottingClusterId</code>.</p>
    /// <p>Example: <code>05:00-09:00</code></p>
    /// <p>If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.</p>
    pub snapshot_window: ::std::option::Option<::std::string::String>,
    /// <p>A valid cache node type that you want to scale this replication group to.</p>
    pub cache_node_type: ::std::option::Option<::std::string::String>,
    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update-strategy </code> parameter. Password constraints:</p>
    /// <ul>
    /// <li>
    /// <p>Must be only printable ASCII characters</p></li>
    /// <li>
    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
    /// <li>
    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
    /// </ul>
    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
    pub auth_token: ::std::option::Option<::std::string::String>,
    /// <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>
    /// <ul>
    /// <li>
    /// <p>ROTATE - default, if no update strategy is provided</p></li>
    /// <li>
    /// <p>SET - allowed only after ROTATE</p></li>
    /// <li>
    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
    /// </ul>
    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
    pub auth_token_update_strategy: ::std::option::Option<crate::types::AuthTokenUpdateStrategyType>,
    /// <p>The ID of the user group you are associating with the replication group.</p>
    pub user_group_ids_to_add: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can access the replication group.</p>
    pub user_group_ids_to_remove: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Removes the user group associated with this replication group.</p>
    pub remove_user_groups: ::std::option::Option<bool>,
    /// <p>Specifies the destination, format and type of the logs.</p>
    pub log_delivery_configurations: ::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>>,
    /// <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 and 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>
    pub ip_discovery: ::std::option::Option<crate::types::IpDiscovery>,
    /// <p>A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an existing cluster, you must also set <code>TransitEncryptionMode</code> to <code>preferred</code>.</p>
    pub transit_encryption_enabled: ::std::option::Option<bool>,
    /// <p>A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.</p>
    /// <p>You must set <code>TransitEncryptionEnabled</code> to <code>true</code>, for your existing cluster, and set <code>TransitEncryptionMode</code> to <code>preferred</code> in the same request to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can set the value to <code>required</code> to allow encrypted connections only.</p>
    /// <p>Setting <code>TransitEncryptionMode</code> to <code>required</code> is a two-step process that requires you to first set the <code>TransitEncryptionMode</code> to <code>preferred</code>, after that you can set <code>TransitEncryptionMode</code> to <code>required</code>.</p>
    pub transit_encryption_mode: ::std::option::Option<crate::types::TransitEncryptionMode>,
    /// <p>Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.</p>
    pub cluster_mode: ::std::option::Option<crate::types::ClusterMode>,
    /// <p>Specifies the durability setting for the replication group. Use this parameter to change the durability mode of an existing replication group, for example from <code>sync</code> to <code>async</code> or vice versa. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
    pub durability: ::std::option::Option<crate::types::Durability>,
}
impl ModifyReplicationGroupInput {
    /// <p>The identifier of the replication group to modify.</p>
    pub fn replication_group_id(&self) -> ::std::option::Option<&str> {
        self.replication_group_id.as_deref()
    }
    /// <p>A description for the replication group. Maximum length is 255 characters.</p>
    pub fn replication_group_description(&self) -> ::std::option::Option<&str> {
        self.replication_group_description.as_deref()
    }
    /// <p>For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.</p>
    pub fn primary_cluster_id(&self) -> ::std::option::Option<&str> {
        self.primary_cluster_id.as_deref()
    }
    /// <p>The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Valkey or Redis OSS (cluster mode enabled) replication groups.</p>
    pub fn snapshotting_cluster_id(&self) -> ::std::option::Option<&str> {
        self.snapshotting_cluster_id.as_deref()
    }
    /// <p>Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    pub fn automatic_failover_enabled(&self) -> ::std::option::Option<bool> {
        self.automatic_failover_enabled
    }
    /// <p>A flag to indicate MultiAZ is enabled.</p>
    pub fn multi_az_enabled(&self) -> ::std::option::Option<bool> {
        self.multi_az_enabled
    }
    /// <p>Deprecated. This parameter is not used.</p>
    #[deprecated]
    pub fn node_group_id(&self) -> ::std::option::Option<&str> {
        self.node_group_id.as_deref()
    }
    /// <p>A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.</p>
    /// <p>This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be <code>Default</code>.</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 `.cache_security_group_names.is_none()`.
    pub fn cache_security_group_names(&self) -> &[::std::string::String] {
        self.cache_security_group_names.as_deref().unwrap_or_default()
    }
    /// <p>Specifies the VPC Security Groups associated with the clusters in the replication group.</p>
    /// <p>This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).</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_group_ids.is_none()`.
    pub fn security_group_ids(&self) -> &[::std::string::String] {
        self.security_group_ids.as_deref().unwrap_or_default()
    }
    /// <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>
    /// <p>Valid values for <code>ddd</code> are:</p>
    /// <ul>
    /// <li>
    /// <p><code>sun</code></p></li>
    /// <li>
    /// <p><code>mon</code></p></li>
    /// <li>
    /// <p><code>tue</code></p></li>
    /// <li>
    /// <p><code>wed</code></p></li>
    /// <li>
    /// <p><code>thu</code></p></li>
    /// <li>
    /// <p><code>fri</code></p></li>
    /// <li>
    /// <p><code>sat</code></p></li>
    /// </ul>
    /// <p>Example: <code>sun:23:00-mon:01:30</code></p>
    pub fn preferred_maintenance_window(&self) -> ::std::option::Option<&str> {
        self.preferred_maintenance_window.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
    /// <p>The Amazon SNS topic owner must be same as the replication group owner.</p>
    /// </note>
    pub fn notification_topic_arn(&self) -> ::std::option::Option<&str> {
        self.notification_topic_arn.as_deref()
    }
    /// <p>The name of the cache parameter group to apply to all of the clusters in this replication group. 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>
    pub fn cache_parameter_group_name(&self) -> ::std::option::Option<&str> {
        self.cache_parameter_group_name.as_deref()
    }
    /// <p>The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is <code>active</code>.</p>
    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
    pub fn notification_topic_status(&self) -> ::std::option::Option<&str> {
        self.notification_topic_status.as_deref()
    }
    /// <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 replication group.</p>
    /// <p>If <code>false</code>, changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    /// <p>Default: <code>false</code></p>
    pub fn apply_immediately(&self) -> ::std::option::Option<bool> {
        self.apply_immediately
    }
    /// <p>Modifies the engine listed in a replication group message. The options are valkey, memcached or redis.</p>
    pub fn engine(&self) -> ::std::option::Option<&str> {
        self.engine.as_deref()
    }
    /// <p>The upgraded version of the cache engine to be run on the clusters in the replication group.</p>
    /// <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 replication group and create it anew with the earlier engine version.</p>
    pub fn engine_version(&self) -> ::std::option::Option<&str> {
        self.engine_version.as_deref()
    }
    /// <p>&nbsp;If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
    pub fn auto_minor_version_upgrade(&self) -> ::std::option::Option<bool> {
        self.auto_minor_version_upgrade
    }
    /// <p>The number of days for which ElastiCache retains automatic node group (shard) 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>
    /// <p><b>Important</b> If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.</p>
    pub fn snapshot_retention_limit(&self) -> ::std::option::Option<i32> {
        self.snapshot_retention_limit
    }
    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by <code>SnapshottingClusterId</code>.</p>
    /// <p>Example: <code>05:00-09:00</code></p>
    /// <p>If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.</p>
    pub fn snapshot_window(&self) -> ::std::option::Option<&str> {
        self.snapshot_window.as_deref()
    }
    /// <p>A valid cache node type that you want to scale this replication group to.</p>
    pub fn cache_node_type(&self) -> ::std::option::Option<&str> {
        self.cache_node_type.as_deref()
    }
    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update-strategy </code> parameter. Password constraints:</p>
    /// <ul>
    /// <li>
    /// <p>Must be only printable ASCII characters</p></li>
    /// <li>
    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
    /// <li>
    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
    /// </ul>
    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
    pub fn auth_token(&self) -> ::std::option::Option<&str> {
        self.auth_token.as_deref()
    }
    /// <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>
    /// <ul>
    /// <li>
    /// <p>ROTATE - default, if no update strategy is provided</p></li>
    /// <li>
    /// <p>SET - allowed only after ROTATE</p></li>
    /// <li>
    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
    /// </ul>
    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
    pub fn auth_token_update_strategy(&self) -> ::std::option::Option<&crate::types::AuthTokenUpdateStrategyType> {
        self.auth_token_update_strategy.as_ref()
    }
    /// <p>The ID of the user group you are associating with the replication group.</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 `.user_group_ids_to_add.is_none()`.
    pub fn user_group_ids_to_add(&self) -> &[::std::string::String] {
        self.user_group_ids_to_add.as_deref().unwrap_or_default()
    }
    /// <p>The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can access the replication group.</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 `.user_group_ids_to_remove.is_none()`.
    pub fn user_group_ids_to_remove(&self) -> &[::std::string::String] {
        self.user_group_ids_to_remove.as_deref().unwrap_or_default()
    }
    /// <p>Removes the user group associated with this replication group.</p>
    pub fn remove_user_groups(&self) -> ::std::option::Option<bool> {
        self.remove_user_groups
    }
    /// <p>Specifies the destination, format and type of the logs.</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 `.log_delivery_configurations.is_none()`.
    pub fn log_delivery_configurations(&self) -> &[crate::types::LogDeliveryConfigurationRequest] {
        self.log_delivery_configurations.as_deref().unwrap_or_default()
    }
    /// <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 and 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>
    pub fn ip_discovery(&self) -> ::std::option::Option<&crate::types::IpDiscovery> {
        self.ip_discovery.as_ref()
    }
    /// <p>A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an existing cluster, you must also set <code>TransitEncryptionMode</code> to <code>preferred</code>.</p>
    pub fn transit_encryption_enabled(&self) -> ::std::option::Option<bool> {
        self.transit_encryption_enabled
    }
    /// <p>A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.</p>
    /// <p>You must set <code>TransitEncryptionEnabled</code> to <code>true</code>, for your existing cluster, and set <code>TransitEncryptionMode</code> to <code>preferred</code> in the same request to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can set the value to <code>required</code> to allow encrypted connections only.</p>
    /// <p>Setting <code>TransitEncryptionMode</code> to <code>required</code> is a two-step process that requires you to first set the <code>TransitEncryptionMode</code> to <code>preferred</code>, after that you can set <code>TransitEncryptionMode</code> to <code>required</code>.</p>
    pub fn transit_encryption_mode(&self) -> ::std::option::Option<&crate::types::TransitEncryptionMode> {
        self.transit_encryption_mode.as_ref()
    }
    /// <p>Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.</p>
    pub fn cluster_mode(&self) -> ::std::option::Option<&crate::types::ClusterMode> {
        self.cluster_mode.as_ref()
    }
    /// <p>Specifies the durability setting for the replication group. Use this parameter to change the durability mode of an existing replication group, for example from <code>sync</code> to <code>async</code> or vice versa. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
    pub fn durability(&self) -> ::std::option::Option<&crate::types::Durability> {
        self.durability.as_ref()
    }
}
impl ModifyReplicationGroupInput {
    /// Creates a new builder-style object to manufacture [`ModifyReplicationGroupInput`](crate::operation::modify_replication_group::ModifyReplicationGroupInput).
    pub fn builder() -> crate::operation::modify_replication_group::builders::ModifyReplicationGroupInputBuilder {
        crate::operation::modify_replication_group::builders::ModifyReplicationGroupInputBuilder::default()
    }
}

/// A builder for [`ModifyReplicationGroupInput`](crate::operation::modify_replication_group::ModifyReplicationGroupInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ModifyReplicationGroupInputBuilder {
    pub(crate) replication_group_id: ::std::option::Option<::std::string::String>,
    pub(crate) replication_group_description: ::std::option::Option<::std::string::String>,
    pub(crate) primary_cluster_id: ::std::option::Option<::std::string::String>,
    pub(crate) snapshotting_cluster_id: ::std::option::Option<::std::string::String>,
    pub(crate) automatic_failover_enabled: ::std::option::Option<bool>,
    pub(crate) multi_az_enabled: ::std::option::Option<bool>,
    pub(crate) node_group_id: ::std::option::Option<::std::string::String>,
    pub(crate) cache_security_group_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) preferred_maintenance_window: ::std::option::Option<::std::string::String>,
    pub(crate) notification_topic_arn: ::std::option::Option<::std::string::String>,
    pub(crate) cache_parameter_group_name: ::std::option::Option<::std::string::String>,
    pub(crate) notification_topic_status: ::std::option::Option<::std::string::String>,
    pub(crate) apply_immediately: ::std::option::Option<bool>,
    pub(crate) engine: ::std::option::Option<::std::string::String>,
    pub(crate) engine_version: ::std::option::Option<::std::string::String>,
    pub(crate) auto_minor_version_upgrade: ::std::option::Option<bool>,
    pub(crate) snapshot_retention_limit: ::std::option::Option<i32>,
    pub(crate) snapshot_window: ::std::option::Option<::std::string::String>,
    pub(crate) cache_node_type: ::std::option::Option<::std::string::String>,
    pub(crate) auth_token: ::std::option::Option<::std::string::String>,
    pub(crate) auth_token_update_strategy: ::std::option::Option<crate::types::AuthTokenUpdateStrategyType>,
    pub(crate) user_group_ids_to_add: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) user_group_ids_to_remove: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) remove_user_groups: ::std::option::Option<bool>,
    pub(crate) log_delivery_configurations: ::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>>,
    pub(crate) ip_discovery: ::std::option::Option<crate::types::IpDiscovery>,
    pub(crate) transit_encryption_enabled: ::std::option::Option<bool>,
    pub(crate) transit_encryption_mode: ::std::option::Option<crate::types::TransitEncryptionMode>,
    pub(crate) cluster_mode: ::std::option::Option<crate::types::ClusterMode>,
    pub(crate) durability: ::std::option::Option<crate::types::Durability>,
}
impl ModifyReplicationGroupInputBuilder {
    /// <p>The identifier of the replication group to modify.</p>
    /// This field is required.
    pub fn replication_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.replication_group_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the replication group to modify.</p>
    pub fn set_replication_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.replication_group_id = input;
        self
    }
    /// <p>The identifier of the replication group to modify.</p>
    pub fn get_replication_group_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.replication_group_id
    }
    /// <p>A description for the replication group. Maximum length is 255 characters.</p>
    pub fn replication_group_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.replication_group_description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description for the replication group. Maximum length is 255 characters.</p>
    pub fn set_replication_group_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.replication_group_description = input;
        self
    }
    /// <p>A description for the replication group. Maximum length is 255 characters.</p>
    pub fn get_replication_group_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.replication_group_description
    }
    /// <p>For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.</p>
    pub fn primary_cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.primary_cluster_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.</p>
    pub fn set_primary_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.primary_cluster_id = input;
        self
    }
    /// <p>For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified cluster in the specified replication group to the primary role. The nodes of all other clusters in the replication group are read replicas.</p>
    pub fn get_primary_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.primary_cluster_id
    }
    /// <p>The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Valkey or Redis OSS (cluster mode enabled) replication groups.</p>
    pub fn snapshotting_cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.snapshotting_cluster_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Valkey or Redis OSS (cluster mode enabled) replication groups.</p>
    pub fn set_snapshotting_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.snapshotting_cluster_id = input;
        self
    }
    /// <p>The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set for Valkey or Redis OSS (cluster mode enabled) replication groups.</p>
    pub fn get_snapshotting_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.snapshotting_cluster_id
    }
    /// <p>Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    pub fn automatic_failover_enabled(mut self, input: bool) -> Self {
        self.automatic_failover_enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    pub fn set_automatic_failover_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.automatic_failover_enabled = input;
        self
    }
    /// <p>Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    pub fn get_automatic_failover_enabled(&self) -> &::std::option::Option<bool> {
        &self.automatic_failover_enabled
    }
    /// <p>A flag to indicate MultiAZ is enabled.</p>
    pub fn multi_az_enabled(mut self, input: bool) -> Self {
        self.multi_az_enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>A flag to indicate MultiAZ is enabled.</p>
    pub fn set_multi_az_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.multi_az_enabled = input;
        self
    }
    /// <p>A flag to indicate MultiAZ is enabled.</p>
    pub fn get_multi_az_enabled(&self) -> &::std::option::Option<bool> {
        &self.multi_az_enabled
    }
    /// <p>Deprecated. This parameter is not used.</p>
    #[deprecated]
    pub fn node_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.node_group_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Deprecated. This parameter is not used.</p>
    #[deprecated]
    pub fn set_node_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.node_group_id = input;
        self
    }
    /// <p>Deprecated. This parameter is not used.</p>
    #[deprecated]
    pub fn get_node_group_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.node_group_id
    }
    /// Appends an item to `cache_security_group_names`.
    ///
    /// To override the contents of this collection use [`set_cache_security_group_names`](Self::set_cache_security_group_names).
    ///
    /// <p>A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.</p>
    /// <p>This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be <code>Default</code>.</p>
    pub fn cache_security_group_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.cache_security_group_names.unwrap_or_default();
        v.push(input.into());
        self.cache_security_group_names = ::std::option::Option::Some(v);
        self
    }
    /// <p>A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.</p>
    /// <p>This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be <code>Default</code>.</p>
    pub fn set_cache_security_group_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.cache_security_group_names = input;
        self
    }
    /// <p>A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.</p>
    /// <p>This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual Private Cloud (Amazon VPC).</p>
    /// <p>Constraints: Must contain no more than 255 alphanumeric characters. Must not be <code>Default</code>.</p>
    pub fn get_cache_security_group_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.cache_security_group_names
    }
    /// Appends an item to `security_group_ids`.
    ///
    /// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
    ///
    /// <p>Specifies the VPC Security Groups associated with the clusters in the replication group.</p>
    /// <p>This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).</p>
    pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.security_group_ids.unwrap_or_default();
        v.push(input.into());
        self.security_group_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>Specifies the VPC Security Groups associated with the clusters in the replication group.</p>
    /// <p>This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).</p>
    pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.security_group_ids = input;
        self
    }
    /// <p>Specifies the VPC Security Groups associated with the clusters in the replication group.</p>
    /// <p>This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private Cloud (Amazon VPC).</p>
    pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.security_group_ids
    }
    /// <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>
    /// <p>Valid values for <code>ddd</code> are:</p>
    /// <ul>
    /// <li>
    /// <p><code>sun</code></p></li>
    /// <li>
    /// <p><code>mon</code></p></li>
    /// <li>
    /// <p><code>tue</code></p></li>
    /// <li>
    /// <p><code>wed</code></p></li>
    /// <li>
    /// <p><code>thu</code></p></li>
    /// <li>
    /// <p><code>fri</code></p></li>
    /// <li>
    /// <p><code>sat</code></p></li>
    /// </ul>
    /// <p>Example: <code>sun:23:00-mon:01:30</code></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>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>
    /// <p>Valid values for <code>ddd</code> are:</p>
    /// <ul>
    /// <li>
    /// <p><code>sun</code></p></li>
    /// <li>
    /// <p><code>mon</code></p></li>
    /// <li>
    /// <p><code>tue</code></p></li>
    /// <li>
    /// <p><code>wed</code></p></li>
    /// <li>
    /// <p><code>thu</code></p></li>
    /// <li>
    /// <p><code>fri</code></p></li>
    /// <li>
    /// <p><code>sat</code></p></li>
    /// </ul>
    /// <p>Example: <code>sun:23:00-mon:01:30</code></p>
    pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.preferred_maintenance_window = input;
        self
    }
    /// <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>
    /// <p>Valid values for <code>ddd</code> are:</p>
    /// <ul>
    /// <li>
    /// <p><code>sun</code></p></li>
    /// <li>
    /// <p><code>mon</code></p></li>
    /// <li>
    /// <p><code>tue</code></p></li>
    /// <li>
    /// <p><code>wed</code></p></li>
    /// <li>
    /// <p><code>thu</code></p></li>
    /// <li>
    /// <p><code>fri</code></p></li>
    /// <li>
    /// <p><code>sat</code></p></li>
    /// </ul>
    /// <p>Example: <code>sun:23:00-mon:01:30</code></p>
    pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
        &self.preferred_maintenance_window
    }
    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
    /// <p>The Amazon SNS topic owner must be same as the replication group owner.</p>
    /// </note>
    pub fn notification_topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.notification_topic_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
    /// <p>The Amazon SNS topic owner must be same as the replication group owner.</p>
    /// </note>
    pub fn set_notification_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.notification_topic_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent.</p><note>
    /// <p>The Amazon SNS topic owner must be same as the replication group owner.</p>
    /// </note>
    pub fn get_notification_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.notification_topic_arn
    }
    /// <p>The name of the cache parameter group to apply to all of the clusters in this replication group. 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>
    pub fn cache_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cache_parameter_group_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the cache parameter group to apply to all of the clusters in this replication group. 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>
    pub fn set_cache_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cache_parameter_group_name = input;
        self
    }
    /// <p>The name of the cache parameter group to apply to all of the clusters in this replication group. 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>
    pub fn get_cache_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.cache_parameter_group_name
    }
    /// <p>The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is <code>active</code>.</p>
    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
    pub fn notification_topic_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.notification_topic_status = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is <code>active</code>.</p>
    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
    pub fn set_notification_topic_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.notification_topic_status = input;
        self
    }
    /// <p>The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is <code>active</code>.</p>
    /// <p>Valid values: <code>active</code> | <code>inactive</code></p>
    pub fn get_notification_topic_status(&self) -> &::std::option::Option<::std::string::String> {
        &self.notification_topic_status
    }
    /// <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 replication group.</p>
    /// <p>If <code>false</code>, changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    /// <p>Default: <code>false</code></p>
    pub fn apply_immediately(mut self, input: bool) -> Self {
        self.apply_immediately = ::std::option::Option::Some(input);
        self
    }
    /// <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 replication group.</p>
    /// <p>If <code>false</code>, changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    /// <p>Default: <code>false</code></p>
    pub fn set_apply_immediately(mut self, input: ::std::option::Option<bool>) -> Self {
        self.apply_immediately = input;
        self
    }
    /// <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 replication group.</p>
    /// <p>If <code>false</code>, changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.</p>
    /// <p>Valid values: <code>true</code> | <code>false</code></p>
    /// <p>Default: <code>false</code></p>
    pub fn get_apply_immediately(&self) -> &::std::option::Option<bool> {
        &self.apply_immediately
    }
    /// <p>Modifies the engine listed in a replication group message. The options are valkey, memcached or redis.</p>
    pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.engine = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Modifies the engine listed in a replication group message. The options are valkey, memcached or redis.</p>
    pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.engine = input;
        self
    }
    /// <p>Modifies the engine listed in a replication group message. The options are valkey, memcached or redis.</p>
    pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
        &self.engine
    }
    /// <p>The upgraded version of the cache engine to be run on the clusters in the replication group.</p>
    /// <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 replication group and create it anew with the earlier engine version.</p>
    pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.engine_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The upgraded version of the cache engine to be run on the clusters in the replication group.</p>
    /// <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 replication group and create it anew with the earlier engine version.</p>
    pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.engine_version = input;
        self
    }
    /// <p>The upgraded version of the cache engine to be run on the clusters in the replication group.</p>
    /// <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 replication group and create it anew with the earlier engine version.</p>
    pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.engine_version
    }
    /// <p>&nbsp;If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
    pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
        self.auto_minor_version_upgrade = ::std::option::Option::Some(input);
        self
    }
    /// <p>&nbsp;If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
    pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
        self.auto_minor_version_upgrade = input;
        self
    }
    /// <p>&nbsp;If you are running Valkey or Redis OSS engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.&nbsp;</p>
    pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
        &self.auto_minor_version_upgrade
    }
    /// <p>The number of days for which ElastiCache retains automatic node group (shard) 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>
    /// <p><b>Important</b> If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.</p>
    pub fn snapshot_retention_limit(mut self, input: i32) -> Self {
        self.snapshot_retention_limit = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of days for which ElastiCache retains automatic node group (shard) 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>
    /// <p><b>Important</b> If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.</p>
    pub fn set_snapshot_retention_limit(mut self, input: ::std::option::Option<i32>) -> Self {
        self.snapshot_retention_limit = input;
        self
    }
    /// <p>The number of days for which ElastiCache retains automatic node group (shard) 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>
    /// <p><b>Important</b> If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.</p>
    pub fn get_snapshot_retention_limit(&self) -> &::std::option::Option<i32> {
        &self.snapshot_retention_limit
    }
    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by <code>SnapshottingClusterId</code>.</p>
    /// <p>Example: <code>05:00-09:00</code></p>
    /// <p>If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.</p>
    pub fn snapshot_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.snapshot_window = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by <code>SnapshottingClusterId</code>.</p>
    /// <p>Example: <code>05:00-09:00</code></p>
    /// <p>If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.</p>
    pub fn set_snapshot_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.snapshot_window = input;
        self
    }
    /// <p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by <code>SnapshottingClusterId</code>.</p>
    /// <p>Example: <code>05:00-09:00</code></p>
    /// <p>If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.</p>
    pub fn get_snapshot_window(&self) -> &::std::option::Option<::std::string::String> {
        &self.snapshot_window
    }
    /// <p>A valid cache node type that you want to scale this replication group to.</p>
    pub fn cache_node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cache_node_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A valid cache node type that you want to scale this replication group to.</p>
    pub fn set_cache_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cache_node_type = input;
        self
    }
    /// <p>A valid cache node type that you want to scale this replication group to.</p>
    pub fn get_cache_node_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.cache_node_type
    }
    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update-strategy </code> parameter. Password constraints:</p>
    /// <ul>
    /// <li>
    /// <p>Must be only printable ASCII characters</p></li>
    /// <li>
    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
    /// <li>
    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
    /// </ul>
    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
    pub fn auth_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.auth_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update-strategy </code> parameter. Password constraints:</p>
    /// <ul>
    /// <li>
    /// <p>Must be only printable ASCII characters</p></li>
    /// <li>
    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
    /// <li>
    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
    /// </ul>
    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
    pub fn set_auth_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.auth_token = input;
        self
    }
    /// <p>Reserved parameter. The password used to access a password protected server. This parameter must be specified with the <code>auth-token-update-strategy </code> parameter. Password constraints:</p>
    /// <ul>
    /// <li>
    /// <p>Must be only printable ASCII characters</p></li>
    /// <li>
    /// <p>Must be at least 16 characters and no more than 128 characters in length</p></li>
    /// <li>
    /// <p>Cannot contain any of the following characters: '/', '"', or '@', '%'</p></li>
    /// </ul>
    /// <p>For more information, see AUTH password at <a href="http://redis.io/commands/AUTH">AUTH</a>.</p>
    pub fn get_auth_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.auth_token
    }
    /// <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>
    /// <ul>
    /// <li>
    /// <p>ROTATE - default, if no update strategy is provided</p></li>
    /// <li>
    /// <p>SET - allowed only after ROTATE</p></li>
    /// <li>
    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
    /// </ul>
    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
    pub fn auth_token_update_strategy(mut self, input: crate::types::AuthTokenUpdateStrategyType) -> Self {
        self.auth_token_update_strategy = ::std::option::Option::Some(input);
        self
    }
    /// <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>
    /// <ul>
    /// <li>
    /// <p>ROTATE - default, if no update strategy is provided</p></li>
    /// <li>
    /// <p>SET - allowed only after ROTATE</p></li>
    /// <li>
    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
    /// </ul>
    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
    pub fn set_auth_token_update_strategy(mut self, input: ::std::option::Option<crate::types::AuthTokenUpdateStrategyType>) -> Self {
        self.auth_token_update_strategy = input;
        self
    }
    /// <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>
    /// <ul>
    /// <li>
    /// <p>ROTATE - default, if no update strategy is provided</p></li>
    /// <li>
    /// <p>SET - allowed only after ROTATE</p></li>
    /// <li>
    /// <p>DELETE - allowed only when transitioning to RBAC</p></li>
    /// </ul>
    /// <p>For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/auth.html">Authenticating Users with AUTH</a></p>
    pub fn get_auth_token_update_strategy(&self) -> &::std::option::Option<crate::types::AuthTokenUpdateStrategyType> {
        &self.auth_token_update_strategy
    }
    /// Appends an item to `user_group_ids_to_add`.
    ///
    /// To override the contents of this collection use [`set_user_group_ids_to_add`](Self::set_user_group_ids_to_add).
    ///
    /// <p>The ID of the user group you are associating with the replication group.</p>
    pub fn user_group_ids_to_add(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.user_group_ids_to_add.unwrap_or_default();
        v.push(input.into());
        self.user_group_ids_to_add = ::std::option::Option::Some(v);
        self
    }
    /// <p>The ID of the user group you are associating with the replication group.</p>
    pub fn set_user_group_ids_to_add(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.user_group_ids_to_add = input;
        self
    }
    /// <p>The ID of the user group you are associating with the replication group.</p>
    pub fn get_user_group_ids_to_add(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.user_group_ids_to_add
    }
    /// Appends an item to `user_group_ids_to_remove`.
    ///
    /// To override the contents of this collection use [`set_user_group_ids_to_remove`](Self::set_user_group_ids_to_remove).
    ///
    /// <p>The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can access the replication group.</p>
    pub fn user_group_ids_to_remove(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.user_group_ids_to_remove.unwrap_or_default();
        v.push(input.into());
        self.user_group_ids_to_remove = ::std::option::Option::Some(v);
        self
    }
    /// <p>The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can access the replication group.</p>
    pub fn set_user_group_ids_to_remove(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.user_group_ids_to_remove = input;
        self
    }
    /// <p>The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can access the replication group.</p>
    pub fn get_user_group_ids_to_remove(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.user_group_ids_to_remove
    }
    /// <p>Removes the user group associated with this replication group.</p>
    pub fn remove_user_groups(mut self, input: bool) -> Self {
        self.remove_user_groups = ::std::option::Option::Some(input);
        self
    }
    /// <p>Removes the user group associated with this replication group.</p>
    pub fn set_remove_user_groups(mut self, input: ::std::option::Option<bool>) -> Self {
        self.remove_user_groups = input;
        self
    }
    /// <p>Removes the user group associated with this replication group.</p>
    pub fn get_remove_user_groups(&self) -> &::std::option::Option<bool> {
        &self.remove_user_groups
    }
    /// Appends an item to `log_delivery_configurations`.
    ///
    /// To override the contents of this collection use [`set_log_delivery_configurations`](Self::set_log_delivery_configurations).
    ///
    /// <p>Specifies the destination, format and type of the logs.</p>
    pub fn log_delivery_configurations(mut self, input: crate::types::LogDeliveryConfigurationRequest) -> Self {
        let mut v = self.log_delivery_configurations.unwrap_or_default();
        v.push(input);
        self.log_delivery_configurations = ::std::option::Option::Some(v);
        self
    }
    /// <p>Specifies the destination, format and type of the logs.</p>
    pub fn set_log_delivery_configurations(
        mut self,
        input: ::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>>,
    ) -> Self {
        self.log_delivery_configurations = input;
        self
    }
    /// <p>Specifies the destination, format and type of the logs.</p>
    pub fn get_log_delivery_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>> {
        &self.log_delivery_configurations
    }
    /// <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 and 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>
    pub fn ip_discovery(mut self, input: crate::types::IpDiscovery) -> Self {
        self.ip_discovery = ::std::option::Option::Some(input);
        self
    }
    /// <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 and 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>
    pub fn set_ip_discovery(mut self, input: ::std::option::Option<crate::types::IpDiscovery>) -> Self {
        self.ip_discovery = input;
        self
    }
    /// <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 and 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>
    pub fn get_ip_discovery(&self) -> &::std::option::Option<crate::types::IpDiscovery> {
        &self.ip_discovery
    }
    /// <p>A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an existing cluster, you must also set <code>TransitEncryptionMode</code> to <code>preferred</code>.</p>
    pub fn transit_encryption_enabled(mut self, input: bool) -> Self {
        self.transit_encryption_enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an existing cluster, you must also set <code>TransitEncryptionMode</code> to <code>preferred</code>.</p>
    pub fn set_transit_encryption_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.transit_encryption_enabled = input;
        self
    }
    /// <p>A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an existing cluster, you must also set <code>TransitEncryptionMode</code> to <code>preferred</code>.</p>
    pub fn get_transit_encryption_enabled(&self) -> &::std::option::Option<bool> {
        &self.transit_encryption_enabled
    }
    /// <p>A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.</p>
    /// <p>You must set <code>TransitEncryptionEnabled</code> to <code>true</code>, for your existing cluster, and set <code>TransitEncryptionMode</code> to <code>preferred</code> in the same request to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can set the value to <code>required</code> to allow encrypted connections only.</p>
    /// <p>Setting <code>TransitEncryptionMode</code> to <code>required</code> is a two-step process that requires you to first set the <code>TransitEncryptionMode</code> to <code>preferred</code>, after that you can set <code>TransitEncryptionMode</code> to <code>required</code>.</p>
    pub fn transit_encryption_mode(mut self, input: crate::types::TransitEncryptionMode) -> Self {
        self.transit_encryption_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.</p>
    /// <p>You must set <code>TransitEncryptionEnabled</code> to <code>true</code>, for your existing cluster, and set <code>TransitEncryptionMode</code> to <code>preferred</code> in the same request to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can set the value to <code>required</code> to allow encrypted connections only.</p>
    /// <p>Setting <code>TransitEncryptionMode</code> to <code>required</code> is a two-step process that requires you to first set the <code>TransitEncryptionMode</code> to <code>preferred</code>, after that you can set <code>TransitEncryptionMode</code> to <code>required</code>.</p>
    pub fn set_transit_encryption_mode(mut self, input: ::std::option::Option<crate::types::TransitEncryptionMode>) -> Self {
        self.transit_encryption_mode = input;
        self
    }
    /// <p>A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.</p>
    /// <p>You must set <code>TransitEncryptionEnabled</code> to <code>true</code>, for your existing cluster, and set <code>TransitEncryptionMode</code> to <code>preferred</code> in the same request to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can set the value to <code>required</code> to allow encrypted connections only.</p>
    /// <p>Setting <code>TransitEncryptionMode</code> to <code>required</code> is a two-step process that requires you to first set the <code>TransitEncryptionMode</code> to <code>preferred</code>, after that you can set <code>TransitEncryptionMode</code> to <code>required</code>.</p>
    pub fn get_transit_encryption_mode(&self) -> &::std::option::Option<crate::types::TransitEncryptionMode> {
        &self.transit_encryption_mode
    }
    /// <p>Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.</p>
    pub fn cluster_mode(mut self, input: crate::types::ClusterMode) -> Self {
        self.cluster_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.</p>
    pub fn set_cluster_mode(mut self, input: ::std::option::Option<crate::types::ClusterMode>) -> Self {
        self.cluster_mode = input;
        self
    }
    /// <p>Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.</p>
    pub fn get_cluster_mode(&self) -> &::std::option::Option<crate::types::ClusterMode> {
        &self.cluster_mode
    }
    /// <p>Specifies the durability setting for the replication group. Use this parameter to change the durability mode of an existing replication group, for example from <code>sync</code> to <code>async</code> or vice versa. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
    pub fn durability(mut self, input: crate::types::Durability) -> Self {
        self.durability = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the durability setting for the replication group. Use this parameter to change the durability mode of an existing replication group, for example from <code>sync</code> to <code>async</code> or vice versa. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
    pub fn set_durability(mut self, input: ::std::option::Option<crate::types::Durability>) -> Self {
        self.durability = input;
        self
    }
    /// <p>Specifies the durability setting for the replication group. Use this parameter to change the durability mode of an existing replication group, for example from <code>sync</code> to <code>async</code> or vice versa. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
    pub fn get_durability(&self) -> &::std::option::Option<crate::types::Durability> {
        &self.durability
    }
    /// Consumes the builder and constructs a [`ModifyReplicationGroupInput`](crate::operation::modify_replication_group::ModifyReplicationGroupInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::modify_replication_group::ModifyReplicationGroupInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::modify_replication_group::ModifyReplicationGroupInput {
            replication_group_id: self.replication_group_id,
            replication_group_description: self.replication_group_description,
            primary_cluster_id: self.primary_cluster_id,
            snapshotting_cluster_id: self.snapshotting_cluster_id,
            automatic_failover_enabled: self.automatic_failover_enabled,
            multi_az_enabled: self.multi_az_enabled,
            node_group_id: self.node_group_id,
            cache_security_group_names: self.cache_security_group_names,
            security_group_ids: self.security_group_ids,
            preferred_maintenance_window: self.preferred_maintenance_window,
            notification_topic_arn: self.notification_topic_arn,
            cache_parameter_group_name: self.cache_parameter_group_name,
            notification_topic_status: self.notification_topic_status,
            apply_immediately: self.apply_immediately,
            engine: self.engine,
            engine_version: self.engine_version,
            auto_minor_version_upgrade: self.auto_minor_version_upgrade,
            snapshot_retention_limit: self.snapshot_retention_limit,
            snapshot_window: self.snapshot_window,
            cache_node_type: self.cache_node_type,
            auth_token: self.auth_token,
            auth_token_update_strategy: self.auth_token_update_strategy,
            user_group_ids_to_add: self.user_group_ids_to_add,
            user_group_ids_to_remove: self.user_group_ids_to_remove,
            remove_user_groups: self.remove_user_groups,
            log_delivery_configurations: self.log_delivery_configurations,
            ip_discovery: self.ip_discovery,
            transit_encryption_enabled: self.transit_encryption_enabled,
            transit_encryption_mode: self.transit_encryption_mode,
            cluster_mode: self.cluster_mode,
            durability: self.durability,
        })
    }
}