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

        this.permissions = new java.util.ArrayList<ResourcePermission>(permissions);
    }
<p>
A list of resource permissions to be set on the template.
</p>

@param permissions
       A list of resource permissions to be set on the template.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/CreateTemplateRequest.java