public UpdateGroupRequest withPrecedence(Integer precedence) {
        setPrecedence(precedence);
        return this;
    }
<p>
The new precedence value for the group. For more information about this parameter, see <a
href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html"
>CreateGroup</a>.
</p>

@param precedence
       The new precedence value for the group. For more information about this parameter, see <a
       href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html"
       >CreateGroup</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/UpdateGroupRequest.java