Class DeepCreatedCustomDomain

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

public final class DeepCreatedCustomDomain extends Object implements com.azure.json.JsonSerializable<DeepCreatedCustomDomain>
Custom domains created on the CDN endpoint.
  • Constructor Details

    • DeepCreatedCustomDomain

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

    • name

      public String name()
      Get the name property: Custom domain name.
      Returns:
      the name value.
    • withName

      public DeepCreatedCustomDomain withName(String name)
      Set the name property: Custom domain name.
      Parameters:
      name - the name value to set.
      Returns:
      the DeepCreatedCustomDomain object itself.
    • 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 DeepCreatedCustomDomain 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 DeepCreatedCustomDomain object itself.
    • validationData

      public String validationData()
      Get the validationData property: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
      Returns:
      the validationData value.
    • withValidationData

      public DeepCreatedCustomDomain withValidationData(String validationData)
      Set the validationData property: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
      Parameters:
      validationData - the validationData value to set.
      Returns:
      the DeepCreatedCustomDomain 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<DeepCreatedCustomDomain>
      Throws:
      IOException
    • fromJson

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