Class CustomDomainParameters

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

public final class CustomDomainParameters extends Object implements com.azure.json.JsonSerializable<CustomDomainParameters>
The customDomain JSON object required for custom domain creation or update.
  • Constructor Details

    • CustomDomainParameters

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

    • hostname

      public String hostname()
      Get the hostname property: The host name of the custom domain. Must be a domain name.
      Returns:
      the hostname value.
    • withHostname

      public CustomDomainParameters withHostname(String hostname)
      Set the hostname property: The host name of the custom domain. Must be a domain name.
      Parameters:
      hostname - the hostname value to set.
      Returns:
      the CustomDomainParameters 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<CustomDomainParameters>
      Throws:
      IOException
    • fromJson

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