public void setEcr(Boolean ecr) {
        this.ecr = ecr;
    }
<p>
Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector
organization.
</p>

@param ecr
       Represents whether Amazon ECR 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