public UserData withNextStatus(String nextStatus) {
        setNextStatus(nextStatus);
        return this;
    }
<p>
The Next status of the agent.
</p>

@param nextStatus
       The Next status of the agent.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserData.java