public ListPermissionsResult withPrincipalResourcePermissions(PrincipalResourcePermissions... principalResourcePermissions) {
        if (this.principalResourcePermissions == null) {
            setPrincipalResourcePermissions(new java.util.ArrayList<PrincipalResourcePermissions>(principalResourcePermissions.length));
        }
        for (PrincipalResourcePermissions ele : principalResourcePermissions) {
            this.principalResourcePermissions.add(ele);
        }
        return this;
    }
<p>
A list of principals and their permissions on the resource for the specified principal and resource types.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPrincipalResourcePermissions(java.util.Collection)} or
{@link #withPrincipalResourcePermissions(java.util.Collection)} if you want to override the existing values.
</p>

@param principalResourcePermissions
       A list of principals and their permissions on the resource for the specified principal and resource types.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lakeformation/src/main/java/com/amazonaws/services/lakeformation/model/ListPermissionsResult.java