public DescribeGroupResult withState(EntityState state) {
        this.state = state.toString();
        return this;
    }
<p>
The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to
WorkMail).
</p>

@param state
       The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to
       WorkMail).
@return Returns a reference to this object so that method calls can be chained together.
@see EntityState
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/DescribeGroupResult.java