|  |  | 1 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 2 |  | // Licensed under the MIT License. | 
|  |  | 3 |  |  | 
|  |  | 4 |  | // <auto-generated/> | 
|  |  | 5 |  |  | 
|  |  | 6 |  | #nullable disable | 
|  |  | 7 |  |  | 
|  |  | 8 |  | using System; | 
|  |  | 9 |  | using System.ComponentModel; | 
|  |  | 10 |  |  | 
|  |  | 11 |  | namespace Azure.ResourceManager.DigitalTwins.Models | 
|  |  | 12 |  | { | 
|  |  | 13 |  |     /// <summary> The provisioning state. </summary> | 
|  |  | 14 |  |     public readonly partial struct ProvisioningState : IEquatable<ProvisioningState> | 
|  |  | 15 |  |     { | 
|  |  | 16 |  |         private readonly string _value; | 
|  |  | 17 |  |  | 
|  |  | 18 |  |         /// <summary> Determines if two <see cref="ProvisioningState"/> values are the same. </summary> | 
|  |  | 19 |  |         /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> | 
|  |  | 20 |  |         public ProvisioningState(string value) | 
|  |  | 21 |  |         { | 
|  | 52 | 22 |  |             _value = value ?? throw new ArgumentNullException(nameof(value)); | 
|  | 52 | 23 |  |         } | 
|  |  | 24 |  |  | 
|  |  | 25 |  |         private const string ProvisioningValue = "Provisioning"; | 
|  |  | 26 |  |         private const string DeletingValue = "Deleting"; | 
|  |  | 27 |  |         private const string SucceededValue = "Succeeded"; | 
|  |  | 28 |  |         private const string FailedValue = "Failed"; | 
|  |  | 29 |  |         private const string CanceledValue = "Canceled"; | 
|  |  | 30 |  |  | 
|  |  | 31 |  |         /// <summary> Provisioning. </summary> | 
|  | 0 | 32 |  |         public static ProvisioningState Provisioning { get; } = new ProvisioningState(ProvisioningValue); | 
|  |  | 33 |  |         /// <summary> Deleting. </summary> | 
|  | 0 | 34 |  |         public static ProvisioningState Deleting { get; } = new ProvisioningState(DeletingValue); | 
|  |  | 35 |  |         /// <summary> Succeeded. </summary> | 
|  | 14 | 36 |  |         public static ProvisioningState Succeeded { get; } = new ProvisioningState(SucceededValue); | 
|  |  | 37 |  |         /// <summary> Failed. </summary> | 
|  | 0 | 38 |  |         public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); | 
|  |  | 39 |  |         /// <summary> Canceled. </summary> | 
|  | 0 | 40 |  |         public static ProvisioningState Canceled { get; } = new ProvisioningState(CanceledValue); | 
|  |  | 41 |  |         /// <summary> Determines if two <see cref="ProvisioningState"/> values are the same. </summary> | 
|  | 0 | 42 |  |         public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); | 
|  |  | 43 |  |         /// <summary> Determines if two <see cref="ProvisioningState"/> values are not the same. </summary> | 
|  | 0 | 44 |  |         public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); | 
|  |  | 45 |  |         /// <summary> Converts a string to a <see cref="ProvisioningState"/>. </summary> | 
|  | 0 | 46 |  |         public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); | 
|  |  | 47 |  |  | 
|  |  | 48 |  |         /// <inheritdoc /> | 
|  |  | 49 |  |         [EditorBrowsable(EditorBrowsableState.Never)] | 
|  | 12 | 50 |  |         public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); | 
|  |  | 51 |  |         /// <inheritdoc /> | 
|  | 12 | 52 |  |         public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCul | 
|  |  | 53 |  |  | 
|  |  | 54 |  |         /// <inheritdoc /> | 
|  |  | 55 |  |         [EditorBrowsable(EditorBrowsableState.Never)] | 
|  | 0 | 56 |  |         public override int GetHashCode() => _value?.GetHashCode() ?? 0; | 
|  |  | 57 |  |         /// <inheritdoc /> | 
|  | 0 | 58 |  |         public override string ToString() => _value; | 
|  |  | 59 |  |     } | 
|  |  | 60 |  | } |