public Ec2Configuration withScanMode(String scanMode) {
        setScanMode(scanMode);
        return this;
    }
<p>
The scan method that is applied to the instance.
</p>

@param scanMode
       The scan method that is applied to the instance.
@return Returns a reference to this object so that method calls can be chained together.
@see Ec2ScanMode
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/Ec2Configuration.java