public PutRegistryScanningConfigurationRequest withScanType(ScanType scanType) {
        this.scanType = scanType.toString();
        return this;
    }
<p>
The scanning type to set for the registry.
</p>
<p>
When a registry scanning configuration is not defined, by default the <code>BASIC</code> scan type is used. When
basic scanning is used, you may specify filters to determine which individual repositories, or all repositories,
are scanned when new images are pushed to those repositories. Alternatively, you can do manual scans of images
with basic scanning.
</p>
<p>
When the <code>ENHANCED</code> scan type is set, Amazon Inspector provides automated vulnerability scanning. You
may choose between continuous scanning or scan on push and you may specify filters to determine which individual
repositories, or all repositories, are scanned.
</p>

@param scanType
       The scanning type to set for the registry.</p>
       <p>
       When a registry scanning configuration is not defined, by default the <code>BASIC</code> scan type is
       used. When basic scanning is used, you may specify filters to determine which individual repositories, or
       all repositories, are scanned when new images are pushed to those repositories. Alternatively, you can do
       manual scans of images with basic scanning.
       </p>
       <p>
       When the <code>ENHANCED</code> scan type is set, Amazon Inspector provides automated vulnerability
       scanning. You may choose between continuous scanning or scan on push and you may specify filters to
       determine which individual repositories, or all repositories, are scanned.
@return Returns a reference to this object so that method calls can be chained together.
@see ScanType
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/PutRegistryScanningConfigurationRequest.java