<reponame>pulumiverse/pulumi-fortios<filename>sdk/dotnet/FmgSystemNetworkRoute.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 Pulumiverse.Fortios
{
    /// <summary>
    /// This resource supports updating system network route for FortiManager.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Fortios = Pulumiverse.Fortios;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var test1 = new Fortios.FmgSystemNetworkRoute("test1", new()
    ///     {
    ///         Destination = "192.168.2.0 255.255.255.0",
    ///         Device = "port4",
    ///         Gateway = "192.168.2.1",
    ///         RouteId = 5,
    ///     });
    /// 
    /// });
    /// ```
    /// </summary>
    [FortiosResourceType("fortios:index/fmgSystemNetworkRoute:FmgSystemNetworkRoute")]
    public partial class FmgSystemNetworkRoute : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Destination Ip/Mask.
        /// </summary>
        [Output("destination")]
        public Output<string> Destination { get; private set; } = null!;

        /// <summary>
        /// Gateway out interface.
        /// </summary>
        [Output("device")]
        public Output<string> Device { get; private set; } = null!;

        /// <summary>
        /// Gateway Ip.
        /// </summary>
        [Output("gateway")]
        public Output<string> Gateway { get; private set; } = null!;

        /// <summary>
        /// Route id.
        /// </summary>
        [Output("routeId")]
        public Output<int> RouteId { get; private set; } = null!;


        /// <summary>
        /// Create a FmgSystemNetworkRoute 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 FmgSystemNetworkRoute(string name, FmgSystemNetworkRouteArgs args, CustomResourceOptions? options = null)
            : base("fortios:index/fmgSystemNetworkRoute:FmgSystemNetworkRoute", name, args ?? new FmgSystemNetworkRouteArgs(), MakeResourceOptions(options, ""))
        {
        }

        private FmgSystemNetworkRoute(string name, Input<string> id, FmgSystemNetworkRouteState? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/fmgSystemNetworkRoute:FmgSystemNetworkRoute", 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/pulumiverse/pulumi-fortios",
            };
            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 FmgSystemNetworkRoute 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 FmgSystemNetworkRoute Get(string name, Input<string> id, FmgSystemNetworkRouteState? state = null, CustomResourceOptions? options = null)
        {
            return new FmgSystemNetworkRoute(name, id, state, options);
        }
    }

    public sealed class FmgSystemNetworkRouteArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Destination Ip/Mask.
        /// </summary>
        [Input("destination", required: true)]
        public Input<string> Destination { get; set; } = null!;

        /// <summary>
        /// Gateway out interface.
        /// </summary>
        [Input("device", required: true)]
        public Input<string> Device { get; set; } = null!;

        /// <summary>
        /// Gateway Ip.
        /// </summary>
        [Input("gateway", required: true)]
        public Input<string> Gateway { get; set; } = null!;

        /// <summary>
        /// Route id.
        /// </summary>
        [Input("routeId", required: true)]
        public Input<int> RouteId { get; set; } = null!;

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

    public sealed class FmgSystemNetworkRouteState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Destination Ip/Mask.
        /// </summary>
        [Input("destination")]
        public Input<string>? Destination { get; set; }

        /// <summary>
        /// Gateway out interface.
        /// </summary>
        [Input("device")]
        public Input<string>? Device { get; set; }

        /// <summary>
        /// Gateway Ip.
        /// </summary>
        [Input("gateway")]
        public Input<string>? Gateway { get; set; }

        /// <summary>
        /// Route id.
        /// </summary>
        [Input("routeId")]
        public Input<int>? RouteId { get; set; }

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