|  |  | 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.Analytics.Synapse.Artifacts.Models | 
|  |  | 12 |  | { | 
|  |  | 13 |  |     /// <summary> Parameter type. </summary> | 
|  |  | 14 |  |     public readonly partial struct ParameterType : IEquatable<ParameterType> | 
|  |  | 15 |  |     { | 
|  |  | 16 |  |         private readonly string _value; | 
|  |  | 17 |  |  | 
|  |  | 18 |  |         /// <summary> Determines if two <see cref="ParameterType"/> values are the same. </summary> | 
|  |  | 19 |  |         /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> | 
|  |  | 20 |  |         public ParameterType(string value) | 
|  |  | 21 |  |         { | 
|  | 0 | 22 |  |             _value = value ?? throw new ArgumentNullException(nameof(value)); | 
|  | 0 | 23 |  |         } | 
|  |  | 24 |  |  | 
|  |  | 25 |  |         private const string ObjectValue = "Object"; | 
|  |  | 26 |  |         private const string StringValue = "String"; | 
|  |  | 27 |  |         private const string IntValue = "Int"; | 
|  |  | 28 |  |         private const string FloatValue = "Float"; | 
|  |  | 29 |  |         private const string BoolValue = "Bool"; | 
|  |  | 30 |  |         private const string ArrayValue = "Array"; | 
|  |  | 31 |  |         private const string SecureStringValue = "SecureString"; | 
|  |  | 32 |  |  | 
|  |  | 33 |  |         /// <summary> Object. </summary> | 
|  | 0 | 34 |  |         public static ParameterType Object { get; } = new ParameterType(ObjectValue); | 
|  |  | 35 |  |         /// <summary> String. </summary> | 
|  | 0 | 36 |  |         public static ParameterType String { get; } = new ParameterType(StringValue); | 
|  |  | 37 |  |         /// <summary> Int. </summary> | 
|  | 0 | 38 |  |         public static ParameterType Int { get; } = new ParameterType(IntValue); | 
|  |  | 39 |  |         /// <summary> Float. </summary> | 
|  | 0 | 40 |  |         public static ParameterType Float { get; } = new ParameterType(FloatValue); | 
|  |  | 41 |  |         /// <summary> Bool. </summary> | 
|  | 0 | 42 |  |         public static ParameterType Bool { get; } = new ParameterType(BoolValue); | 
|  |  | 43 |  |         /// <summary> Array. </summary> | 
|  | 0 | 44 |  |         public static ParameterType Array { get; } = new ParameterType(ArrayValue); | 
|  |  | 45 |  |         /// <summary> SecureString. </summary> | 
|  | 0 | 46 |  |         public static ParameterType SecureString { get; } = new ParameterType(SecureStringValue); | 
|  |  | 47 |  |         /// <summary> Determines if two <see cref="ParameterType"/> values are the same. </summary> | 
|  | 0 | 48 |  |         public static bool operator ==(ParameterType left, ParameterType right) => left.Equals(right); | 
|  |  | 49 |  |         /// <summary> Determines if two <see cref="ParameterType"/> values are not the same. </summary> | 
|  | 0 | 50 |  |         public static bool operator !=(ParameterType left, ParameterType right) => !left.Equals(right); | 
|  |  | 51 |  |         /// <summary> Converts a string to a <see cref="ParameterType"/>. </summary> | 
|  | 0 | 52 |  |         public static implicit operator ParameterType(string value) => new ParameterType(value); | 
|  |  | 53 |  |  | 
|  |  | 54 |  |         /// <inheritdoc /> | 
|  |  | 55 |  |         [EditorBrowsable(EditorBrowsableState.Never)] | 
|  | 0 | 56 |  |         public override bool Equals(object obj) => obj is ParameterType other && Equals(other); | 
|  |  | 57 |  |         /// <inheritdoc /> | 
|  | 0 | 58 |  |         public bool Equals(ParameterType other) => string.Equals(_value, other._value, StringComparison.InvariantCulture | 
|  |  | 59 |  |  | 
|  |  | 60 |  |         /// <inheritdoc /> | 
|  |  | 61 |  |         [EditorBrowsable(EditorBrowsableState.Never)] | 
|  | 0 | 62 |  |         public override int GetHashCode() => _value?.GetHashCode() ?? 0; | 
|  |  | 63 |  |         /// <inheritdoc /> | 
|  | 0 | 64 |  |         public override string ToString() => _value; | 
|  |  | 65 |  |     } | 
|  |  | 66 |  | } |