Class ExpressRouteCircuitRoutesTable

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

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

    • ExpressRouteCircuitRoutesTable

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

    • network

      public String network()
      Get the network property: IP address of a network entity.
      Returns:
      the network value.
    • withNetwork

      public ExpressRouteCircuitRoutesTable withNetwork(String network)
      Set the network property: IP address of a network entity.
      Parameters:
      network - the network value to set.
      Returns:
      the ExpressRouteCircuitRoutesTable object itself.
    • nextHop

      public String nextHop()
      Get the nextHop property: NextHop address.
      Returns:
      the nextHop value.
    • withNextHop

      public ExpressRouteCircuitRoutesTable withNextHop(String nextHop)
      Set the nextHop property: NextHop address.
      Parameters:
      nextHop - the nextHop value to set.
      Returns:
      the ExpressRouteCircuitRoutesTable object itself.
    • locPrf

      public String locPrf()
      Get the locPrf property: Local preference value as set with the set local-preference route-map configuration command.
      Returns:
      the locPrf value.
    • withLocPrf

      public ExpressRouteCircuitRoutesTable withLocPrf(String locPrf)
      Set the locPrf property: Local preference value as set with the set local-preference route-map configuration command.
      Parameters:
      locPrf - the locPrf value to set.
      Returns:
      the ExpressRouteCircuitRoutesTable object itself.
    • weight

      public Integer weight()
      Get the weight property: Route Weight.
      Returns:
      the weight value.
    • withWeight

      public ExpressRouteCircuitRoutesTable withWeight(Integer weight)
      Set the weight property: Route Weight.
      Parameters:
      weight - the weight value to set.
      Returns:
      the ExpressRouteCircuitRoutesTable object itself.
    • path

      public String path()
      Get the path property: Autonomous system paths to the destination network.
      Returns:
      the path value.
    • withPath

      public ExpressRouteCircuitRoutesTable withPath(String path)
      Set the path property: Autonomous system paths to the destination network.
      Parameters:
      path - the path value to set.
      Returns:
      the ExpressRouteCircuitRoutesTable 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<ExpressRouteCircuitRoutesTable>
      Throws:
      IOException
    • fromJson

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