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