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