Class ResourcesResponseCustomDomainsItem

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

public final class ResourcesResponseCustomDomainsItem extends Object implements com.azure.json.JsonSerializable<ResourcesResponseCustomDomainsItem>
The ResourcesResponseCustomDomainsItem model.
  • Constructor Details

    • ResourcesResponseCustomDomainsItem

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

    • id

      public String id()
      Get the id property: The id property.
      Returns:
      the id value.
    • withId

      Set the id property: The id property.
      Parameters:
      id - the id value to set.
      Returns:
      the ResourcesResponseCustomDomainsItem object itself.
    • name

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

      Set the name property: The name property.
      Parameters:
      name - the name value to set.
      Returns:
      the ResourcesResponseCustomDomainsItem object itself.
    • endpointId

      public String endpointId()
      Get the endpointId property: The endpointId property.
      Returns:
      the endpointId value.
    • withEndpointId

      public ResourcesResponseCustomDomainsItem withEndpointId(String endpointId)
      Set the endpointId property: The endpointId property.
      Parameters:
      endpointId - the endpointId value to set.
      Returns:
      the ResourcesResponseCustomDomainsItem object itself.
    • history

      public Boolean history()
      Get the history property: The history property.
      Returns:
      the history value.
    • withHistory

      public ResourcesResponseCustomDomainsItem withHistory(Boolean history)
      Set the history property: The history property.
      Parameters:
      history - the history value to set.
      Returns:
      the ResourcesResponseCustomDomainsItem 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<ResourcesResponseCustomDomainsItem>
      Throws:
      IOException
    • fromJson

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