public Principal withGroup(PrincipalGroup group) {
        setGroup(group);
        return this;
    }
<p>
The group associated with the principal.
</p>

@param group
       The group associated with the principal.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/Principal.java