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

@param ec2SecurityGroupId
       Specifies the ID for the EC2 security group.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsRdsDbSecurityGroupEc2SecurityGroup.java