Class AfdDomainHttpsParameters

java.lang.Object
com.azure.resourcemanager.cdn.models.AfdDomainHttpsParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdDomainHttpsParameters>

public final class AfdDomainHttpsParameters extends Object implements com.azure.json.JsonSerializable<AfdDomainHttpsParameters>
The JSON object that contains the properties to secure a domain.
  • Constructor Details

    • AfdDomainHttpsParameters

      public AfdDomainHttpsParameters()
      Creates an instance of AfdDomainHttpsParameters class.
  • Method Details

    • certificateType

      public AfdCertificateType certificateType()
      Get the certificateType property: Defines the source of the SSL certificate.
      Returns:
      the certificateType value.
    • withCertificateType

      public AfdDomainHttpsParameters withCertificateType(AfdCertificateType certificateType)
      Set the certificateType property: Defines the source of the SSL certificate.
      Parameters:
      certificateType - the certificateType value to set.
      Returns:
      the AfdDomainHttpsParameters object itself.
    • minimumTlsVersion

      public AfdMinimumTlsVersion minimumTlsVersion()
      Get the minimumTlsVersion property: TLS protocol version that will be used for Https.
      Returns:
      the minimumTlsVersion value.
    • withMinimumTlsVersion

      public AfdDomainHttpsParameters withMinimumTlsVersion(AfdMinimumTlsVersion minimumTlsVersion)
      Set the minimumTlsVersion property: TLS protocol version that will be used for Https.
      Parameters:
      minimumTlsVersion - the minimumTlsVersion value to set.
      Returns:
      the AfdDomainHttpsParameters object itself.
    • secret

      public ResourceReference secret()
      Get the secret property: Resource reference to the secret. ie. subs/rg/profile/secret.
      Returns:
      the secret value.
    • withSecret

      public AfdDomainHttpsParameters withSecret(ResourceReference secret)
      Set the secret property: Resource reference to the secret. ie. subs/rg/profile/secret.
      Parameters:
      secret - the secret value to set.
      Returns:
      the AfdDomainHttpsParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AfdDomainHttpsParameters>
      Throws:
      IOException
    • fromJson

      public static AfdDomainHttpsParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AfdDomainHttpsParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AfdDomainHttpsParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the AfdDomainHttpsParameters.