public Boolean isEc2() {
        return this.ec2;
    }
<p>
Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector
organization.
</p>

@return Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector
        organization.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/AutoEnable.java