Class CfnDBSecurityGroupIngressProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBSecurityGroupIngressProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSecurityGroupIngressProps>
- Enclosing interface:
CfnDBSecurityGroupIngressProps
@Stability(Stable)
public static final class CfnDBSecurityGroupIngressProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSecurityGroupIngressProps>
A builder for
CfnDBSecurityGroupIngressProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDBSecurityGroupIngressProps.getCidrip()
dbSecurityGroupName
(String dbSecurityGroupName) Sets the value ofCfnDBSecurityGroupIngressProps.getDbSecurityGroupName()
ec2SecurityGroupId
(String ec2SecurityGroupId) Sets the value ofCfnDBSecurityGroupIngressProps.getEc2SecurityGroupId()
ec2SecurityGroupName
(String ec2SecurityGroupName) Sets the value ofCfnDBSecurityGroupIngressProps.getEc2SecurityGroupName()
ec2SecurityGroupOwnerId
(String ec2SecurityGroupOwnerId) Sets the value ofCfnDBSecurityGroupIngressProps.getEc2SecurityGroupOwnerId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dbSecurityGroupName
@Stability(Stable) public CfnDBSecurityGroupIngressProps.Builder dbSecurityGroupName(String dbSecurityGroupName) Sets the value ofCfnDBSecurityGroupIngressProps.getDbSecurityGroupName()
- Parameters:
dbSecurityGroupName
- The name of the DB security group to add authorization to. This parameter is required.- Returns:
this
-
cidrip
Sets the value ofCfnDBSecurityGroupIngressProps.getCidrip()
- Parameters:
cidrip
- The IP range to authorize.- Returns:
this
-
ec2SecurityGroupId
@Stability(Stable) public CfnDBSecurityGroupIngressProps.Builder ec2SecurityGroupId(String ec2SecurityGroupId) Sets the value ofCfnDBSecurityGroupIngressProps.getEc2SecurityGroupId()
- Parameters:
ec2SecurityGroupId
- Id of the EC2 security group to authorize. For VPC DB security groups,EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- Returns:
this
-
ec2SecurityGroupName
@Stability(Stable) public CfnDBSecurityGroupIngressProps.Builder ec2SecurityGroupName(String ec2SecurityGroupName) Sets the value ofCfnDBSecurityGroupIngressProps.getEc2SecurityGroupName()
- Parameters:
ec2SecurityGroupName
- Name of the EC2 security group to authorize. For VPC DB security groups,EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- Returns:
this
-
ec2SecurityGroupOwnerId
@Stability(Stable) public CfnDBSecurityGroupIngressProps.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId) Sets the value ofCfnDBSecurityGroupIngressProps.getEc2SecurityGroupOwnerId()
- Parameters:
ec2SecurityGroupOwnerId
- AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter. The AWS access key ID isn't an acceptable value. For VPC DB security groups,EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBSecurityGroupIngressProps>
- Returns:
- a new instance of
CfnDBSecurityGroupIngressProps
- Throws:
NullPointerException
- if any required attribute was not provided
-