public ResourceScanMetadata withEcrImage(EcrContainerImageMetadata ecrImage) {
        setEcrImage(ecrImage);
        return this;
    }
<p>
An object that contains details about the container metadata for an Amazon ECR image.
</p>

@param ecrImage
       An object that contains details about the container metadata for an Amazon ECR image.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/ResourceScanMetadata.java