<filename>sdk/dotnet/Config/Config.cs// *** 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! ***

using System;
using System.Collections.Immutable;

namespace zscaler.PulumiPackage.Zpa
{
    public static class Config
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification = 
        "Double underscore prefix used to avoid conflicts with variable names.")]
        private sealed class __Value<T>
        {
            private readonly Func<T> _getter;
            private T _value = default!;
            private bool _set;

            public __Value(Func<T> getter)
            {
                _getter = getter;
            }

            public T Get() => _set ? _value : _getter();

            public void Set(T value)
            {
                _value = value;
                _set = true;
            }
        }

        private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("zpa");

        private static readonly __Value<string?> _zpaClientId = new __Value<string?>(() => __config.Get("zpaClientId") ?? Utilities.GetEnv("ZPA_CLIENT_ID"));
        /// <summary>
        /// zpa client id
        /// </summary>
        public static string? ZpaClientId
        {
            get => _zpaClientId.Get();
            set => _zpaClientId.Set(value);
        }

        private static readonly __Value<string?> _zpaClientSecret = new __Value<string?>(() => __config.Get("zpaClientSecret") ?? Utilities.GetEnv("ZPA_CLIENT_SECRET"));
        /// <summary>
        /// zpa client secret
        /// </summary>
        public static string? ZpaClientSecret
        {
            get => _zpaClientSecret.Get();
            set => _zpaClientSecret.Set(value);
        }

        private static readonly __Value<string?> _zpaCloud = new __Value<string?>(() => __config.Get("zpaCloud") ?? Utilities.GetEnv("ZPA_CLOUD"));
        /// <summary>
        /// Cloud to use PRODUCTION, BETA, GOV or PREVIEW
        /// </summary>
        public static string? ZpaCloud
        {
            get => _zpaCloud.Get();
            set => _zpaCloud.Set(value);
        }

        private static readonly __Value<string?> _zpaCustomerId = new __Value<string?>(() => __config.Get("zpaCustomerId") ?? Utilities.GetEnv("ZPA_CUSTOMER_ID"));
        /// <summary>
        /// zpa customer id
        /// </summary>
        public static string? ZpaCustomerId
        {
            get => _zpaCustomerId.Get();
            set => _zpaCustomerId.Set(value);
        }

    }
}
