Class ExpressRouteCrossConnectionRoutesTableSummary

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

public final class ExpressRouteCrossConnectionRoutesTableSummary extends Object implements com.azure.json.JsonSerializable<ExpressRouteCrossConnectionRoutesTableSummary>
The routes table associated with the ExpressRouteCircuit.
  • Constructor Details

    • ExpressRouteCrossConnectionRoutesTableSummary

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

    • neighbor

      public String neighbor()
      Get the neighbor property: IP address of Neighbor router.
      Returns:
      the neighbor value.
    • withNeighbor

      public ExpressRouteCrossConnectionRoutesTableSummary withNeighbor(String neighbor)
      Set the neighbor property: IP address of Neighbor router.
      Parameters:
      neighbor - the neighbor value to set.
      Returns:
      the ExpressRouteCrossConnectionRoutesTableSummary object itself.
    • asn

      public Integer asn()
      Get the asn property: Autonomous system number.
      Returns:
      the asn value.
    • withAsn

      Set the asn property: Autonomous system number.
      Parameters:
      asn - the asn value to set.
      Returns:
      the ExpressRouteCrossConnectionRoutesTableSummary object itself.
    • upDown

      public String upDown()
      Get the upDown property: The length of time that the BGP session has been in the Established state, or the current status if not in the Established state.
      Returns:
      the upDown value.
    • withUpDown

      Set the upDown property: The length of time that the BGP session has been in the Established state, or the current status if not in the Established state.
      Parameters:
      upDown - the upDown value to set.
      Returns:
      the ExpressRouteCrossConnectionRoutesTableSummary object itself.
    • stateOrPrefixesReceived

      public String stateOrPrefixesReceived()
      Get the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group.
      Returns:
      the stateOrPrefixesReceived value.
    • withStateOrPrefixesReceived

      public ExpressRouteCrossConnectionRoutesTableSummary withStateOrPrefixesReceived(String stateOrPrefixesReceived)
      Set the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group.
      Parameters:
      stateOrPrefixesReceived - the stateOrPrefixesReceived value to set.
      Returns:
      the ExpressRouteCrossConnectionRoutesTableSummary 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<ExpressRouteCrossConnectionRoutesTableSummary>
      Throws:
      IOException
    • fromJson

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