public TargetHealth withState(TargetHealthStateEnum state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the target.
</p>

@param state
       The state of the target.
@return Returns a reference to this object so that method calls can be chained together.
@see TargetHealthStateEnum
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/model/TargetHealth.java