public ActivityResponse withState(String state) {
        setState(state);
        return this;
    }
<p>
The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING, PAUSED, CANCELLED, and
COMPLETED.
</p>

@param state
       The current status of the activity. Possible values are: PENDING, INITIALIZING, RUNNING, PAUSED,
       CANCELLED, and COMPLETED.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ActivityResponse.java