forked from aws/aws-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModifyClusterRequest.java
More file actions
1226 lines (1150 loc) · 67.3 KB
/
ModifyClusterRequest.java
File metadata and controls
1226 lines (1150 loc) · 67.3 KB
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
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.redshift.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
* Container for the parameters to the {@link com.amazonaws.services.redshift.AmazonRedshift#modifyCluster(ModifyClusterRequest) ModifyCluster operation}.
* <p>
* Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change
* the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However,
* modifying parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html"> Amazon Redshift Clusters </a> in the <i>Amazon Redshift Management
* Guide</i>
* </p>
* <p>
* You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of
* nodes and the node type even if one of the parameters does not change. If you specify the same number of nodes and node type that are already
* configured for the cluster, an error is returned.
* </p>
*
* @see com.amazonaws.services.redshift.AmazonRedshift#modifyCluster(ModifyClusterRequest)
*/
public class ModifyClusterRequest extends AmazonWebServiceRequest implements Serializable {
/**
* The unique identifier of the cluster to be modified. <p>Example:
* <code>examplecluster</code>
*/
private String clusterIdentifier;
/**
* The new cluster type. <p> When you submit your cluster resize request,
* your existing cluster goes into a read-only mode. After Amazon
* Redshift provisions a new cluster based on your resize requirements,
* there will be outage for a period while the old cluster is deleted and
* your connection is switched to the new cluster. You can use
* <a>DescribeResize</a> to track the progress of the resize request.
* <p>Valid Values: <code> multi-node | single-node </code>
*/
private String clusterType;
/**
* The new node type of the cluster. If you specify a new node type, you
* must also specify the number of nodes parameter also. <p> When you
* submit your request to resize a cluster, Amazon Redshift sets access
* permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use the <a>DescribeResize</a> to track the progress
* of the resize request. <p>Valid Values: <code> dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>
*/
private String nodeType;
/**
* The new number of nodes of the cluster. If you specify a new number of
* nodes, you must also specify the node type parameter also. <p> When
* you submit your request to resize a cluster, Amazon Redshift sets
* access permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use <a>DescribeResize</a> to track the progress of
* the resize request. <p>Valid Values: Integer greater than
* <code>0</code>.
*/
private Integer numberOfNodes;
/**
* A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
*/
private com.amazonaws.internal.ListWithAutoConstructFlag<String> clusterSecurityGroups;
/**
* A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag<String> vpcSecurityGroupIds;
/**
* The new password for the cluster master user. This change is
* asynchronously applied as soon as possible. Between the time of the
* request and the completion of the request, the
* <code>MasterUserPassword</code> element exists in the
* <code>PendingModifiedValues</code> element of the operation response.
* <note> Operations never return the password, so this operation
* provides a way to regain access to the master user account for a
* cluster if the password is lost. </note> <p>Default: Uses existing
* setting. <p> Constraints: <ul> <li>Must be between 8 and 64 characters
* in length.</li> <li>Must contain at least one uppercase letter.</li>
* <li>Must contain at least one lowercase letter.</li> <li>Must contain
* one number.</li> <li>Can be any printable ASCII character (ASCII code
* 33 to 126) except ' (single quote), " (double quote), \, /, @, or
* space.</li> </ul>
*/
private String masterUserPassword;
/**
* The name of the cluster parameter group to apply to this cluster. This
* change is applied only after the cluster is rebooted. To reboot a
* cluster use <a>RebootCluster</a>. <p>Default: Uses existing setting.
* <p>Constraints: The cluster parameter group must be in the same
* parameter group family that matches the cluster version.
*/
private String clusterParameterGroupName;
/**
* The number of days that automated snapshots are retained. If the value
* is 0, automated snapshots are disabled. Even if automated snapshots
* are disabled, you can still create manual snapshots when you want with
* <a>CreateClusterSnapshot</a>. <p>If you decrease the automated
* snapshot retention period from its current value, existing automated
* snapshots which fall outside of the new retention period will be
* immediately deleted. <p>Default: Uses existing setting.
* <p>Constraints: Must be a value from 0 to 35.
*/
private Integer automatedSnapshotRetentionPeriod;
/**
* The weekly time range (in UTC) during which system maintenance can
* occur, if necessary. If system maintenance is necessary during the
* window, it may result in an outage. <p> This maintenance window change
* is made immediately. If the new maintenance window indicates the
* current time, there must be at least 120 minutes between the current
* time and end of the window in order to ensure that pending changes are
* applied. <p>Default: Uses existing setting. <p>Format:
* ddd:hh24:mi-ddd:hh24:mi, for example <code>wed:07:30-wed:08:00</code>.
* <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun <p>Constraints:
* Must be at least 30 minutes.
*/
private String preferredMaintenanceWindow;
/**
* The new version number of the Amazon Redshift engine to upgrade to.
* <p> For major version upgrades, if a non-default cluster parameter
* group is currently in use, a new cluster parameter group in the
* cluster parameter group family for the new version must be specified.
* The new cluster parameter group can be the default for that cluster
* parameter group family. For more information about managing parameter
* groups, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html">Amazon
* Redshift Parameter Groups</a> in the <i>Amazon Redshift Management
* Guide</i>. <p>Example: <code>1.0</code>
*/
private String clusterVersion;
/**
* If <code>true</code>, upgrades will be applied automatically to the
* cluster during the maintenance window. <p>Default: <code>false</code>
*/
private Boolean allowVersionUpgrade;
/**
* The unique identifier of the cluster to be modified. <p>Example:
* <code>examplecluster</code>
*
* @return The unique identifier of the cluster to be modified. <p>Example:
* <code>examplecluster</code>
*/
public String getClusterIdentifier() {
return clusterIdentifier;
}
/**
* The unique identifier of the cluster to be modified. <p>Example:
* <code>examplecluster</code>
*
* @param clusterIdentifier The unique identifier of the cluster to be modified. <p>Example:
* <code>examplecluster</code>
*/
public void setClusterIdentifier(String clusterIdentifier) {
this.clusterIdentifier = clusterIdentifier;
}
/**
* The unique identifier of the cluster to be modified. <p>Example:
* <code>examplecluster</code>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterIdentifier The unique identifier of the cluster to be modified. <p>Example:
* <code>examplecluster</code>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withClusterIdentifier(String clusterIdentifier) {
this.clusterIdentifier = clusterIdentifier;
return this;
}
/**
* The new cluster type. <p> When you submit your cluster resize request,
* your existing cluster goes into a read-only mode. After Amazon
* Redshift provisions a new cluster based on your resize requirements,
* there will be outage for a period while the old cluster is deleted and
* your connection is switched to the new cluster. You can use
* <a>DescribeResize</a> to track the progress of the resize request.
* <p>Valid Values: <code> multi-node | single-node </code>
*
* @return The new cluster type. <p> When you submit your cluster resize request,
* your existing cluster goes into a read-only mode. After Amazon
* Redshift provisions a new cluster based on your resize requirements,
* there will be outage for a period while the old cluster is deleted and
* your connection is switched to the new cluster. You can use
* <a>DescribeResize</a> to track the progress of the resize request.
* <p>Valid Values: <code> multi-node | single-node </code>
*/
public String getClusterType() {
return clusterType;
}
/**
* The new cluster type. <p> When you submit your cluster resize request,
* your existing cluster goes into a read-only mode. After Amazon
* Redshift provisions a new cluster based on your resize requirements,
* there will be outage for a period while the old cluster is deleted and
* your connection is switched to the new cluster. You can use
* <a>DescribeResize</a> to track the progress of the resize request.
* <p>Valid Values: <code> multi-node | single-node </code>
*
* @param clusterType The new cluster type. <p> When you submit your cluster resize request,
* your existing cluster goes into a read-only mode. After Amazon
* Redshift provisions a new cluster based on your resize requirements,
* there will be outage for a period while the old cluster is deleted and
* your connection is switched to the new cluster. You can use
* <a>DescribeResize</a> to track the progress of the resize request.
* <p>Valid Values: <code> multi-node | single-node </code>
*/
public void setClusterType(String clusterType) {
this.clusterType = clusterType;
}
/**
* The new cluster type. <p> When you submit your cluster resize request,
* your existing cluster goes into a read-only mode. After Amazon
* Redshift provisions a new cluster based on your resize requirements,
* there will be outage for a period while the old cluster is deleted and
* your connection is switched to the new cluster. You can use
* <a>DescribeResize</a> to track the progress of the resize request.
* <p>Valid Values: <code> multi-node | single-node </code>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterType The new cluster type. <p> When you submit your cluster resize request,
* your existing cluster goes into a read-only mode. After Amazon
* Redshift provisions a new cluster based on your resize requirements,
* there will be outage for a period while the old cluster is deleted and
* your connection is switched to the new cluster. You can use
* <a>DescribeResize</a> to track the progress of the resize request.
* <p>Valid Values: <code> multi-node | single-node </code>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withClusterType(String clusterType) {
this.clusterType = clusterType;
return this;
}
/**
* The new node type of the cluster. If you specify a new node type, you
* must also specify the number of nodes parameter also. <p> When you
* submit your request to resize a cluster, Amazon Redshift sets access
* permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use the <a>DescribeResize</a> to track the progress
* of the resize request. <p>Valid Values: <code> dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>
*
* @return The new node type of the cluster. If you specify a new node type, you
* must also specify the number of nodes parameter also. <p> When you
* submit your request to resize a cluster, Amazon Redshift sets access
* permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use the <a>DescribeResize</a> to track the progress
* of the resize request. <p>Valid Values: <code> dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>
*/
public String getNodeType() {
return nodeType;
}
/**
* The new node type of the cluster. If you specify a new node type, you
* must also specify the number of nodes parameter also. <p> When you
* submit your request to resize a cluster, Amazon Redshift sets access
* permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use the <a>DescribeResize</a> to track the progress
* of the resize request. <p>Valid Values: <code> dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>
*
* @param nodeType The new node type of the cluster. If you specify a new node type, you
* must also specify the number of nodes parameter also. <p> When you
* submit your request to resize a cluster, Amazon Redshift sets access
* permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use the <a>DescribeResize</a> to track the progress
* of the resize request. <p>Valid Values: <code> dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>
*/
public void setNodeType(String nodeType) {
this.nodeType = nodeType;
}
/**
* The new node type of the cluster. If you specify a new node type, you
* must also specify the number of nodes parameter also. <p> When you
* submit your request to resize a cluster, Amazon Redshift sets access
* permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use the <a>DescribeResize</a> to track the progress
* of the resize request. <p>Valid Values: <code> dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param nodeType The new node type of the cluster. If you specify a new node type, you
* must also specify the number of nodes parameter also. <p> When you
* submit your request to resize a cluster, Amazon Redshift sets access
* permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use the <a>DescribeResize</a> to track the progress
* of the resize request. <p>Valid Values: <code> dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withNodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* The new number of nodes of the cluster. If you specify a new number of
* nodes, you must also specify the node type parameter also. <p> When
* you submit your request to resize a cluster, Amazon Redshift sets
* access permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use <a>DescribeResize</a> to track the progress of
* the resize request. <p>Valid Values: Integer greater than
* <code>0</code>.
*
* @return The new number of nodes of the cluster. If you specify a new number of
* nodes, you must also specify the node type parameter also. <p> When
* you submit your request to resize a cluster, Amazon Redshift sets
* access permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use <a>DescribeResize</a> to track the progress of
* the resize request. <p>Valid Values: Integer greater than
* <code>0</code>.
*/
public Integer getNumberOfNodes() {
return numberOfNodes;
}
/**
* The new number of nodes of the cluster. If you specify a new number of
* nodes, you must also specify the node type parameter also. <p> When
* you submit your request to resize a cluster, Amazon Redshift sets
* access permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use <a>DescribeResize</a> to track the progress of
* the resize request. <p>Valid Values: Integer greater than
* <code>0</code>.
*
* @param numberOfNodes The new number of nodes of the cluster. If you specify a new number of
* nodes, you must also specify the node type parameter also. <p> When
* you submit your request to resize a cluster, Amazon Redshift sets
* access permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use <a>DescribeResize</a> to track the progress of
* the resize request. <p>Valid Values: Integer greater than
* <code>0</code>.
*/
public void setNumberOfNodes(Integer numberOfNodes) {
this.numberOfNodes = numberOfNodes;
}
/**
* The new number of nodes of the cluster. If you specify a new number of
* nodes, you must also specify the node type parameter also. <p> When
* you submit your request to resize a cluster, Amazon Redshift sets
* access permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use <a>DescribeResize</a> to track the progress of
* the resize request. <p>Valid Values: Integer greater than
* <code>0</code>.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param numberOfNodes The new number of nodes of the cluster. If you specify a new number of
* nodes, you must also specify the node type parameter also. <p> When
* you submit your request to resize a cluster, Amazon Redshift sets
* access permissions for the cluster to read-only. After Amazon Redshift
* provisions a new cluster according to your resize requirements, there
* will be a temporary outage while the old cluster is deleted and your
* connection is switched to the new cluster. When the new connection is
* complete, the original access permissions for the cluster are
* restored. You can use <a>DescribeResize</a> to track the progress of
* the resize request. <p>Valid Values: Integer greater than
* <code>0</code>.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withNumberOfNodes(Integer numberOfNodes) {
this.numberOfNodes = numberOfNodes;
return this;
}
/**
* A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
*
* @return A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
*/
public java.util.List<String> getClusterSecurityGroups() {
if (clusterSecurityGroups == null) {
clusterSecurityGroups = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
clusterSecurityGroups.setAutoConstruct(true);
}
return clusterSecurityGroups;
}
/**
* A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
*
* @param clusterSecurityGroups A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
*/
public void setClusterSecurityGroups(java.util.Collection<String> clusterSecurityGroups) {
if (clusterSecurityGroups == null) {
this.clusterSecurityGroups = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag<String> clusterSecurityGroupsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(clusterSecurityGroups.size());
clusterSecurityGroupsCopy.addAll(clusterSecurityGroups);
this.clusterSecurityGroups = clusterSecurityGroupsCopy;
}
/**
* A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterSecurityGroups A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withClusterSecurityGroups(String... clusterSecurityGroups) {
if (getClusterSecurityGroups() == null) setClusterSecurityGroups(new java.util.ArrayList<String>(clusterSecurityGroups.length));
for (String value : clusterSecurityGroups) {
getClusterSecurityGroups().add(value);
}
return this;
}
/**
* A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterSecurityGroups A list of cluster security groups to be authorized on this cluster.
* This change is asynchronously applied as soon as possible. <p>Security
* groups currently associated with the cluster and not in the list of
* groups to apply, will be revoked from the cluster. <p>Constraints:
* <ul> <li>Must be 1 to 255 alphanumeric characters or hyphens</li>
* <li>First character must be a letter</li> <li>Cannot end with a hyphen
* or contain two consecutive hyphens</li> </ul>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withClusterSecurityGroups(java.util.Collection<String> clusterSecurityGroups) {
if (clusterSecurityGroups == null) {
this.clusterSecurityGroups = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag<String> clusterSecurityGroupsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(clusterSecurityGroups.size());
clusterSecurityGroupsCopy.addAll(clusterSecurityGroups);
this.clusterSecurityGroups = clusterSecurityGroupsCopy;
}
return this;
}
/**
* A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
*
* @return A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
*/
public java.util.List<String> getVpcSecurityGroupIds() {
if (vpcSecurityGroupIds == null) {
vpcSecurityGroupIds = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
vpcSecurityGroupIds.setAutoConstruct(true);
}
return vpcSecurityGroupIds;
}
/**
* A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
*
* @param vpcSecurityGroupIds A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
*/
public void setVpcSecurityGroupIds(java.util.Collection<String> vpcSecurityGroupIds) {
if (vpcSecurityGroupIds == null) {
this.vpcSecurityGroupIds = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag<String> vpcSecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(vpcSecurityGroupIds.size());
vpcSecurityGroupIdsCopy.addAll(vpcSecurityGroupIds);
this.vpcSecurityGroupIds = vpcSecurityGroupIdsCopy;
}
/**
* A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param vpcSecurityGroupIds A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) {
if (getVpcSecurityGroupIds() == null) setVpcSecurityGroupIds(new java.util.ArrayList<String>(vpcSecurityGroupIds.length));
for (String value : vpcSecurityGroupIds) {
getVpcSecurityGroupIds().add(value);
}
return this;
}
/**
* A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param vpcSecurityGroupIds A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withVpcSecurityGroupIds(java.util.Collection<String> vpcSecurityGroupIds) {
if (vpcSecurityGroupIds == null) {
this.vpcSecurityGroupIds = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag<String> vpcSecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(vpcSecurityGroupIds.size());
vpcSecurityGroupIdsCopy.addAll(vpcSecurityGroupIds);
this.vpcSecurityGroupIds = vpcSecurityGroupIdsCopy;
}
return this;
}
/**
* The new password for the cluster master user. This change is
* asynchronously applied as soon as possible. Between the time of the
* request and the completion of the request, the
* <code>MasterUserPassword</code> element exists in the
* <code>PendingModifiedValues</code> element of the operation response.
* <note> Operations never return the password, so this operation
* provides a way to regain access to the master user account for a
* cluster if the password is lost. </note> <p>Default: Uses existing
* setting. <p> Constraints: <ul> <li>Must be between 8 and 64 characters
* in length.</li> <li>Must contain at least one uppercase letter.</li>
* <li>Must contain at least one lowercase letter.</li> <li>Must contain
* one number.</li> <li>Can be any printable ASCII character (ASCII code
* 33 to 126) except ' (single quote), " (double quote), \, /, @, or
* space.</li> </ul>
*
* @return The new password for the cluster master user. This change is
* asynchronously applied as soon as possible. Between the time of the
* request and the completion of the request, the
* <code>MasterUserPassword</code> element exists in the
* <code>PendingModifiedValues</code> element of the operation response.
* <note> Operations never return the password, so this operation
* provides a way to regain access to the master user account for a
* cluster if the password is lost. </note> <p>Default: Uses existing
* setting. <p> Constraints: <ul> <li>Must be between 8 and 64 characters
* in length.</li> <li>Must contain at least one uppercase letter.</li>
* <li>Must contain at least one lowercase letter.</li> <li>Must contain
* one number.</li> <li>Can be any printable ASCII character (ASCII code
* 33 to 126) except ' (single quote), " (double quote), \, /, @, or
* space.</li> </ul>
*/
public String getMasterUserPassword() {
return masterUserPassword;
}
/**
* The new password for the cluster master user. This change is
* asynchronously applied as soon as possible. Between the time of the
* request and the completion of the request, the
* <code>MasterUserPassword</code> element exists in the
* <code>PendingModifiedValues</code> element of the operation response.
* <note> Operations never return the password, so this operation
* provides a way to regain access to the master user account for a
* cluster if the password is lost. </note> <p>Default: Uses existing
* setting. <p> Constraints: <ul> <li>Must be between 8 and 64 characters
* in length.</li> <li>Must contain at least one uppercase letter.</li>
* <li>Must contain at least one lowercase letter.</li> <li>Must contain
* one number.</li> <li>Can be any printable ASCII character (ASCII code
* 33 to 126) except ' (single quote), " (double quote), \, /, @, or
* space.</li> </ul>
*
* @param masterUserPassword The new password for the cluster master user. This change is
* asynchronously applied as soon as possible. Between the time of the
* request and the completion of the request, the
* <code>MasterUserPassword</code> element exists in the
* <code>PendingModifiedValues</code> element of the operation response.
* <note> Operations never return the password, so this operation
* provides a way to regain access to the master user account for a
* cluster if the password is lost. </note> <p>Default: Uses existing
* setting. <p> Constraints: <ul> <li>Must be between 8 and 64 characters
* in length.</li> <li>Must contain at least one uppercase letter.</li>
* <li>Must contain at least one lowercase letter.</li> <li>Must contain
* one number.</li> <li>Can be any printable ASCII character (ASCII code
* 33 to 126) except ' (single quote), " (double quote), \, /, @, or
* space.</li> </ul>
*/
public void setMasterUserPassword(String masterUserPassword) {
this.masterUserPassword = masterUserPassword;
}
/**
* The new password for the cluster master user. This change is
* asynchronously applied as soon as possible. Between the time of the
* request and the completion of the request, the
* <code>MasterUserPassword</code> element exists in the
* <code>PendingModifiedValues</code> element of the operation response.
* <note> Operations never return the password, so this operation
* provides a way to regain access to the master user account for a
* cluster if the password is lost. </note> <p>Default: Uses existing
* setting. <p> Constraints: <ul> <li>Must be between 8 and 64 characters
* in length.</li> <li>Must contain at least one uppercase letter.</li>
* <li>Must contain at least one lowercase letter.</li> <li>Must contain
* one number.</li> <li>Can be any printable ASCII character (ASCII code
* 33 to 126) except ' (single quote), " (double quote), \, /, @, or
* space.</li> </ul>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param masterUserPassword The new password for the cluster master user. This change is
* asynchronously applied as soon as possible. Between the time of the
* request and the completion of the request, the
* <code>MasterUserPassword</code> element exists in the
* <code>PendingModifiedValues</code> element of the operation response.
* <note> Operations never return the password, so this operation
* provides a way to regain access to the master user account for a
* cluster if the password is lost. </note> <p>Default: Uses existing
* setting. <p> Constraints: <ul> <li>Must be between 8 and 64 characters
* in length.</li> <li>Must contain at least one uppercase letter.</li>
* <li>Must contain at least one lowercase letter.</li> <li>Must contain
* one number.</li> <li>Can be any printable ASCII character (ASCII code
* 33 to 126) except ' (single quote), " (double quote), \, /, @, or
* space.</li> </ul>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withMasterUserPassword(String masterUserPassword) {
this.masterUserPassword = masterUserPassword;
return this;
}
/**
* The name of the cluster parameter group to apply to this cluster. This
* change is applied only after the cluster is rebooted. To reboot a
* cluster use <a>RebootCluster</a>. <p>Default: Uses existing setting.
* <p>Constraints: The cluster parameter group must be in the same
* parameter group family that matches the cluster version.
*
* @return The name of the cluster parameter group to apply to this cluster. This
* change is applied only after the cluster is rebooted. To reboot a
* cluster use <a>RebootCluster</a>. <p>Default: Uses existing setting.
* <p>Constraints: The cluster parameter group must be in the same
* parameter group family that matches the cluster version.
*/
public String getClusterParameterGroupName() {
return clusterParameterGroupName;
}
/**
* The name of the cluster parameter group to apply to this cluster. This
* change is applied only after the cluster is rebooted. To reboot a
* cluster use <a>RebootCluster</a>. <p>Default: Uses existing setting.
* <p>Constraints: The cluster parameter group must be in the same
* parameter group family that matches the cluster version.
*
* @param clusterParameterGroupName The name of the cluster parameter group to apply to this cluster. This
* change is applied only after the cluster is rebooted. To reboot a
* cluster use <a>RebootCluster</a>. <p>Default: Uses existing setting.
* <p>Constraints: The cluster parameter group must be in the same
* parameter group family that matches the cluster version.
*/
public void setClusterParameterGroupName(String clusterParameterGroupName) {
this.clusterParameterGroupName = clusterParameterGroupName;
}
/**
* The name of the cluster parameter group to apply to this cluster. This
* change is applied only after the cluster is rebooted. To reboot a
* cluster use <a>RebootCluster</a>. <p>Default: Uses existing setting.
* <p>Constraints: The cluster parameter group must be in the same
* parameter group family that matches the cluster version.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterParameterGroupName The name of the cluster parameter group to apply to this cluster. This
* change is applied only after the cluster is rebooted. To reboot a
* cluster use <a>RebootCluster</a>. <p>Default: Uses existing setting.
* <p>Constraints: The cluster parameter group must be in the same
* parameter group family that matches the cluster version.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withClusterParameterGroupName(String clusterParameterGroupName) {
this.clusterParameterGroupName = clusterParameterGroupName;
return this;
}
/**
* The number of days that automated snapshots are retained. If the value
* is 0, automated snapshots are disabled. Even if automated snapshots
* are disabled, you can still create manual snapshots when you want with
* <a>CreateClusterSnapshot</a>. <p>If you decrease the automated
* snapshot retention period from its current value, existing automated
* snapshots which fall outside of the new retention period will be
* immediately deleted. <p>Default: Uses existing setting.
* <p>Constraints: Must be a value from 0 to 35.
*
* @return The number of days that automated snapshots are retained. If the value
* is 0, automated snapshots are disabled. Even if automated snapshots
* are disabled, you can still create manual snapshots when you want with
* <a>CreateClusterSnapshot</a>. <p>If you decrease the automated
* snapshot retention period from its current value, existing automated
* snapshots which fall outside of the new retention period will be
* immediately deleted. <p>Default: Uses existing setting.
* <p>Constraints: Must be a value from 0 to 35.
*/
public Integer getAutomatedSnapshotRetentionPeriod() {
return automatedSnapshotRetentionPeriod;
}
/**
* The number of days that automated snapshots are retained. If the value
* is 0, automated snapshots are disabled. Even if automated snapshots
* are disabled, you can still create manual snapshots when you want with
* <a>CreateClusterSnapshot</a>. <p>If you decrease the automated
* snapshot retention period from its current value, existing automated
* snapshots which fall outside of the new retention period will be
* immediately deleted. <p>Default: Uses existing setting.
* <p>Constraints: Must be a value from 0 to 35.
*
* @param automatedSnapshotRetentionPeriod The number of days that automated snapshots are retained. If the value
* is 0, automated snapshots are disabled. Even if automated snapshots
* are disabled, you can still create manual snapshots when you want with
* <a>CreateClusterSnapshot</a>. <p>If you decrease the automated
* snapshot retention period from its current value, existing automated
* snapshots which fall outside of the new retention period will be
* immediately deleted. <p>Default: Uses existing setting.
* <p>Constraints: Must be a value from 0 to 35.
*/
public void setAutomatedSnapshotRetentionPeriod(Integer automatedSnapshotRetentionPeriod) {
this.automatedSnapshotRetentionPeriod = automatedSnapshotRetentionPeriod;
}
/**
* The number of days that automated snapshots are retained. If the value
* is 0, automated snapshots are disabled. Even if automated snapshots
* are disabled, you can still create manual snapshots when you want with
* <a>CreateClusterSnapshot</a>. <p>If you decrease the automated
* snapshot retention period from its current value, existing automated
* snapshots which fall outside of the new retention period will be
* immediately deleted. <p>Default: Uses existing setting.
* <p>Constraints: Must be a value from 0 to 35.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param automatedSnapshotRetentionPeriod The number of days that automated snapshots are retained. If the value
* is 0, automated snapshots are disabled. Even if automated snapshots
* are disabled, you can still create manual snapshots when you want with
* <a>CreateClusterSnapshot</a>. <p>If you decrease the automated
* snapshot retention period from its current value, existing automated
* snapshots which fall outside of the new retention period will be
* immediately deleted. <p>Default: Uses existing setting.
* <p>Constraints: Must be a value from 0 to 35.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withAutomatedSnapshotRetentionPeriod(Integer automatedSnapshotRetentionPeriod) {
this.automatedSnapshotRetentionPeriod = automatedSnapshotRetentionPeriod;
return this;
}
/**
* The weekly time range (in UTC) during which system maintenance can
* occur, if necessary. If system maintenance is necessary during the
* window, it may result in an outage. <p> This maintenance window change
* is made immediately. If the new maintenance window indicates the
* current time, there must be at least 120 minutes between the current
* time and end of the window in order to ensure that pending changes are
* applied. <p>Default: Uses existing setting. <p>Format:
* ddd:hh24:mi-ddd:hh24:mi, for example <code>wed:07:30-wed:08:00</code>.
* <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun <p>Constraints:
* Must be at least 30 minutes.
*
* @return The weekly time range (in UTC) during which system maintenance can
* occur, if necessary. If system maintenance is necessary during the
* window, it may result in an outage. <p> This maintenance window change
* is made immediately. If the new maintenance window indicates the
* current time, there must be at least 120 minutes between the current
* time and end of the window in order to ensure that pending changes are
* applied. <p>Default: Uses existing setting. <p>Format:
* ddd:hh24:mi-ddd:hh24:mi, for example <code>wed:07:30-wed:08:00</code>.
* <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun <p>Constraints:
* Must be at least 30 minutes.
*/
public String getPreferredMaintenanceWindow() {
return preferredMaintenanceWindow;
}
/**
* The weekly time range (in UTC) during which system maintenance can
* occur, if necessary. If system maintenance is necessary during the
* window, it may result in an outage. <p> This maintenance window change
* is made immediately. If the new maintenance window indicates the
* current time, there must be at least 120 minutes between the current
* time and end of the window in order to ensure that pending changes are
* applied. <p>Default: Uses existing setting. <p>Format:
* ddd:hh24:mi-ddd:hh24:mi, for example <code>wed:07:30-wed:08:00</code>.
* <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun <p>Constraints:
* Must be at least 30 minutes.
*
* @param preferredMaintenanceWindow The weekly time range (in UTC) during which system maintenance can
* occur, if necessary. If system maintenance is necessary during the
* window, it may result in an outage. <p> This maintenance window change
* is made immediately. If the new maintenance window indicates the
* current time, there must be at least 120 minutes between the current
* time and end of the window in order to ensure that pending changes are
* applied. <p>Default: Uses existing setting. <p>Format:
* ddd:hh24:mi-ddd:hh24:mi, for example <code>wed:07:30-wed:08:00</code>.
* <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun <p>Constraints:
* Must be at least 30 minutes.
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
* The weekly time range (in UTC) during which system maintenance can
* occur, if necessary. If system maintenance is necessary during the
* window, it may result in an outage. <p> This maintenance window change
* is made immediately. If the new maintenance window indicates the
* current time, there must be at least 120 minutes between the current
* time and end of the window in order to ensure that pending changes are
* applied. <p>Default: Uses existing setting. <p>Format:
* ddd:hh24:mi-ddd:hh24:mi, for example <code>wed:07:30-wed:08:00</code>.
* <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun <p>Constraints:
* Must be at least 30 minutes.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param preferredMaintenanceWindow The weekly time range (in UTC) during which system maintenance can
* occur, if necessary. If system maintenance is necessary during the
* window, it may result in an outage. <p> This maintenance window change
* is made immediately. If the new maintenance window indicates the
* current time, there must be at least 120 minutes between the current
* time and end of the window in order to ensure that pending changes are
* applied. <p>Default: Uses existing setting. <p>Format:
* ddd:hh24:mi-ddd:hh24:mi, for example <code>wed:07:30-wed:08:00</code>.
* <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun <p>Constraints:
* Must be at least 30 minutes.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyClusterRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
return this;
}