| | 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> Name of an application gateway SKU. </summary> |
| | 14 | | public readonly partial struct ApplicationGatewaySkuName : IEquatable<ApplicationGatewaySkuName> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="ApplicationGatewaySkuName"/> values are the same. </summary> |
| | 19 | | public ApplicationGatewaySkuName(string value) |
| | 20 | | { |
| 0 | 21 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 22 | | } |
| | 23 | |
|
| | 24 | | private const string StandardSmallValue = "Standard_Small"; |
| | 25 | | private const string StandardMediumValue = "Standard_Medium"; |
| | 26 | | private const string StandardLargeValue = "Standard_Large"; |
| | 27 | | private const string WAFMediumValue = "WAF_Medium"; |
| | 28 | | private const string WAFLargeValue = "WAF_Large"; |
| | 29 | | private const string StandardV2Value = "Standard_v2"; |
| | 30 | | private const string WAFV2Value = "WAF_v2"; |
| | 31 | |
|
| | 32 | | /// <summary> Standard_Small. </summary> |
| 0 | 33 | | public static ApplicationGatewaySkuName StandardSmall { get; } = new ApplicationGatewaySkuName(StandardSmallValu |
| | 34 | | /// <summary> Standard_Medium. </summary> |
| 0 | 35 | | public static ApplicationGatewaySkuName StandardMedium { get; } = new ApplicationGatewaySkuName(StandardMediumVa |
| | 36 | | /// <summary> Standard_Large. </summary> |
| 0 | 37 | | public static ApplicationGatewaySkuName StandardLarge { get; } = new ApplicationGatewaySkuName(StandardLargeValu |
| | 38 | | /// <summary> WAF_Medium. </summary> |
| 0 | 39 | | public static ApplicationGatewaySkuName WAFMedium { get; } = new ApplicationGatewaySkuName(WAFMediumValue); |
| | 40 | | /// <summary> WAF_Large. </summary> |
| 0 | 41 | | public static ApplicationGatewaySkuName WAFLarge { get; } = new ApplicationGatewaySkuName(WAFLargeValue); |
| | 42 | | /// <summary> Standard_v2. </summary> |
| 0 | 43 | | public static ApplicationGatewaySkuName StandardV2 { get; } = new ApplicationGatewaySkuName(StandardV2Value); |
| | 44 | | /// <summary> WAF_v2. </summary> |
| 0 | 45 | | public static ApplicationGatewaySkuName WAFV2 { get; } = new ApplicationGatewaySkuName(WAFV2Value); |
| | 46 | | /// <summary> Determines if two <see cref="ApplicationGatewaySkuName"/> values are the same. </summary> |
| 0 | 47 | | public static bool operator ==(ApplicationGatewaySkuName left, ApplicationGatewaySkuName right) => left.Equals(r |
| | 48 | | /// <summary> Determines if two <see cref="ApplicationGatewaySkuName"/> values are not the same. </summary> |
| 0 | 49 | | public static bool operator !=(ApplicationGatewaySkuName left, ApplicationGatewaySkuName right) => !left.Equals( |
| | 50 | | /// <summary> Converts a string to a <see cref="ApplicationGatewaySkuName"/>. </summary> |
| 0 | 51 | | public static implicit operator ApplicationGatewaySkuName(string value) => new ApplicationGatewaySkuName(value); |
| | 52 | |
|
| | 53 | | /// <inheritdoc /> |
| | 54 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 55 | | public override bool Equals(object obj) => obj is ApplicationGatewaySkuName other && Equals(other); |
| | 56 | | /// <inheritdoc /> |
| 0 | 57 | | public bool Equals(ApplicationGatewaySkuName other) => string.Equals(_value, other._value, StringComparison.Inva |
| | 58 | |
|
| | 59 | | /// <inheritdoc /> |
| | 60 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 61 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 62 | | /// <inheritdoc /> |
| 0 | 63 | | public override string ToString() => _value; |
| | 64 | | } |
| | 65 | | } |