namespace AMWD.Net.Api.Cloudflare.Zones { /// /// Cloudflare security header for a zone. /// public class SecurityHeaders : ZoneSettingBase { /// /// Initializes a new instance of the class. /// public SecurityHeaders() { Id = ZoneSettingId.SecurityHeaders; } /// /// Current value of the zone setting. /// [JsonProperty("value")] public SecurityHeaderValue? Value { get; set; } } /// /// Current value of the zone setting. /// public class SecurityHeaderValue { /// /// Strict Transport Security. /// [JsonProperty("strict_transport_security")] public SecurityHeaderStrictTransportSecurity? StrictTransportSecurity { get; set; } } /// /// Strict Transport Security. /// public class SecurityHeaderStrictTransportSecurity { /// /// Whether or not strict transport security is enabled. /// [JsonProperty("enabled")] public bool? Enabled { get; set; } /// /// Include all subdomains for strict transport security. /// [JsonProperty("include_subdomains")] public bool? IncludeSubdomains { get; set; } /// /// Max age in seconds of the strict transport security. /// [JsonProperty("max_age")] public int? MaxAge { get; set; } /// /// Whether or not to include X-Content-Type-Options: nosniff header. /// [JsonProperty("nosniff")] public bool? NoSniff { get; set; } /// /// Enable automatic preload of the HSTS configuration. /// [JsonProperty("preload")] public bool? Preload { get; set; } } }