| | 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.Network.Models |
| | 12 | | { |
| | 13 | | /// <summary> Next hop type. </summary> |
| | 14 | | public readonly partial struct NextHopType : IEquatable<NextHopType> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="NextHopType"/> values are the same. </summary> |
| | 19 | | public NextHopType(string value) |
| | 20 | | { |
| 8 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 8 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string InternetValue = "Internet"; |
| | 25 | | private const string VirtualApplianceValue = "VirtualAppliance"; |
| | 26 | | private const string VirtualNetworkGatewayValue = "VirtualNetworkGateway"; |
| | 27 | | private const string VnetLocalValue = "VnetLocal"; |
| | 28 | | private const string HyperNetGatewayValue = "HyperNetGateway"; |
| | 29 | | private const string NoneValue = "None"; |
| | 30 | |
|
| | 31 | | /// <summary> Internet. </summary> |
| 0 | 32 | | public static NextHopType Internet { get; } = new NextHopType(InternetValue); |
| | 33 | | /// <summary> VirtualAppliance. </summary> |
| 0 | 34 | | public static NextHopType VirtualAppliance { get; } = new NextHopType(VirtualApplianceValue); |
| | 35 | | /// <summary> VirtualNetworkGateway. </summary> |
| 0 | 36 | | public static NextHopType VirtualNetworkGateway { get; } = new NextHopType(VirtualNetworkGatewayValue); |
| | 37 | | /// <summary> VnetLocal. </summary> |
| 0 | 38 | | public static NextHopType VnetLocal { get; } = new NextHopType(VnetLocalValue); |
| | 39 | | /// <summary> HyperNetGateway. </summary> |
| 0 | 40 | | public static NextHopType HyperNetGateway { get; } = new NextHopType(HyperNetGatewayValue); |
| | 41 | | /// <summary> None. </summary> |
| 0 | 42 | | public static NextHopType None { get; } = new NextHopType(NoneValue); |
| | 43 | | /// <summary> Determines if two <see cref="NextHopType"/> values are the same. </summary> |
| 0 | 44 | | public static bool operator ==(NextHopType left, NextHopType right) => left.Equals(right); |
| | 45 | | /// <summary> Determines if two <see cref="NextHopType"/> values are not the same. </summary> |
| 0 | 46 | | public static bool operator !=(NextHopType left, NextHopType right) => !left.Equals(right); |
| | 47 | | /// <summary> Converts a string to a <see cref="NextHopType"/>. </summary> |
| 0 | 48 | | public static implicit operator NextHopType(string value) => new NextHopType(value); |
| | 49 | |
|
| | 50 | | /// <inheritdoc /> |
| | 51 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 52 | | public override bool Equals(object obj) => obj is NextHopType other && Equals(other); |
| | 53 | | /// <inheritdoc /> |
| 0 | 54 | | public bool Equals(NextHopType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIg |
| | 55 | |
|
| | 56 | | /// <inheritdoc /> |
| | 57 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 58 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 59 | | /// <inheritdoc /> |
| 4 | 60 | | public override string ToString() => _value; |
| | 61 | | } |
| | 62 | | } |