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 Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteCircuitRoutesTable class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteCircuitRoutesTable from the JsonReader.locPrf()Get the locPrf property: Local preference value as set with the set local-preference route-map configuration command.network()Get the network property: IP address of a network entity.nextHop()Get the nextHop property: NextHop address.path()Get the path property: Autonomous system paths to the destination network.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.weight()Get the weight property: Route Weight.withLocPrf(String locPrf) Set the locPrf property: Local preference value as set with the set local-preference route-map configuration command.withNetwork(String network) Set the network property: IP address of a network entity.withNextHop(String nextHop) Set the nextHop property: NextHop address.Set the path property: Autonomous system paths to the destination network.withWeight(Integer weight) Set the weight property: Route Weight.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExpressRouteCircuitRoutesTable
public ExpressRouteCircuitRoutesTable()Creates an instance of ExpressRouteCircuitRoutesTable class.
-
-
Method Details
-
network
Get the network property: IP address of a network entity.- Returns:
- the network value.
-
withNetwork
Set the network property: IP address of a network entity.- Parameters:
network- the network value to set.- Returns:
- the ExpressRouteCircuitRoutesTable object itself.
-
nextHop
Get the nextHop property: NextHop address.- Returns:
- the nextHop value.
-
withNextHop
Set the nextHop property: NextHop address.- Parameters:
nextHop- the nextHop value to set.- Returns:
- the ExpressRouteCircuitRoutesTable object itself.
-
locPrf
Get the locPrf property: Local preference value as set with the set local-preference route-map configuration command.- Returns:
- the locPrf value.
-
withLocPrf
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
Get the weight property: Route Weight.- Returns:
- the weight value.
-
withWeight
Set the weight property: Route Weight.- Parameters:
weight- the weight value to set.- Returns:
- the ExpressRouteCircuitRoutesTable object itself.
-
path
Get the path property: Autonomous system paths to the destination network.- Returns:
- the path value.
-
withPath
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
- Specified by:
toJsonin interfacecom.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.
-