public static final class ClusterProps.Builder
extends java.lang.Object
ClusterProps
Constructor and Description |
---|
Builder() |
public ClusterProps.Builder masterUser(Login masterUser)
ClusterProps.getMasterUser()
masterUser
- Username and password for the administrative user. This parameter is required.this
public ClusterProps.Builder vpc(IVpc vpc)
ClusterProps.getVpc()
vpc
- The VPC to place the cluster in. This parameter is required.this
public ClusterProps.Builder clusterName(java.lang.String clusterName)
ClusterProps.getClusterName()
clusterName
- An optional identifier for the cluster.this
public ClusterProps.Builder clusterType(ClusterType clusterType)
ClusterProps.getClusterType()
clusterType
- Settings for the individual instances that are launched.this
public ClusterProps.Builder defaultDatabaseName(java.lang.String defaultDatabaseName)
ClusterProps.getDefaultDatabaseName()
defaultDatabaseName
- Name of a database which is automatically created inside the cluster.this
public ClusterProps.Builder encrypted(java.lang.Boolean encrypted)
ClusterProps.getEncrypted()
encrypted
- Whether to enable encryption of data at rest in the cluster.this
public ClusterProps.Builder encryptionKey(IKey encryptionKey)
ClusterProps.getEncryptionKey()
encryptionKey
- The KMS key to use for encryption of data at rest.this
public ClusterProps.Builder loggingBucket(IBucket loggingBucket)
ClusterProps.getLoggingBucket()
loggingBucket
- Bucket to send logs to.
Logging information includes queries and connection attempts, for the specified Amazon Redshift cluster.this
public ClusterProps.Builder loggingKeyPrefix(java.lang.String loggingKeyPrefix)
ClusterProps.getLoggingKeyPrefix()
loggingKeyPrefix
- Prefix used for logging.this
public ClusterProps.Builder nodeType(NodeType nodeType)
ClusterProps.getNodeType()
nodeType
- The node type to be provisioned for the cluster.this
public ClusterProps.Builder numberOfNodes(java.lang.Number numberOfNodes)
ClusterProps.getNumberOfNodes()
numberOfNodes
- Number of compute nodes in the cluster. Only specify this property for multi-node clusters.
Value must be at least 2 and no more than 100.this
public ClusterProps.Builder parameterGroup(IClusterParameterGroup parameterGroup)
ClusterProps.getParameterGroup()
parameterGroup
- Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html.this
public ClusterProps.Builder port(java.lang.Number port)
ClusterProps.getPort()
port
- What port to listen on.this
public ClusterProps.Builder preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
ClusterProps.getPreferredMaintenanceWindow()
preferredMaintenanceWindow
- A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC).
Example: 'Sun:23:45-Mon:00:15'this
public ClusterProps.Builder publiclyAccessible(java.lang.Boolean publiclyAccessible)
ClusterProps.getPubliclyAccessible()
publiclyAccessible
- Whether to make cluster publicly accessible.this
public ClusterProps.Builder removalPolicy(RemovalPolicy removalPolicy)
ClusterProps.getRemovalPolicy()
removalPolicy
- The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.this
public ClusterProps.Builder roles(java.util.List<? extends IRole> roles)
ClusterProps.getRoles()
roles
- A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services.
Specify a maximum of 10 roles.this
public ClusterProps.Builder securityGroups(java.util.List<? extends ISecurityGroup> securityGroups)
ClusterProps.getSecurityGroups()
securityGroups
- Security group.this
public ClusterProps.Builder subnetGroup(IClusterSubnetGroup subnetGroup)
ClusterProps.getSubnetGroup()
subnetGroup
- A cluster subnet group to use with this cluster.this
public ClusterProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
ClusterProps.getVpcSubnets()
vpcSubnets
- Where to place the instances within the VPC.this
public ClusterProps build()
ClusterProps
java.lang.NullPointerException
- if any required attribute was not provided