public AwsRdsDbSecurityGroupEc2SecurityGroup withEc2SecurityGroupId(String ec2SecurityGroupId) {
        setEc2SecurityGroupId(ec2SecurityGroupId);
        return this;
    }
<p>
Specifies the ID for the EC2 security group.
</p>

@param ec2SecurityGroupId
       Specifies the ID for the EC2 security group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsRdsDbSecurityGroupEc2SecurityGroup.java