forked from aws/aws-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateClusterRequest.java
More file actions
1685 lines (1572 loc) · 87.8 KB
/
CreateClusterRequest.java
File metadata and controls
1685 lines (1572 loc) · 87.8 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#createCluster(CreateClusterRequest) CreateCluster operation}.
* <p>
* Creates a new cluster. To create the cluster in virtual private cloud (VPC), you must provide cluster subnet group name. If you don't provide a
* cluster subnet group name or the cluster security group parameter, Amazon Redshift creates a non-VPC cluster, it associates the default cluster
* security group with the cluster. 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>
*
* @see com.amazonaws.services.redshift.AmazonRedshift#createCluster(CreateClusterRequest)
*/
public class CreateClusterRequest extends AmazonWebServiceRequest implements Serializable {
/**
* The name of the first database to be created when the cluster is
* created. <p>To create additional databases after the cluster is
* created, connect to the cluster with a SQL client and use SQL commands
* to create a database. For more information, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html">Create
* a Database</a> in the Amazon Redshift Developer Guide. <p>Default:
* <code>dev</code> <p>Constraints: <ul> <li>Must contain 1 to 64
* alphanumeric characters.</li> <li>Must contain only lowercase
* letters.</li> <li>Cannot be a word that is reserved by the service. A
* list of reserved words can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*/
private String dBName;
/**
* A unique identifier for the cluster. You use this identifier to refer
* to the cluster for any subsequent cluster operations such as deleting
* or modifying. The identifier also appears in the Amazon Redshift
* console. <p>Constraints: <ul> <li>Must contain from 1 to 63
* alphanumeric characters or hyphens.</li> <li>Alphabetic characters
* must be lowercase.</li> <li>First character must be a letter.</li>
* <li>Cannot end with a hyphen or contain two consecutive hyphens.</li>
* <li>Must be unique for all clusters within an AWS account.</li> </ul>
* <p>Example: <code>myexamplecluster</code>
*/
private String clusterIdentifier;
/**
* The type of the cluster. When cluster type is specified as <ul>
* <li><code>single-node</code>, the <b>NumberOfNodes</b> parameter is
* not required.</li> <li><code>multi-node</code>, the
* <b>NumberOfNodes</b> parameter is required.</li> </ul> <p> Valid
* Values: <code>multi-node</code> | <code>single-node</code> <p>Default:
* <code>multi-node</code>
*/
private String clusterType;
/**
* The node type to be provisioned for the cluster. For information about
* node types, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <p> Valid Values: <code>dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>.
*/
private String nodeType;
/**
* The user name associated with the master user account for the cluster
* that is being created. <p>Constraints: <ul> <li>Must be 1 - 128
* alphanumeric characters.</li> <li>First character must be a
* letter.</li> <li>Cannot be a reserved word. A list of reserved words
* can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*/
private String masterUsername;
/**
* The password associated with the master user account for the cluster
* that is being created. <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;
/**
* A list of security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag<String> clusterSecurityGroups;
/**
* A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster. <p>Default: The default VPC security group is
* associated with the cluster.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag<String> vpcSecurityGroupIds;
/**
* The name of a cluster subnet group to be associated with this cluster.
* <p> If this parameter is not provided the resulting cluster will be
* deployed outside virtual private cloud (VPC).
*/
private String clusterSubnetGroupName;
/**
* The EC2 Availability Zone (AZ) in which you want Amazon Redshift to
* provision the cluster. For example, if you have several EC2 instances
* running in a specific Availability Zone, then you might want the
* cluster to be provisioned in the same zone in order to decrease
* network latency. <p> Default: A random, system-chosen Availability
* Zone in the region that is specified by the endpoint. <p> Example:
* <code>us-east-1d</code> <p> Constraint: The specified Availability
* Zone must be in the same region as the current endpoint.
*/
private String availabilityZone;
/**
* The weekly time range (in UTC) during which automated cluster
* maintenance can occur. <p> Format:
* <code>ddd:hh24:mi-ddd:hh24:mi</code> <p> Default: A 30-minute window
* selected at random from an 8-hour block of time per region, occurring
* on a random day of the week. The following list shows the time blocks
* for each region from which the default maintenance windows are
* assigned. <ul> <li><b>US-East (Northern Virginia) Region:</b>
* 03:00-11:00 UTC</li> <li><b>US-West (Oregon) Region</b> 06:00-14:00
* UTC</li> </ul> <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
* <p>Constraints: Minimum 30-minute window.
*/
private String preferredMaintenanceWindow;
/**
* The name of the parameter group to be associated with this cluster.
* <p>Default: The default Amazon Redshift cluster parameter group. For
* information about the default parameter group, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html">Working
* with Amazon Redshift Parameter Groups</a> <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 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> Default: <code>1</code>
* <p>Constraints: Must be a value from 0 to 35.
*/
private Integer automatedSnapshotRetentionPeriod;
/**
* The port number on which the cluster accepts incoming connections.
* <p>The cluster is accessible only via the JDBC and ODBC connection
* strings. Part of the connection string requires the port on which the
* cluster will listen for incoming connections. <p> Default:
* <code>5439</code> <p> Valid Values: <code>1150-65535</code>
*/
private Integer port;
/**
* The version of the Amazon Redshift engine software that you want to
* deploy on the cluster. <p> The version selected runs on all the nodes
* in the cluster. <p>Constraints: Only version 1.0 is currently
* available. <p>Example: <code>1.0</code>
*/
private String clusterVersion;
/**
* If <code>true</code>, upgrades can be applied during the maintenance
* window to the Amazon Redshift engine that is running on the cluster.
* <p> When a new version of the Amazon Redshift engine is released, you
* can request that the service automatically apply upgrades during the
* maintenance window to the Amazon Redshift engine that is running on
* your cluster. <p>Default: <code>true</code>
*/
private Boolean allowVersionUpgrade;
/**
* The number of compute nodes in the cluster. This parameter is required
* when the <b>ClusterType</b> parameter is specified as
* <code>multi-node</code>. <p>For information about determining how many
* nodes you need, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <p>If you don't specify this parameter, you get a
* single-node cluster. When requesting a multi-node cluster, you must
* specify the number of nodes that you want in the cluster. <p>Default:
* <code>1</code> <p>Constraints: Value must be at least 1 and no more
* than 100.
*/
private Integer numberOfNodes;
/**
* If <code>true</code>, the cluster can be accessed from a public
* network.
*/
private Boolean publiclyAccessible;
/**
* If <code>true</code>, the data in cluster is encrypted at rest.
* <p>Default: false
*/
private Boolean encrypted;
/**
* The name of the first database to be created when the cluster is
* created. <p>To create additional databases after the cluster is
* created, connect to the cluster with a SQL client and use SQL commands
* to create a database. For more information, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html">Create
* a Database</a> in the Amazon Redshift Developer Guide. <p>Default:
* <code>dev</code> <p>Constraints: <ul> <li>Must contain 1 to 64
* alphanumeric characters.</li> <li>Must contain only lowercase
* letters.</li> <li>Cannot be a word that is reserved by the service. A
* list of reserved words can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*
* @return The name of the first database to be created when the cluster is
* created. <p>To create additional databases after the cluster is
* created, connect to the cluster with a SQL client and use SQL commands
* to create a database. For more information, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html">Create
* a Database</a> in the Amazon Redshift Developer Guide. <p>Default:
* <code>dev</code> <p>Constraints: <ul> <li>Must contain 1 to 64
* alphanumeric characters.</li> <li>Must contain only lowercase
* letters.</li> <li>Cannot be a word that is reserved by the service. A
* list of reserved words can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*/
public String getDBName() {
return dBName;
}
/**
* The name of the first database to be created when the cluster is
* created. <p>To create additional databases after the cluster is
* created, connect to the cluster with a SQL client and use SQL commands
* to create a database. For more information, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html">Create
* a Database</a> in the Amazon Redshift Developer Guide. <p>Default:
* <code>dev</code> <p>Constraints: <ul> <li>Must contain 1 to 64
* alphanumeric characters.</li> <li>Must contain only lowercase
* letters.</li> <li>Cannot be a word that is reserved by the service. A
* list of reserved words can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*
* @param dBName The name of the first database to be created when the cluster is
* created. <p>To create additional databases after the cluster is
* created, connect to the cluster with a SQL client and use SQL commands
* to create a database. For more information, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html">Create
* a Database</a> in the Amazon Redshift Developer Guide. <p>Default:
* <code>dev</code> <p>Constraints: <ul> <li>Must contain 1 to 64
* alphanumeric characters.</li> <li>Must contain only lowercase
* letters.</li> <li>Cannot be a word that is reserved by the service. A
* list of reserved words can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*/
public void setDBName(String dBName) {
this.dBName = dBName;
}
/**
* The name of the first database to be created when the cluster is
* created. <p>To create additional databases after the cluster is
* created, connect to the cluster with a SQL client and use SQL commands
* to create a database. For more information, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html">Create
* a Database</a> in the Amazon Redshift Developer Guide. <p>Default:
* <code>dev</code> <p>Constraints: <ul> <li>Must contain 1 to 64
* alphanumeric characters.</li> <li>Must contain only lowercase
* letters.</li> <li>Cannot be a word that is reserved by the service. A
* list of reserved words can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param dBName The name of the first database to be created when the cluster is
* created. <p>To create additional databases after the cluster is
* created, connect to the cluster with a SQL client and use SQL commands
* to create a database. For more information, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html">Create
* a Database</a> in the Amazon Redshift Developer Guide. <p>Default:
* <code>dev</code> <p>Constraints: <ul> <li>Must contain 1 to 64
* alphanumeric characters.</li> <li>Must contain only lowercase
* letters.</li> <li>Cannot be a word that is reserved by the service. A
* list of reserved words can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest withDBName(String dBName) {
this.dBName = dBName;
return this;
}
/**
* A unique identifier for the cluster. You use this identifier to refer
* to the cluster for any subsequent cluster operations such as deleting
* or modifying. The identifier also appears in the Amazon Redshift
* console. <p>Constraints: <ul> <li>Must contain from 1 to 63
* alphanumeric characters or hyphens.</li> <li>Alphabetic characters
* must be lowercase.</li> <li>First character must be a letter.</li>
* <li>Cannot end with a hyphen or contain two consecutive hyphens.</li>
* <li>Must be unique for all clusters within an AWS account.</li> </ul>
* <p>Example: <code>myexamplecluster</code>
*
* @return A unique identifier for the cluster. You use this identifier to refer
* to the cluster for any subsequent cluster operations such as deleting
* or modifying. The identifier also appears in the Amazon Redshift
* console. <p>Constraints: <ul> <li>Must contain from 1 to 63
* alphanumeric characters or hyphens.</li> <li>Alphabetic characters
* must be lowercase.</li> <li>First character must be a letter.</li>
* <li>Cannot end with a hyphen or contain two consecutive hyphens.</li>
* <li>Must be unique for all clusters within an AWS account.</li> </ul>
* <p>Example: <code>myexamplecluster</code>
*/
public String getClusterIdentifier() {
return clusterIdentifier;
}
/**
* A unique identifier for the cluster. You use this identifier to refer
* to the cluster for any subsequent cluster operations such as deleting
* or modifying. The identifier also appears in the Amazon Redshift
* console. <p>Constraints: <ul> <li>Must contain from 1 to 63
* alphanumeric characters or hyphens.</li> <li>Alphabetic characters
* must be lowercase.</li> <li>First character must be a letter.</li>
* <li>Cannot end with a hyphen or contain two consecutive hyphens.</li>
* <li>Must be unique for all clusters within an AWS account.</li> </ul>
* <p>Example: <code>myexamplecluster</code>
*
* @param clusterIdentifier A unique identifier for the cluster. You use this identifier to refer
* to the cluster for any subsequent cluster operations such as deleting
* or modifying. The identifier also appears in the Amazon Redshift
* console. <p>Constraints: <ul> <li>Must contain from 1 to 63
* alphanumeric characters or hyphens.</li> <li>Alphabetic characters
* must be lowercase.</li> <li>First character must be a letter.</li>
* <li>Cannot end with a hyphen or contain two consecutive hyphens.</li>
* <li>Must be unique for all clusters within an AWS account.</li> </ul>
* <p>Example: <code>myexamplecluster</code>
*/
public void setClusterIdentifier(String clusterIdentifier) {
this.clusterIdentifier = clusterIdentifier;
}
/**
* A unique identifier for the cluster. You use this identifier to refer
* to the cluster for any subsequent cluster operations such as deleting
* or modifying. The identifier also appears in the Amazon Redshift
* console. <p>Constraints: <ul> <li>Must contain from 1 to 63
* alphanumeric characters or hyphens.</li> <li>Alphabetic characters
* must be lowercase.</li> <li>First character must be a letter.</li>
* <li>Cannot end with a hyphen or contain two consecutive hyphens.</li>
* <li>Must be unique for all clusters within an AWS account.</li> </ul>
* <p>Example: <code>myexamplecluster</code>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterIdentifier A unique identifier for the cluster. You use this identifier to refer
* to the cluster for any subsequent cluster operations such as deleting
* or modifying. The identifier also appears in the Amazon Redshift
* console. <p>Constraints: <ul> <li>Must contain from 1 to 63
* alphanumeric characters or hyphens.</li> <li>Alphabetic characters
* must be lowercase.</li> <li>First character must be a letter.</li>
* <li>Cannot end with a hyphen or contain two consecutive hyphens.</li>
* <li>Must be unique for all clusters within an AWS account.</li> </ul>
* <p>Example: <code>myexamplecluster</code>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest withClusterIdentifier(String clusterIdentifier) {
this.clusterIdentifier = clusterIdentifier;
return this;
}
/**
* The type of the cluster. When cluster type is specified as <ul>
* <li><code>single-node</code>, the <b>NumberOfNodes</b> parameter is
* not required.</li> <li><code>multi-node</code>, the
* <b>NumberOfNodes</b> parameter is required.</li> </ul> <p> Valid
* Values: <code>multi-node</code> | <code>single-node</code> <p>Default:
* <code>multi-node</code>
*
* @return The type of the cluster. When cluster type is specified as <ul>
* <li><code>single-node</code>, the <b>NumberOfNodes</b> parameter is
* not required.</li> <li><code>multi-node</code>, the
* <b>NumberOfNodes</b> parameter is required.</li> </ul> <p> Valid
* Values: <code>multi-node</code> | <code>single-node</code> <p>Default:
* <code>multi-node</code>
*/
public String getClusterType() {
return clusterType;
}
/**
* The type of the cluster. When cluster type is specified as <ul>
* <li><code>single-node</code>, the <b>NumberOfNodes</b> parameter is
* not required.</li> <li><code>multi-node</code>, the
* <b>NumberOfNodes</b> parameter is required.</li> </ul> <p> Valid
* Values: <code>multi-node</code> | <code>single-node</code> <p>Default:
* <code>multi-node</code>
*
* @param clusterType The type of the cluster. When cluster type is specified as <ul>
* <li><code>single-node</code>, the <b>NumberOfNodes</b> parameter is
* not required.</li> <li><code>multi-node</code>, the
* <b>NumberOfNodes</b> parameter is required.</li> </ul> <p> Valid
* Values: <code>multi-node</code> | <code>single-node</code> <p>Default:
* <code>multi-node</code>
*/
public void setClusterType(String clusterType) {
this.clusterType = clusterType;
}
/**
* The type of the cluster. When cluster type is specified as <ul>
* <li><code>single-node</code>, the <b>NumberOfNodes</b> parameter is
* not required.</li> <li><code>multi-node</code>, the
* <b>NumberOfNodes</b> parameter is required.</li> </ul> <p> Valid
* Values: <code>multi-node</code> | <code>single-node</code> <p>Default:
* <code>multi-node</code>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterType The type of the cluster. When cluster type is specified as <ul>
* <li><code>single-node</code>, the <b>NumberOfNodes</b> parameter is
* not required.</li> <li><code>multi-node</code>, the
* <b>NumberOfNodes</b> parameter is required.</li> </ul> <p> Valid
* Values: <code>multi-node</code> | <code>single-node</code> <p>Default:
* <code>multi-node</code>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest withClusterType(String clusterType) {
this.clusterType = clusterType;
return this;
}
/**
* The node type to be provisioned for the cluster. For information about
* node types, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <p> Valid Values: <code>dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>.
*
* @return The node type to be provisioned for the cluster. For information about
* node types, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <p> Valid Values: <code>dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>.
*/
public String getNodeType() {
return nodeType;
}
/**
* The node type to be provisioned for the cluster. For information about
* node types, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <p> Valid Values: <code>dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>.
*
* @param nodeType The node type to be provisioned for the cluster. For information about
* node types, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <p> Valid Values: <code>dw.hs1.xlarge</code> |
* <code>dw.hs1.8xlarge</code>.
*/
public void setNodeType(String nodeType) {
this.nodeType = nodeType;
}
/**
* The node type to be provisioned for the cluster. For information about
* node types, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <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 node type to be provisioned for the cluster. For information about
* node types, go to <a
* href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes">
* Working with Clusters</a> in the <i>Amazon Redshift Management
* Guide</i>. <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 CreateClusterRequest withNodeType(String nodeType) {
this.nodeType = nodeType;
return this;
}
/**
* The user name associated with the master user account for the cluster
* that is being created. <p>Constraints: <ul> <li>Must be 1 - 128
* alphanumeric characters.</li> <li>First character must be a
* letter.</li> <li>Cannot be a reserved word. A list of reserved words
* can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*
* @return The user name associated with the master user account for the cluster
* that is being created. <p>Constraints: <ul> <li>Must be 1 - 128
* alphanumeric characters.</li> <li>First character must be a
* letter.</li> <li>Cannot be a reserved word. A list of reserved words
* can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*/
public String getMasterUsername() {
return masterUsername;
}
/**
* The user name associated with the master user account for the cluster
* that is being created. <p>Constraints: <ul> <li>Must be 1 - 128
* alphanumeric characters.</li> <li>First character must be a
* letter.</li> <li>Cannot be a reserved word. A list of reserved words
* can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*
* @param masterUsername The user name associated with the master user account for the cluster
* that is being created. <p>Constraints: <ul> <li>Must be 1 - 128
* alphanumeric characters.</li> <li>First character must be a
* letter.</li> <li>Cannot be a reserved word. A list of reserved words
* can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*/
public void setMasterUsername(String masterUsername) {
this.masterUsername = masterUsername;
}
/**
* The user name associated with the master user account for the cluster
* that is being created. <p>Constraints: <ul> <li>Must be 1 - 128
* alphanumeric characters.</li> <li>First character must be a
* letter.</li> <li>Cannot be a reserved word. A list of reserved words
* can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param masterUsername The user name associated with the master user account for the cluster
* that is being created. <p>Constraints: <ul> <li>Must be 1 - 128
* alphanumeric characters.</li> <li>First character must be a
* letter.</li> <li>Cannot be a reserved word. A list of reserved words
* can be found in <a
* href="http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html">Reserved
* Words</a> in the Amazon Redshift Developer Guide. </li> </ul>
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest withMasterUsername(String masterUsername) {
this.masterUsername = masterUsername;
return this;
}
/**
* The password associated with the master user account for the cluster
* that is being created. <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 password associated with the master user account for the cluster
* that is being created. <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 password associated with the master user account for the cluster
* that is being created. <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 password associated with the master user account for the cluster
* that is being created. <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 password associated with the master user account for the cluster
* that is being created. <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 password associated with the master user account for the cluster
* that is being created. <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 CreateClusterRequest withMasterUserPassword(String masterUserPassword) {
this.masterUserPassword = masterUserPassword;
return this;
}
/**
* A list of security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
*
* @return A list of security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
*/
public java.util.List<String> getClusterSecurityGroups() {
if (clusterSecurityGroups == null) {
clusterSecurityGroups = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
clusterSecurityGroups.setAutoConstruct(true);
}
return clusterSecurityGroups;
}
/**
* A list of security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
*
* @param clusterSecurityGroups A list of security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
*/
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 security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterSecurityGroups A list of security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest 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 security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterSecurityGroups A list of security groups to be associated with this cluster. <p>
* Default: The default cluster security group for Amazon Redshift.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest 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. <p>Default: The default VPC security group is
* associated with the cluster.
*
* @return A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster. <p>Default: The default VPC security group is
* 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. <p>Default: The default VPC security group is
* associated with the cluster.
*
* @param vpcSecurityGroupIds A list of Virtual Private Cloud (VPC) security groups to be associated
* with the cluster. <p>Default: The default VPC security group is
* 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>Default: The default VPC security group is
* 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. <p>Default: The default VPC security group is
* associated with the cluster.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest 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>Default: The default VPC security group is
* 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. <p>Default: The default VPC security group is
* associated with the cluster.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest 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 name of a cluster subnet group to be associated with this cluster.
* <p> If this parameter is not provided the resulting cluster will be
* deployed outside virtual private cloud (VPC).
*
* @return The name of a cluster subnet group to be associated with this cluster.
* <p> If this parameter is not provided the resulting cluster will be
* deployed outside virtual private cloud (VPC).
*/
public String getClusterSubnetGroupName() {
return clusterSubnetGroupName;
}
/**
* The name of a cluster subnet group to be associated with this cluster.
* <p> If this parameter is not provided the resulting cluster will be
* deployed outside virtual private cloud (VPC).
*
* @param clusterSubnetGroupName The name of a cluster subnet group to be associated with this cluster.
* <p> If this parameter is not provided the resulting cluster will be
* deployed outside virtual private cloud (VPC).
*/
public void setClusterSubnetGroupName(String clusterSubnetGroupName) {
this.clusterSubnetGroupName = clusterSubnetGroupName;
}
/**
* The name of a cluster subnet group to be associated with this cluster.
* <p> If this parameter is not provided the resulting cluster will be
* deployed outside virtual private cloud (VPC).
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param clusterSubnetGroupName The name of a cluster subnet group to be associated with this cluster.
* <p> If this parameter is not provided the resulting cluster will be
* deployed outside virtual private cloud (VPC).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest withClusterSubnetGroupName(String clusterSubnetGroupName) {
this.clusterSubnetGroupName = clusterSubnetGroupName;
return this;
}
/**
* The EC2 Availability Zone (AZ) in which you want Amazon Redshift to
* provision the cluster. For example, if you have several EC2 instances
* running in a specific Availability Zone, then you might want the
* cluster to be provisioned in the same zone in order to decrease
* network latency. <p> Default: A random, system-chosen Availability
* Zone in the region that is specified by the endpoint. <p> Example:
* <code>us-east-1d</code> <p> Constraint: The specified Availability
* Zone must be in the same region as the current endpoint.
*
* @return The EC2 Availability Zone (AZ) in which you want Amazon Redshift to
* provision the cluster. For example, if you have several EC2 instances
* running in a specific Availability Zone, then you might want the
* cluster to be provisioned in the same zone in order to decrease
* network latency. <p> Default: A random, system-chosen Availability
* Zone in the region that is specified by the endpoint. <p> Example:
* <code>us-east-1d</code> <p> Constraint: The specified Availability
* Zone must be in the same region as the current endpoint.
*/
public String getAvailabilityZone() {
return availabilityZone;
}
/**
* The EC2 Availability Zone (AZ) in which you want Amazon Redshift to
* provision the cluster. For example, if you have several EC2 instances
* running in a specific Availability Zone, then you might want the
* cluster to be provisioned in the same zone in order to decrease
* network latency. <p> Default: A random, system-chosen Availability
* Zone in the region that is specified by the endpoint. <p> Example:
* <code>us-east-1d</code> <p> Constraint: The specified Availability
* Zone must be in the same region as the current endpoint.
*
* @param availabilityZone The EC2 Availability Zone (AZ) in which you want Amazon Redshift to
* provision the cluster. For example, if you have several EC2 instances
* running in a specific Availability Zone, then you might want the
* cluster to be provisioned in the same zone in order to decrease
* network latency. <p> Default: A random, system-chosen Availability
* Zone in the region that is specified by the endpoint. <p> Example:
* <code>us-east-1d</code> <p> Constraint: The specified Availability
* Zone must be in the same region as the current endpoint.
*/
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
/**
* The EC2 Availability Zone (AZ) in which you want Amazon Redshift to
* provision the cluster. For example, if you have several EC2 instances
* running in a specific Availability Zone, then you might want the
* cluster to be provisioned in the same zone in order to decrease
* network latency. <p> Default: A random, system-chosen Availability
* Zone in the region that is specified by the endpoint. <p> Example:
* <code>us-east-1d</code> <p> Constraint: The specified Availability
* Zone must be in the same region as the current endpoint.
* <p>
* Returns a reference to this object so that method calls can be chained together.
*
* @param availabilityZone The EC2 Availability Zone (AZ) in which you want Amazon Redshift to
* provision the cluster. For example, if you have several EC2 instances
* running in a specific Availability Zone, then you might want the
* cluster to be provisioned in the same zone in order to decrease
* network latency. <p> Default: A random, system-chosen Availability
* Zone in the region that is specified by the endpoint. <p> Example:
* <code>us-east-1d</code> <p> Constraint: The specified Availability
* Zone must be in the same region as the current endpoint.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateClusterRequest withAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
/**
* The weekly time range (in UTC) during which automated cluster
* maintenance can occur. <p> Format:
* <code>ddd:hh24:mi-ddd:hh24:mi</code> <p> Default: A 30-minute window
* selected at random from an 8-hour block of time per region, occurring
* on a random day of the week. The following list shows the time blocks
* for each region from which the default maintenance windows are
* assigned. <ul> <li><b>US-East (Northern Virginia) Region:</b>
* 03:00-11:00 UTC</li> <li><b>US-West (Oregon) Region</b> 06:00-14:00
* UTC</li> </ul> <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
* <p>Constraints: Minimum 30-minute window.
*
* @return The weekly time range (in UTC) during which automated cluster
* maintenance can occur. <p> Format:
* <code>ddd:hh24:mi-ddd:hh24:mi</code> <p> Default: A 30-minute window
* selected at random from an 8-hour block of time per region, occurring
* on a random day of the week. The following list shows the time blocks
* for each region from which the default maintenance windows are
* assigned. <ul> <li><b>US-East (Northern Virginia) Region:</b>
* 03:00-11:00 UTC</li> <li><b>US-West (Oregon) Region</b> 06:00-14:00
* UTC</li> </ul> <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
* <p>Constraints: Minimum 30-minute window.
*/
public String getPreferredMaintenanceWindow() {
return preferredMaintenanceWindow;
}
/**
* The weekly time range (in UTC) during which automated cluster
* maintenance can occur. <p> Format:
* <code>ddd:hh24:mi-ddd:hh24:mi</code> <p> Default: A 30-minute window
* selected at random from an 8-hour block of time per region, occurring
* on a random day of the week. The following list shows the time blocks
* for each region from which the default maintenance windows are
* assigned. <ul> <li><b>US-East (Northern Virginia) Region:</b>
* 03:00-11:00 UTC</li> <li><b>US-West (Oregon) Region</b> 06:00-14:00
* UTC</li> </ul> <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
* <p>Constraints: Minimum 30-minute window.
*