/** * The NotificationPolicy model module. * @module Ntnx/NotificationPolicy * @version 4.1.1-beta-1 * @class NotificationPolicy * * @param { Recipient[] } recipients Email recipients list. */ export default class NotificationPolicy { /** * Constructs a NotificationPolicy from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:Ntnx/NotificationPolicy} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/NotificationPolicy} The populated NotificationPolicy instance. */ static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any; /** * Converts a given snake_case string to camelCase. * @param {string} snakeStr - The input string in snake_case format. * @returns {string} - The converted string in camelCase format. */ static snakeToCamel(snakeStr: string): string; /** * Constructs a new NotificationPolicy. * Notification policy for sending the email of the generated report. * @alias module:Ntnx/NotificationPolicy * * @param { Recipient[] } recipients Email recipients list. */ constructor(recipients: Recipient[]); recipients: Recipient[]; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Email recipients list. * @return {Recipient[]} */ getRecipients(): Recipient[]; /** * Sets Email recipients list. * @param {Recipient[]} recipients Email recipients list. */ setRecipients(recipients: Recipient[]): void; /** * Returns Subject of the email to be sent for the report. * @return {string} */ getEmailSubject(): string; /** * Sets Subject of the email to be sent for the report. * @param {string} emailSubject Subject of the email to be sent for the report. */ setEmailSubject(emailSubject: string): void; emailSubject: string; /** * Returns Content of the email body. * @return {string} */ getEmailBody(): string; /** * Sets Content of the email body. * @param {string} emailBody Content of the email body. */ setEmailBody(emailBody: string): void; emailBody: string; get$Reserved(): any; get$ObjectType(): string; get$UnknownFields(): any; toJson(forMutation: any): any; validate(scope: any, properties: any, ...args: any[]): Promise; validateProperty(scope: any, property: any): ValidationError; #private; } import ValidationError from "../../../validation/ValidationError";