Class ResourcesResponseEndpointsPropertiesItemsItem

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

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

    • ResourcesResponseEndpointsPropertiesItemsItem

      public ResourcesResponseEndpointsPropertiesItemsItem()
      Creates an instance of ResourcesResponseEndpointsPropertiesItemsItem 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 ResourcesResponseEndpointsPropertiesItemsItem 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 ResourcesResponseEndpointsPropertiesItemsItem object itself.
    • endpointId

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

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

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

      Set the history property: The history property.
      Parameters:
      history - the history value to set.
      Returns:
      the ResourcesResponseEndpointsPropertiesItemsItem 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<ResourcesResponseEndpointsPropertiesItemsItem>
      Throws:
      IOException
    • fromJson

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