"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntityShareOrMetadataUpdateRequest = void 0;
class EntityShareOrMetadataUpdateRequest {
    constructor(params) {
        if (params.share && !params.update) {
            this.share = params.share;
        }
        else if (!params.share && params.update) {
            this.update = params.update;
        }
        else
            throw new Error('Exactly one of share or update should be set');
    }
}
exports.EntityShareOrMetadataUpdateRequest = EntityShareOrMetadataUpdateRequest;
//# sourceMappingURL=EntityShareOrMetadataUpdateRequest.js.map