"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.NetworkLoadBalancer = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
class NetworkLoadBalancer extends pulumi.CustomResource {
    /**
     * Get an existing NetworkLoadBalancer resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new NetworkLoadBalancer(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of NetworkLoadBalancer.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === NetworkLoadBalancer.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["accessLogConfig"] = state ? state.accessLogConfig : undefined;
            resourceInputs["accountId"] = state ? state.accountId : undefined;
            resourceInputs["billingStatus"] = state ? state.billingStatus : undefined;
            resourceInputs["createTime"] = state ? state.createTime : undefined;
            resourceInputs["crossZoneEnabled"] = state ? state.crossZoneEnabled : undefined;
            resourceInputs["description"] = state ? state.description : undefined;
            resourceInputs["dnsName"] = state ? state.dnsName : undefined;
            resourceInputs["expectedOverdueTime"] = state ? state.expectedOverdueTime : undefined;
            resourceInputs["ipAddressVersion"] = state ? state.ipAddressVersion : undefined;
            resourceInputs["ipv4BandwidthPackageId"] = state ? state.ipv4BandwidthPackageId : undefined;
            resourceInputs["ipv4NetworkType"] = state ? state.ipv4NetworkType : undefined;
            resourceInputs["ipv6BandwidthPackageId"] = state ? state.ipv6BandwidthPackageId : undefined;
            resourceInputs["ipv6NetworkType"] = state ? state.ipv6NetworkType : undefined;
            resourceInputs["loadBalancerName"] = state ? state.loadBalancerName : undefined;
            resourceInputs["managedSecurityGroupId"] = state ? state.managedSecurityGroupId : undefined;
            resourceInputs["modificationProtectionReason"] = state ? state.modificationProtectionReason : undefined;
            resourceInputs["modificationProtectionStatus"] = state ? state.modificationProtectionStatus : undefined;
            resourceInputs["networkType"] = state ? state.networkType : undefined;
            resourceInputs["overdueTime"] = state ? state.overdueTime : undefined;
            resourceInputs["projectName"] = state ? state.projectName : undefined;
            resourceInputs["reclaimedTime"] = state ? state.reclaimedTime : undefined;
            resourceInputs["region"] = state ? state.region : undefined;
            resourceInputs["securityGroupIds"] = state ? state.securityGroupIds : undefined;
            resourceInputs["status"] = state ? state.status : undefined;
            resourceInputs["tags"] = state ? state.tags : undefined;
            resourceInputs["updateTime"] = state ? state.updateTime : undefined;
            resourceInputs["vpcId"] = state ? state.vpcId : undefined;
            resourceInputs["zoneMappings"] = state ? state.zoneMappings : undefined;
        }
        else {
            const args = argsOrState;
            if ((!args || args.networkType === undefined) && !opts.urn) {
                throw new Error("Missing required property 'networkType'");
            }
            if ((!args || args.region === undefined) && !opts.urn) {
                throw new Error("Missing required property 'region'");
            }
            if ((!args || args.vpcId === undefined) && !opts.urn) {
                throw new Error("Missing required property 'vpcId'");
            }
            if ((!args || args.zoneMappings === undefined) && !opts.urn) {
                throw new Error("Missing required property 'zoneMappings'");
            }
            resourceInputs["accessLogConfig"] = args ? args.accessLogConfig : undefined;
            resourceInputs["crossZoneEnabled"] = args ? args.crossZoneEnabled : undefined;
            resourceInputs["description"] = args ? args.description : undefined;
            resourceInputs["ipAddressVersion"] = args ? args.ipAddressVersion : undefined;
            resourceInputs["ipv4BandwidthPackageId"] = args ? args.ipv4BandwidthPackageId : undefined;
            resourceInputs["ipv6BandwidthPackageId"] = args ? args.ipv6BandwidthPackageId : undefined;
            resourceInputs["loadBalancerName"] = args ? args.loadBalancerName : undefined;
            resourceInputs["modificationProtectionReason"] = args ? args.modificationProtectionReason : undefined;
            resourceInputs["modificationProtectionStatus"] = args ? args.modificationProtectionStatus : undefined;
            resourceInputs["networkType"] = args ? args.networkType : undefined;
            resourceInputs["projectName"] = args ? args.projectName : undefined;
            resourceInputs["region"] = args ? args.region : undefined;
            resourceInputs["securityGroupIds"] = args ? args.securityGroupIds : undefined;
            resourceInputs["tags"] = args ? args.tags : undefined;
            resourceInputs["vpcId"] = args ? args.vpcId : undefined;
            resourceInputs["zoneMappings"] = args ? args.zoneMappings : undefined;
            resourceInputs["accountId"] = undefined /*out*/;
            resourceInputs["billingStatus"] = undefined /*out*/;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["dnsName"] = undefined /*out*/;
            resourceInputs["expectedOverdueTime"] = undefined /*out*/;
            resourceInputs["ipv4NetworkType"] = undefined /*out*/;
            resourceInputs["ipv6NetworkType"] = undefined /*out*/;
            resourceInputs["managedSecurityGroupId"] = undefined /*out*/;
            resourceInputs["overdueTime"] = undefined /*out*/;
            resourceInputs["reclaimedTime"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["updateTime"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(NetworkLoadBalancer.__pulumiType, name, resourceInputs, opts);
    }
}
exports.NetworkLoadBalancer = NetworkLoadBalancer;
/** @internal */
NetworkLoadBalancer.__pulumiType = 'volcengine:nlb/networkLoadBalancer:NetworkLoadBalancer';
//# sourceMappingURL=networkLoadBalancer.js.map