public Image withImageId(ImageIdentifier imageId) {
        setImageId(imageId);
        return this;
    }
<p>
An object containing the image tag and image digest associated with an image.
</p>

@param imageId
       An object containing the image tag and image digest associated with an image.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/Image.java