Class CfnClusterSecurityGroupIngressProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnClusterSecurityGroupIngressProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterSecurityGroupIngressProps>
- Enclosing interface:
CfnClusterSecurityGroupIngressProps
@Stability(Stable)
public static final class CfnClusterSecurityGroupIngressProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterSecurityGroupIngressProps>
A builder for
CfnClusterSecurityGroupIngressProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterSecurityGroupIngressProps.getCidrip()clusterSecurityGroupName(String clusterSecurityGroupName) Sets the value ofCfnClusterSecurityGroupIngressProps.getClusterSecurityGroupName()ec2SecurityGroupName(String ec2SecurityGroupName) Sets the value ofCfnClusterSecurityGroupIngressProps.getEc2SecurityGroupName()ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId) Sets the value ofCfnClusterSecurityGroupIngressProps.getEc2SecurityGroupOwnerId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterSecurityGroupName
@Stability(Stable) public CfnClusterSecurityGroupIngressProps.Builder clusterSecurityGroupName(String clusterSecurityGroupName) Sets the value ofCfnClusterSecurityGroupIngressProps.getClusterSecurityGroupName()- Parameters:
clusterSecurityGroupName- The name of the security group to which the ingress rule is added. This parameter is required.- Returns:
this
-
cidrip
Sets the value ofCfnClusterSecurityGroupIngressProps.getCidrip()- Parameters:
cidrip- The IP range to be added the Amazon Redshift security group.- Returns:
this
-
ec2SecurityGroupName
@Stability(Stable) public CfnClusterSecurityGroupIngressProps.Builder ec2SecurityGroupName(String ec2SecurityGroupName) Sets the value ofCfnClusterSecurityGroupIngressProps.getEc2SecurityGroupName()- Parameters:
ec2SecurityGroupName- The EC2 security group to be added the Amazon Redshift security group.- Returns:
this
-
ec2SecurityGroupOwnerId
@Stability(Stable) public CfnClusterSecurityGroupIngressProps.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId) Sets the value ofCfnClusterSecurityGroupIngressProps.getEc2SecurityGroupOwnerId()- Parameters:
ec2SecurityGroupOwnerId- The AWS account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable value.Example:
111122223333Conditional. If you specify the
EC2SecurityGroupNameproperty, you must specify this property.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterSecurityGroupIngressProps>- Returns:
- a new instance of
CfnClusterSecurityGroupIngressProps - Throws:
NullPointerException- if any required attribute was not provided
-