public GetInvestigationResult withState(State state) {
        this.state = state.toString();
        return this;
    }
<p>
The current state of the investigation. An archived investigation indicates that you have completed reviewing the
investigation.
</p>

@param state
       The current state of the investigation. An archived investigation indicates that you have completed
       reviewing the investigation.
@return Returns a reference to this object so that method calls can be chained together.
@see State
aws-java-sdk-detective/src/main/java/com/amazonaws/services/detective/model/GetInvestigationResult.java