Class ClusterAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.alpha.ClusterAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterAttributes>
- Enclosing interface:
ClusterAttributes
@Stability(Experimental)
public static final class ClusterAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterAttributes>
A builder for
ClusterAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clusterEndpointAddress
(String clusterEndpointAddress) Sets the value ofClusterAttributes.getClusterEndpointAddress()
clusterEndpointPort
(Number clusterEndpointPort) Sets the value ofClusterAttributes.getClusterEndpointPort()
clusterName
(String clusterName) Sets the value ofClusterAttributes.getClusterName()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofClusterAttributes.getSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterEndpointAddress
@Stability(Experimental) public ClusterAttributes.Builder clusterEndpointAddress(String clusterEndpointAddress) Sets the value ofClusterAttributes.getClusterEndpointAddress()
- Parameters:
clusterEndpointAddress
- Cluster endpoint address. This parameter is required.- Returns:
this
-
clusterEndpointPort
@Stability(Experimental) public ClusterAttributes.Builder clusterEndpointPort(Number clusterEndpointPort) Sets the value ofClusterAttributes.getClusterEndpointPort()
- Parameters:
clusterEndpointPort
- Cluster endpoint port. This parameter is required.- Returns:
this
-
clusterName
Sets the value ofClusterAttributes.getClusterName()
- Parameters:
clusterName
- Identifier for the cluster. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Experimental) public ClusterAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofClusterAttributes.getSecurityGroups()
- Parameters:
securityGroups
- The security groups of the redshift cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClusterAttributes>
- Returns:
- a new instance of
ClusterAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-