github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs-edgeorder/dotnet/Enums.cs (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 using System; 5 using System.ComponentModel; 6 using Pulumi; 7 8 namespace Pulumi.Myedgeorder 9 { 10 /// <summary> 11 /// Type of product filter. 12 /// </summary> 13 [EnumType] 14 public readonly struct SupportedFilterTypes : IEquatable<SupportedFilterTypes> 15 { 16 private readonly string _value; 17 18 private SupportedFilterTypes(string value) 19 { 20 _value = value ?? throw new ArgumentNullException(nameof(value)); 21 } 22 23 /// <summary> 24 /// Ship to country 25 /// </summary> 26 public static SupportedFilterTypes ShipToCountries { get; } = new SupportedFilterTypes("ShipToCountries"); 27 /// <summary> 28 /// Double encryption status 29 /// </summary> 30 public static SupportedFilterTypes DoubleEncryptionStatus { get; } = new SupportedFilterTypes("DoubleEncryptionStatus"); 31 32 public static bool operator ==(SupportedFilterTypes left, SupportedFilterTypes right) => left.Equals(right); 33 public static bool operator !=(SupportedFilterTypes left, SupportedFilterTypes right) => !left.Equals(right); 34 35 public static explicit operator string(SupportedFilterTypes value) => value._value; 36 37 [EditorBrowsable(EditorBrowsableState.Never)] 38 public override bool Equals(object? obj) => obj is SupportedFilterTypes other && Equals(other); 39 public bool Equals(SupportedFilterTypes other) => string.Equals(_value, other._value, StringComparison.Ordinal); 40 41 [EditorBrowsable(EditorBrowsableState.Never)] 42 public override int GetHashCode() => _value?.GetHashCode() ?? 0; 43 44 public override string ToString() => _value; 45 } 46 }