Class CustomDomainHttpsParameters

java.lang.Object
com.azure.resourcemanager.cdn.models.CustomDomainHttpsParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomDomainHttpsParameters>
Direct Known Subclasses:
CdnManagedHttpsParameters, UserManagedHttpsParameters

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

    • CustomDomainHttpsParameters

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

    • certificateSource

      public CertificateSource certificateSource()
      Get the certificateSource property: Defines the source of the SSL certificate.
      Returns:
      the certificateSource value.
    • protocolType

      public ProtocolType protocolType()
      Get the protocolType property: Defines the TLS extension protocol that is used for secure delivery.
      Returns:
      the protocolType value.
    • withProtocolType

      public CustomDomainHttpsParameters withProtocolType(ProtocolType protocolType)
      Set the protocolType property: Defines the TLS extension protocol that is used for secure delivery.
      Parameters:
      protocolType - the protocolType value to set.
      Returns:
      the CustomDomainHttpsParameters object itself.
    • minimumTlsVersion

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

      public CustomDomainHttpsParameters withMinimumTlsVersion(MinimumTlsVersion minimumTlsVersion)
      Set the minimumTlsVersion property: TLS protocol version that will be used for Https.
      Parameters:
      minimumTlsVersion - the minimumTlsVersion value to set.
      Returns:
      the CustomDomainHttpsParameters 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<CustomDomainHttpsParameters>
      Throws:
      IOException
    • fromJson

      public static CustomDomainHttpsParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomDomainHttpsParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomDomainHttpsParameters 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 CustomDomainHttpsParameters.