Class CfnDBSecurityGroupPropsMixin.IngressProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.rds.mixins.CfnDBSecurityGroupPropsMixin.IngressProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSecurityGroupPropsMixin.IngressProperty>
- Enclosing interface:
CfnDBSecurityGroupPropsMixin.IngressProperty
@Stability(Stable)
public static final class CfnDBSecurityGroupPropsMixin.IngressProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSecurityGroupPropsMixin.IngressProperty>
A builder for
CfnDBSecurityGroupPropsMixin.IngressProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDBSecurityGroupPropsMixin.IngressProperty.getCidrip()ec2SecurityGroupId(String ec2SecurityGroupId) Sets the value ofCfnDBSecurityGroupPropsMixin.IngressProperty.getEc2SecurityGroupId()ec2SecurityGroupName(String ec2SecurityGroupName) Sets the value ofCfnDBSecurityGroupPropsMixin.IngressProperty.getEc2SecurityGroupName()ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidrip
@Stability(Stable) public CfnDBSecurityGroupPropsMixin.IngressProperty.Builder cidrip(String cidrip) Sets the value ofCfnDBSecurityGroupPropsMixin.IngressProperty.getCidrip()- Parameters:
cidrip- The IP range to authorize.- Returns:
this
-
ec2SecurityGroupId
@Stability(Stable) public CfnDBSecurityGroupPropsMixin.IngressProperty.Builder ec2SecurityGroupId(String ec2SecurityGroupId) Sets the value ofCfnDBSecurityGroupPropsMixin.IngressProperty.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 CfnDBSecurityGroupPropsMixin.IngressProperty.Builder ec2SecurityGroupName(String ec2SecurityGroupName) Sets the value ofCfnDBSecurityGroupPropsMixin.IngressProperty.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 CfnDBSecurityGroupPropsMixin.IngressProperty.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId) - 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<CfnDBSecurityGroupPropsMixin.IngressProperty>- Returns:
- a new instance of
CfnDBSecurityGroupPropsMixin.IngressProperty - Throws:
NullPointerException- if any required attribute was not provided
-