/**
 * The Listener model module.
 * @module Ntnx/Listener
 * @version 4.0.1
 * @class Listener
 *
 * @param { VirtualIP } virtualIP
 *
 * @param { Protocol } protocol
 *
 * @param { PortRange[] } portRanges Doc(LoadBalancerSessionPortRange)
 */
export default class Listener {
    /**
     * Constructs a <code>Listener</code> from a plain JavaScript object, optionally creating a new instance.
     * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
     * @param {Object} data The plain JavaScript object bearing properties of interest.
     * @param {module:Ntnx/Listener} obj Optional instance to populate.
     * @param callFromChild {Boolean} Flag to recognise calling instance
     * @return {module:Ntnx/Listener} The populated <code>Listener</code> 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 <code>Listener</code>.
     * Listener configuration for the load balancer session.
     * @alias module:Ntnx/Listener
     *
     * @param { VirtualIP } virtualIP
     *
     * @param { Protocol } protocol
     *
     * @param { PortRange[] } portRanges Doc(LoadBalancerSessionPortRange)
    */
    constructor(virtualIP: VirtualIP, protocol: Protocol, portRanges: PortRange[]);
    virtualIP: VirtualIP;
    protocol: string;
    portRanges: PortRange[];
    $objectType: string;
    /** @type {object<string, any>} */
    $reserved: object;
    /** @type {object<string, any>} */
    $unknownFields: object;
    /**
     * @return {VirtualIP}
     */
    getVirtualIP(): VirtualIP;
    /**
     * @param {VirtualIP} virtualIP
     */
    setVirtualIP(virtualIP: VirtualIP): void;
    /**
     * @return {Protocol}
     */
    getProtocol(): Protocol;
    /**
     * @param {Protocol} protocol
     */
    setProtocol(protocol: Protocol): void;
    /**
     * Returns Doc(LoadBalancerSessionPortRange)
     * @return {PortRange[]}
     */
    getPortRanges(): PortRange[];
    /**
     * Sets Doc(LoadBalancerSessionPortRange)
     * @param {PortRange[]} portRanges Doc(LoadBalancerSessionPortRange)
     */
    setPortRanges(portRanges: PortRange[]): void;
    get$Reserved(): any;
    get$ObjectType(): string;
    get$UnknownFields(): any;
    toJson(forMutation: any): {
        $reserved: any;
        $objectType: string;
        $unknownFields: any;
        portRanges?: {
            $reserved: any;
            $objectType: string;
            $unknownFields: any;
            endPort?: number;
            startPort?: number;
        }[];
        protocol?: string;
        virtualIP?: {
            $reserved: any;
            $objectType: string;
            $unknownFields: any;
            ipAddress?: {
                $reserved: any;
                /**
                 * Returns Doc(LoadBalancerSessionPortRange)
                 * @return {PortRange[]}
                 */
                $objectType: string;
                $unknownFields: any;
                ipv6?: {
                    $reserved: any;
                    $objectType: string;
                    $unknownFields: any;
                    prefixLength?: number;
                    value?: string;
                };
                ipv4?: {
                    $reserved: any;
                    $objectType: string;
                    $unknownFields: any;
                    prefixLength?: number;
                    value?: string;
                };
            };
            assignmentType?: string;
            subnetReference?: string;
        };
    };
    validate(scope: any, properties: any, ...args: any[]): Promise<any>;
    validateProperty(scope: any, property: any): ValidationError;
    #private;
}
import VirtualIP from "./VirtualIP";
import PortRange from "./PortRange";
import Protocol from "./Protocol";
import ValidationError from "../../../validation/ValidationError";
