<filename>sdk/dotnet/Iface/ListMember.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;

namespace Pulumi.Routeros.Iface
{
    /// <summary>
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Routeros = Pulumi.Routeros;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var listMember = new Routeros.Iface.ListMember("listMember", new()
    ///     {
    ///         Interface = "ether1",
    ///         List = "my-list",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// #The ID can be found via API or the terminal #The command for the terminal is -&gt; :put [/interface/list/member get [print show-ids]]
    /// 
    /// ```sh
    ///  $ pulumi import routeros:Iface/listMember:ListMember list_member "*0"
    /// ```
    /// </summary>
    [RouterosResourceType("routeros:Iface/listMember:ListMember")]
    public partial class ListMember : global::Pulumi.CustomResource
    {
        /// <summary>
        /// &lt;em&gt;Resource ID type (.id / name). This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Output("___id_")]
        public Output<int?> ___id_ { get; private set; } = null!;

        /// <summary>
        /// &lt;em&gt;Resource path for CRUD operations. This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Output("___path_")]
        public Output<string?> ___path_ { get; private set; } = null!;

        [Output("disabled")]
        public Output<bool?> Disabled { get; private set; } = null!;

        [Output("dynamic")]
        public Output<bool> Dynamic { get; private set; } = null!;

        [Output("interface")]
        public Output<string> Interface { get; private set; } = null!;

        [Output("list")]
        public Output<string> List { get; private set; } = null!;


        /// <summary>
        /// Create a ListMember 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 ListMember(string name, ListMemberArgs args, CustomResourceOptions? options = null)
            : base("routeros:Iface/listMember:ListMember", name, args ?? new ListMemberArgs(), MakeResourceOptions(options, ""))
        {
        }

        private ListMember(string name, Input<string> id, ListMemberState? state = null, CustomResourceOptions? options = null)
            : base("routeros:Iface/listMember:ListMember", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            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 ListMember 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 ListMember Get(string name, Input<string> id, ListMemberState? state = null, CustomResourceOptions? options = null)
        {
            return new ListMember(name, id, state, options);
        }
    }

    public sealed class ListMemberArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// &lt;em&gt;Resource ID type (.id / name). This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___id_")]
        public Input<int>? ___id_ { get; set; }

        /// <summary>
        /// &lt;em&gt;Resource path for CRUD operations. This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___path_")]
        public Input<string>? ___path_ { get; set; }

        [Input("disabled")]
        public Input<bool>? Disabled { get; set; }

        [Input("interface", required: true)]
        public Input<string> Interface { get; set; } = null!;

        [Input("list", required: true)]
        public Input<string> List { get; set; } = null!;

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

    public sealed class ListMemberState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// &lt;em&gt;Resource ID type (.id / name). This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___id_")]
        public Input<int>? ___id_ { get; set; }

        /// <summary>
        /// &lt;em&gt;Resource path for CRUD operations. This is an internal service field, setting a value is not required.&lt;/em&gt;
        /// </summary>
        [Input("___path_")]
        public Input<string>? ___path_ { get; set; }

        [Input("disabled")]
        public Input<bool>? Disabled { get; set; }

        [Input("dynamic")]
        public Input<bool>? Dynamic { get; set; }

        [Input("interface")]
        public Input<string>? Interface { get; set; }

        [Input("list")]
        public Input<string>? List { get; set; }

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