// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Sql.Models
{
    using Newtonsoft.Json;
    using Newtonsoft.Json.Converters;
    using System.Runtime;
    using System.Runtime.Serialization;

    /// <summary>
    /// Defines values for SensitivityLabelSource.
    /// </summary>
    [JsonConverter(typeof(StringEnumConverter))]
    public enum SensitivityLabelSource
    {
        [EnumMember(Value = "current")]
        Current,
        [EnumMember(Value = "recommended")]
        Recommended
    }
    internal static class SensitivityLabelSourceEnumExtension
    {
        internal static string ToSerializedValue(this SensitivityLabelSource? value)
        {
            return value == null ? null : ((SensitivityLabelSource)value).ToSerializedValue();
        }

        internal static string ToSerializedValue(this SensitivityLabelSource value)
        {
            switch( value )
            {
                case SensitivityLabelSource.Current:
                    return "current";
                case SensitivityLabelSource.Recommended:
                    return "recommended";
            }
            return null;
        }

        internal static SensitivityLabelSource? ParseSensitivityLabelSource(this string value)
        {
            switch( value )
            {
                case "current":
                    return SensitivityLabelSource.Current;
                case "recommended":
                    return SensitivityLabelSource.Recommended;
            }
            return null;
        }
    }
}
