/** * The Threshold model module. * @module Ntnx/Threshold * @version 4.1.1-beta-1 * @class Threshold * * @param { Number } startRange Start range of the threshold. * * @param { Number } endRange End range of the threshold. * * @param { string } color Color of the threshold. */ export default class Threshold { /** * Constructs a Threshold 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/Threshold} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/Threshold} The populated Threshold 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 Threshold. * Threshold configuration. * @alias module:Ntnx/Threshold * * @param { Number } startRange Start range of the threshold. * * @param { Number } endRange End range of the threshold. * * @param { string } color Color of the threshold. */ constructor(startRange: number, endRange: number, color: string); startRange: number; endRange: number; color: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Start range of the threshold. * @return {Number} */ getStartRange(): number; /** * Sets Start range of the threshold. * @param {Number} startRange Start range of the threshold. */ setStartRange(startRange: number): void; /** * Returns End range of the threshold. * @return {Number} */ getEndRange(): number; /** * Sets End range of the threshold. * @param {Number} endRange End range of the threshold. */ setEndRange(endRange: number): void; /** * Returns Color of the threshold. * @return {string} */ getColor(): string; /** * Sets Color of the threshold. * @param {string} color Color of the threshold. */ setColor(color: string): void; 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";