using System.Runtime.Serialization;
using Newtonsoft.Json.Converters;
namespace AMWD.Net.Api.Cloudflare.Zones
{
///
/// The maximum HTTP version supported by the origin server.
///
public class OriginMaxHTTPVersion : ZoneSettingBase
{
///
/// Initializes a new instance of the class.
///
public OriginMaxHTTPVersion()
{
Id = ZoneSettingId.OriginMaxHTTPVersion;
}
///
/// The value of the feature.
///
[JsonProperty("value")]
public HttpVersion Value { get; set; }
}
///
/// HTTP versions.
/// Source
///
[JsonConverter(typeof(StringEnumConverter))]
public enum HttpVersion
{
///
/// HTTP/1
///
[EnumMember(Value = "1")]
HTTP1 = 1,
///
/// HTTP/2
///
[EnumMember(Value = "2")]
HTTP2 = 2
}
}