public ListWorkforcesRequest withNameContains(String nameContains) {
        setNameContains(nameContains);
        return this;
    }
<p>
A filter you can use to search for workforces using part of the workforce name.
</p>

@param nameContains
       A filter you can use to search for workforces using part of the workforce name.
@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/ListWorkforcesRequest.java