public TaskSummary withState(TaskState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the task assigned to one or many devices.
</p>

@param state
       The state of the task assigned to one or many devices.
@return Returns a reference to this object so that method calls can be chained together.
@see TaskState
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/TaskSummary.java