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

using System;
using System.ComponentModel;
using Pulumi;

namespace Pulumi.AwsxGo.Ecr
{
    [EnumType]
    public readonly struct LifecycleTagStatus : IEquatable<LifecycleTagStatus>
    {
        private readonly string _value;

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

        /// <summary>
        /// Evaluate rule against all images
        /// </summary>
        public static LifecycleTagStatus Any { get; } = new LifecycleTagStatus("any");
        /// <summary>
        /// Only evaluate rule against untagged images
        /// </summary>
        public static LifecycleTagStatus Untagged { get; } = new LifecycleTagStatus("untagged");
        /// <summary>
        /// Only evaluated rule against images with specified prefixes
        /// </summary>
        public static LifecycleTagStatus Tagged { get; } = new LifecycleTagStatus("tagged");

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

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

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

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

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