/**
* The WitnessConfiguration model module.
* @module Ntnx/WitnessConfiguration
* @version 4.3.1
* @class WitnessConfiguration
*
* @param { string } extId External identifier of the witness service.
*
* @param { Number } timeoutSecs Maximum time in seconds that the witness must wait before initiating an unplanned failover or pausing synchronous replication in the event of a primary or secondary location failure.
*/
export default class WitnessConfiguration {
/**
* Constructs a WitnessConfiguration 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/WitnessConfiguration} obj Optional instance to populate.
* @param callFromChild {Boolean} Flag to recognise calling instance
* @return {module:Ntnx/WitnessConfiguration} The populated WitnessConfiguration 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 WitnessConfiguration.
* Witness location and failover configuration.
* @alias module:Ntnx/WitnessConfiguration
*
* @param { string } extId External identifier of the witness service.
*
* @param { Number } timeoutSecs Maximum time in seconds that the witness must wait before initiating an unplanned failover or pausing synchronous replication in the event of a primary or secondary location failure.
*/
constructor(extId: string, timeoutSecs: number);
extId: string;
timeoutSecs: number;
$objectType: string;
/** @type {object} */
$reserved: object;
/** @type {object} */
$unknownFields: object;
/**
* Returns External identifier of the witness service.
* @return {string}
*/
getExtId(): string;
/**
* Sets External identifier of the witness service.
* @param {string} extId External identifier of the witness service.
*/
setExtId(extId: string): void;
/**
* Returns Maximum time in seconds that the witness must wait before initiating an unplanned failover or pausing synchronous replication in the event of a primary or secondary location failure.
* minimum: 30
* maximum: 300
* @return {Number}
*/
getTimeoutSecs(): number;
/**
* Sets Maximum time in seconds that the witness must wait before initiating an unplanned failover or pausing synchronous replication in the event of a primary or secondary location failure.
* @param {Number} timeoutSecs Maximum time in seconds that the witness must wait before initiating an unplanned failover or pausing synchronous replication in the event of a primary or secondary location failure.
*/
setTimeoutSecs(timeoutSecs: number): 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";