public InferenceSpecification withContainers(java.util.Collection<ModelPackageContainerDefinition> containers) {
        setContainers(containers);
        return this;
    }
<p>
The Amazon ECR registry path of the Docker image that contains the inference code.
</p>

@param containers
       The Amazon ECR registry path of the Docker image that contains the inference code.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/InferenceSpecification.java