Class CfnDBSecurityGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBSecurityGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSecurityGroupProps>
- Enclosing interface:
- CfnDBSecurityGroupProps
@Stability(Stable)
public static final class CfnDBSecurityGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSecurityGroupProps>
A builder for
CfnDBSecurityGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dbSecurityGroupIngress
(List<? extends Object> dbSecurityGroupIngress) Sets the value ofCfnDBSecurityGroupProps.getDbSecurityGroupIngress()
dbSecurityGroupIngress
(IResolvable dbSecurityGroupIngress) Sets the value ofCfnDBSecurityGroupProps.getDbSecurityGroupIngress()
Sets the value ofCfnDBSecurityGroupProps.getEc2VpcId()
groupDescription
(String groupDescription) Sets the value ofCfnDBSecurityGroupProps.getGroupDescription()
Sets the value ofCfnDBSecurityGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dbSecurityGroupIngress
@Stability(Stable) public CfnDBSecurityGroupProps.Builder dbSecurityGroupIngress(IResolvable dbSecurityGroupIngress) Sets the value ofCfnDBSecurityGroupProps.getDbSecurityGroupIngress()
- Parameters:
dbSecurityGroupIngress
- Ingress rules to be applied to the DB security group. This parameter is required.- Returns:
this
-
dbSecurityGroupIngress
@Stability(Stable) public CfnDBSecurityGroupProps.Builder dbSecurityGroupIngress(List<? extends Object> dbSecurityGroupIngress) Sets the value ofCfnDBSecurityGroupProps.getDbSecurityGroupIngress()
- Parameters:
dbSecurityGroupIngress
- Ingress rules to be applied to the DB security group. This parameter is required.- Returns:
this
-
groupDescription
Sets the value ofCfnDBSecurityGroupProps.getGroupDescription()
- Parameters:
groupDescription
- Provides the description of the DB security group. This parameter is required.- Returns:
this
-
ec2VpcId
Sets the value ofCfnDBSecurityGroupProps.getEc2VpcId()
- Parameters:
ec2VpcId
- The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to.The
EC2VpcId
property is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.- Returns:
this
-
tags
Sets the value ofCfnDBSecurityGroupProps.getTags()
- Parameters:
tags
- An optional array of key-value pairs to apply to this DB security group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBSecurityGroupProps>
- Returns:
- a new instance of
CfnDBSecurityGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-