public SearchStatus withState(SearchState state) {
        this.state = state.toString();
        return this;
    }
<p>
The current state of the search job.
</p>

@param state
       The current state of the search job.
@return Returns a reference to this object so that method calls can be chained together.
@see SearchState
aws-java-sdk-mailmanager/src/main/java/com/amazonaws/services/mailmanager/model/SearchStatus.java