Class CircuitMetadataMap

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

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

    • CircuitMetadataMap

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

    • name

      public String name()
      Get the name property: Express Route Circuit Name.
      Returns:
      the name value.
    • withName

      public CircuitMetadataMap withName(String name)
      Set the name property: Express Route Circuit Name.
      Parameters:
      name - the name value to set.
      Returns:
      the CircuitMetadataMap object itself.
    • link

      public String link()
      Get the link property: Link to the Express Route circuit.
      Returns:
      the link value.
    • withLink

      public CircuitMetadataMap withLink(String link)
      Set the link property: Link to the Express Route circuit.
      Parameters:
      link - the link value to set.
      Returns:
      the CircuitMetadataMap object itself.
    • location

      public String location()
      Get the location property: Peering location of the Express Route Circuit.
      Returns:
      the location value.
    • withLocation

      public CircuitMetadataMap withLocation(String location)
      Set the location property: Peering location of the Express Route Circuit.
      Parameters:
      location - the location value to set.
      Returns:
      the CircuitMetadataMap 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<CircuitMetadataMap>
      Throws:
      IOException
    • fromJson

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