public UpdateProbeRequest withState(ProbeState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the probe update.
</p>

@param state
       The state of the probe update.
@return Returns a reference to this object so that method calls can be chained together.
@see ProbeState
aws-java-sdk-networkmonitor/src/main/java/com/amazonaws/services/networkmonitor/model/UpdateProbeRequest.java