public ContainerDefinition withMode(String mode) {
        setMode(mode);
        return this;
    }
<p>
Whether the container hosts a single model or multiple models.
</p>

@param mode
       Whether the container hosts a single model or multiple models.
@return Returns a reference to this object so that method calls can be chained together.
@see ContainerMode
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ContainerDefinition.java