public ListResourcesFilters withState(String state) {
        setState(state);
        return this;
    }
<p>
Filters only resource with the provided state.
</p>

@param state
       Filters only resource with the provided state.
@return Returns a reference to this object so that method calls can be chained together.
@see EntityState
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/ListResourcesFilters.java