public void setGrantPermissions(java.util.Collection<ResourcePermission> grantPermissions) {
        if (grantPermissions == null) {
            this.grantPermissions = null;
            return;
        }

        this.grantPermissions = new java.util.ArrayList<ResourcePermission>(grantPermissions);
    }
<p>
A structure that describes the permissions to add and the principal to add them to.
</p>

@param grantPermissions
       A structure that describes the permissions to add and the principal to add them to.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/UpdateAnalysisPermissionsRequest.java