public InstanceGroupDetail withState(InstanceGroupState state) {
        this.state = state.toString();
        return this;
    }
<p>
State of instance group. The following values are no longer supported: STARTING, TERMINATED, and FAILED.
</p>

@param state
       State of instance group. The following values are no longer supported: STARTING, TERMINATED, and FAILED.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceGroupState
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/InstanceGroupDetail.java