public void setEcrRepository(EcrRepositoryMetadata ecrRepository) {
        this.ecrRepository = ecrRepository;
    }
<p>
An object that contains details about the repository an Amazon ECR image resides in.
</p>

@param ecrRepository
       An object that contains details about the repository an Amazon ECR image resides in.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/ResourceScanMetadata.java