// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.ComponentModel;
using Pulumi;

namespace Pulumi.Myedgeorder
{
    /// <summary>
    /// Type of product filter.
    /// </summary>
    [EnumType]
    public readonly struct SupportedFilterTypes : IEquatable<SupportedFilterTypes>
    {
        private readonly string _value;

        private SupportedFilterTypes(string value)
        {
            _value = value ?? throw new ArgumentNullException(nameof(value));
        }

        /// <summary>
        /// Ship to country
        /// </summary>
        public static SupportedFilterTypes ShipToCountries { get; } = new SupportedFilterTypes("ShipToCountries");
        /// <summary>
        /// Double encryption status
        /// </summary>
        public static SupportedFilterTypes DoubleEncryptionStatus { get; } = new SupportedFilterTypes("DoubleEncryptionStatus");

        public static bool operator ==(SupportedFilterTypes left, SupportedFilterTypes right) => left.Equals(right);
        public static bool operator !=(SupportedFilterTypes left, SupportedFilterTypes right) => !left.Equals(right);

        public static explicit operator string(SupportedFilterTypes value) => value._value;

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override bool Equals(object? obj) => obj is SupportedFilterTypes other && Equals(other);
        public bool Equals(SupportedFilterTypes other) => string.Equals(_value, other._value, StringComparison.Ordinal);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override int GetHashCode() => _value?.GetHashCode() ?? 0;

        public override string ToString() => _value;
    }
}
