public ListModelsRequest withNameContains(String nameContains) {
        setNameContains(nameContains);
        return this;
    }
<p>
A string in the model name. This filter returns only models whose name contains the specified string.
</p>

@param nameContains
       A string in the model name. This filter returns only models whose name contains the specified string.
@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/ListModelsRequest.java