Class HeatMapEndpoint

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

public final class HeatMapEndpoint extends Object implements com.azure.json.JsonSerializable<HeatMapEndpoint>
Class which is a sparse representation of a Traffic Manager endpoint.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of HeatMapEndpoint class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the endpointId property: A number uniquely identifying this endpoint in query experiences.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of HeatMapEndpoint from the JsonReader.
    Get the resourceId property: The ARM Resource ID of this Traffic Manager endpoint.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withEndpointId(Integer endpointId)
    Set the endpointId property: A number uniquely identifying this endpoint in query experiences.
    withResourceId(String resourceId)
    Set the resourceId property: The ARM Resource ID of this Traffic Manager endpoint.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • HeatMapEndpoint

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

    • resourceId

      public String resourceId()
      Get the resourceId property: The ARM Resource ID of this Traffic Manager endpoint.
      Returns:
      the resourceId value.
    • withResourceId

      public HeatMapEndpoint withResourceId(String resourceId)
      Set the resourceId property: The ARM Resource ID of this Traffic Manager endpoint.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the HeatMapEndpoint object itself.
    • endpointId

      public Integer endpointId()
      Get the endpointId property: A number uniquely identifying this endpoint in query experiences.
      Returns:
      the endpointId value.
    • withEndpointId

      public HeatMapEndpoint withEndpointId(Integer endpointId)
      Set the endpointId property: A number uniquely identifying this endpoint in query experiences.
      Parameters:
      endpointId - the endpointId value to set.
      Returns:
      the HeatMapEndpoint 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<HeatMapEndpoint>
      Throws:
      IOException
    • fromJson

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