Class PeerRoute

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

public final class PeerRoute extends Object implements com.azure.json.JsonSerializable<PeerRoute>
Peer routing details.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the asPath property: The route's AS path sequence.
    static PeerRoute
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of PeerRoute from the JsonReader.
    Get the localAddress property: The peer's local address.
    Get the network property: The route's network prefix.
    Get the nextHop property: The route's next hop.
    Get the origin property: The source this route was learned from.
    Get the sourcePeer property: The peer this route was learned from.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the weight property: The route's weight.

    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

    • PeerRoute

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

    • localAddress

      public String localAddress()
      Get the localAddress property: The peer's local address.
      Returns:
      the localAddress value.
    • network

      public String network()
      Get the network property: The route's network prefix.
      Returns:
      the network value.
    • nextHop

      public String nextHop()
      Get the nextHop property: The route's next hop.
      Returns:
      the nextHop value.
    • sourcePeer

      public String sourcePeer()
      Get the sourcePeer property: The peer this route was learned from.
      Returns:
      the sourcePeer value.
    • origin

      public String origin()
      Get the origin property: The source this route was learned from.
      Returns:
      the origin value.
    • asPath

      public String asPath()
      Get the asPath property: The route's AS path sequence.
      Returns:
      the asPath value.
    • weight

      public Integer weight()
      Get the weight property: The route's weight.
      Returns:
      the weight value.
    • 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<PeerRoute>
      Throws:
      IOException
    • fromJson

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