<filename>sdk/dotnet/Zia/TrafficForwarding/TrafficForwardingStaticIP.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.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace zscaler.PulumiPackage.Zia.TrafficForwarding
{
    /// <summary>
    /// The **zia_traffic_forwarding_static_ip** resource allows the creation and management of static ip addresses in the Zscaler Internet Access cloud. The resource, can then be associated with other resources such as:
    /// 
    /// * VPN Credentials of type `IP`
    /// * Location Management
    /// * GRE Tunnel
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Zia = zscaler.PulumiPackage.Zia;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // ZIA Traffic Forwarding - Static IP
    ///     var example = new Zia.TrafficForwarding.TrafficForwardingStaticIP("example", new()
    ///     {
    ///         Comment = "Example",
    ///         GeoOverride = true,
    ///         IpAddress = "1.1.1.1",
    ///         Latitude = -36.848461,
    ///         Longitude = 174.763336,
    ///         RoutableIp = true,
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Static IP resources can be imported by using `&lt;STATIC IP ID&gt;` or `&lt;IP ADDRESS&gt;`as the import ID.
    /// 
    /// ```sh
    ///  $ pulumi import zia:TrafficForwarding/trafficForwardingStaticIP:TrafficForwardingStaticIP example &lt;static_ip_id&gt;
    /// ```
    /// 
    ///  or
    /// 
    /// ```sh
    ///  $ pulumi import zia:TrafficForwarding/trafficForwardingStaticIP:TrafficForwardingStaticIP example &lt;ip_address&gt;
    /// ```
    /// </summary>
    [ZiaResourceType("zia:TrafficForwarding/trafficForwardingStaticIP:TrafficForwardingStaticIP")]
    public partial class TrafficForwardingStaticIP : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Additional information about this static IP address
        /// </summary>
        [Output("comment")]
        public Output<string?> Comment { get; private set; } = null!;

        /// <summary>
        /// If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
        /// </summary>
        [Output("geoOverride")]
        public Output<bool> GeoOverride { get; private set; } = null!;

        /// <summary>
        /// The static IP address
        /// </summary>
        [Output("ipAddress")]
        public Output<string> IpAddress { get; private set; } = null!;

        /// <summary>
        /// This is an immutable reference to an entity. which mainly consists of id and name
        /// </summary>
        [Output("lastModifiedBies")]
        public Output<ImmutableArray<Outputs.TrafficForwardingStaticIPLastModifiedBy>> LastModifiedBies { get; private set; } = null!;

        /// <summary>
        /// Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
        /// </summary>
        [Output("latitude")]
        public Output<double> Latitude { get; private set; } = null!;

        /// <summary>
        /// Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
        /// </summary>
        [Output("longitude")]
        public Output<double> Longitude { get; private set; } = null!;

        /// <summary>
        /// This is an immutable reference to an entity. which mainly consists of id and name
        /// </summary>
        [Output("managedBies")]
        public Output<ImmutableArray<Outputs.TrafficForwardingStaticIPManagedBy>> ManagedBies { get; private set; } = null!;

        /// <summary>
        /// Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
        /// </summary>
        [Output("routableIp")]
        public Output<bool> RoutableIp { get; private set; } = null!;

        /// <summary>
        /// The ID of the Static IP.
        /// </summary>
        [Output("staticIpId")]
        public Output<int> StaticIpId { get; private set; } = null!;


        /// <summary>
        /// Create a TrafficForwardingStaticIP resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public TrafficForwardingStaticIP(string name, TrafficForwardingStaticIPArgs args, CustomResourceOptions? options = null)
            : base("zia:TrafficForwarding/trafficForwardingStaticIP:TrafficForwardingStaticIP", name, args ?? new TrafficForwardingStaticIPArgs(), MakeResourceOptions(options, ""))
        {
        }

        private TrafficForwardingStaticIP(string name, Input<string> id, TrafficForwardingStaticIPState? state = null, CustomResourceOptions? options = null)
            : base("zia:TrafficForwarding/trafficForwardingStaticIP:TrafficForwardingStaticIP", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/zscaler",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing TrafficForwardingStaticIP resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static TrafficForwardingStaticIP Get(string name, Input<string> id, TrafficForwardingStaticIPState? state = null, CustomResourceOptions? options = null)
        {
            return new TrafficForwardingStaticIP(name, id, state, options);
        }
    }

    public sealed class TrafficForwardingStaticIPArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Additional information about this static IP address
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
        /// </summary>
        [Input("geoOverride")]
        public Input<bool>? GeoOverride { get; set; }

        /// <summary>
        /// The static IP address
        /// </summary>
        [Input("ipAddress", required: true)]
        public Input<string> IpAddress { get; set; } = null!;

        [Input("lastModifiedBies")]
        private InputList<Inputs.TrafficForwardingStaticIPLastModifiedByArgs>? _lastModifiedBies;

        /// <summary>
        /// This is an immutable reference to an entity. which mainly consists of id and name
        /// </summary>
        public InputList<Inputs.TrafficForwardingStaticIPLastModifiedByArgs> LastModifiedBies
        {
            get => _lastModifiedBies ?? (_lastModifiedBies = new InputList<Inputs.TrafficForwardingStaticIPLastModifiedByArgs>());
            set => _lastModifiedBies = value;
        }

        /// <summary>
        /// Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
        /// </summary>
        [Input("latitude")]
        public Input<double>? Latitude { get; set; }

        /// <summary>
        /// Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
        /// </summary>
        [Input("longitude")]
        public Input<double>? Longitude { get; set; }

        [Input("managedBies")]
        private InputList<Inputs.TrafficForwardingStaticIPManagedByArgs>? _managedBies;

        /// <summary>
        /// This is an immutable reference to an entity. which mainly consists of id and name
        /// </summary>
        public InputList<Inputs.TrafficForwardingStaticIPManagedByArgs> ManagedBies
        {
            get => _managedBies ?? (_managedBies = new InputList<Inputs.TrafficForwardingStaticIPManagedByArgs>());
            set => _managedBies = value;
        }

        /// <summary>
        /// Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
        /// </summary>
        [Input("routableIp")]
        public Input<bool>? RoutableIp { get; set; }

        public TrafficForwardingStaticIPArgs()
        {
        }
        public static new TrafficForwardingStaticIPArgs Empty => new TrafficForwardingStaticIPArgs();
    }

    public sealed class TrafficForwardingStaticIPState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Additional information about this static IP address
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
        /// </summary>
        [Input("geoOverride")]
        public Input<bool>? GeoOverride { get; set; }

        /// <summary>
        /// The static IP address
        /// </summary>
        [Input("ipAddress")]
        public Input<string>? IpAddress { get; set; }

        [Input("lastModifiedBies")]
        private InputList<Inputs.TrafficForwardingStaticIPLastModifiedByGetArgs>? _lastModifiedBies;

        /// <summary>
        /// This is an immutable reference to an entity. which mainly consists of id and name
        /// </summary>
        public InputList<Inputs.TrafficForwardingStaticIPLastModifiedByGetArgs> LastModifiedBies
        {
            get => _lastModifiedBies ?? (_lastModifiedBies = new InputList<Inputs.TrafficForwardingStaticIPLastModifiedByGetArgs>());
            set => _lastModifiedBies = value;
        }

        /// <summary>
        /// Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
        /// </summary>
        [Input("latitude")]
        public Input<double>? Latitude { get; set; }

        /// <summary>
        /// Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
        /// </summary>
        [Input("longitude")]
        public Input<double>? Longitude { get; set; }

        [Input("managedBies")]
        private InputList<Inputs.TrafficForwardingStaticIPManagedByGetArgs>? _managedBies;

        /// <summary>
        /// This is an immutable reference to an entity. which mainly consists of id and name
        /// </summary>
        public InputList<Inputs.TrafficForwardingStaticIPManagedByGetArgs> ManagedBies
        {
            get => _managedBies ?? (_managedBies = new InputList<Inputs.TrafficForwardingStaticIPManagedByGetArgs>());
            set => _managedBies = value;
        }

        /// <summary>
        /// Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
        /// </summary>
        [Input("routableIp")]
        public Input<bool>? RoutableIp { get; set; }

        /// <summary>
        /// The ID of the Static IP.
        /// </summary>
        [Input("staticIpId")]
        public Input<int>? StaticIpId { get; set; }

        public TrafficForwardingStaticIPState()
        {
        }
        public static new TrafficForwardingStaticIPState Empty => new TrafficForwardingStaticIPState();
    }
}
