internal static FrontDoorCustomDomainHttpsContent DeserializeFrontDoorCustomDomainHttpsContent(JsonElement element) { FrontDoorCertificateType certificateType = default; Optional <FrontDoorMinimumTlsVersion> minimumTlsVersion = default; Optional <FrontDoorCustomDomainHttpsContentSecret> secret = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("certificateType")) { certificateType = new FrontDoorCertificateType(property.Value.GetString()); continue; } if (property.NameEquals("minimumTlsVersion")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } minimumTlsVersion = property.Value.GetString().ToFrontDoorMinimumTlsVersion(); continue; } if (property.NameEquals("secret")) { if (property.Value.ValueKind == JsonValueKind.Null) { secret = null; continue; } secret = FrontDoorCustomDomainHttpsContentSecret.DeserializeFrontDoorCustomDomainHttpsContentSecret(property.Value); continue; } } return(new FrontDoorCustomDomainHttpsContent(certificateType, Optional.ToNullable(minimumTlsVersion), secret.Value)); }
internal FrontDoorCustomDomainHttpsContent(FrontDoorCertificateType certificateType, FrontDoorMinimumTlsVersion?minimumTlsVersion, FrontDoorCustomDomainHttpsContentSecret secret) { CertificateType = certificateType; MinimumTlsVersion = minimumTlsVersion; Secret = secret; }
public FrontDoorCustomDomainHttpsContent(FrontDoorCertificateType certificateType) { CertificateType = certificateType; }