RouteNextHopEcmp Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. RouteNextHopEcmp
- com.
Implements
public final class RouteNextHopEcmp
implements JsonSerializable<RouteNextHopEcmp>
The next hop definition for ECMP routes containing multiple next hop IP addresses.
Constructor Summary
| Constructor | Description |
|---|---|
| RouteNextHopEcmp() |
Creates an instance of Route |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Route |
fromJson(JsonReader jsonReader)
Reads an instance of Route |
| List<String> |
nextHopIpAddresses()
Get the next |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Route |
withNextHopIpAddresses(List<String> nextHopIpAddresses)
Set the next |
Methods inherited from java.lang.Object
Constructor Details
RouteNextHopEcmp
public RouteNextHopEcmp()
Creates an instance of RouteNextHopEcmp class.
Method Details
fromJson
public static RouteNextHopEcmp fromJson(JsonReader jsonReader)
Reads an instance of RouteNextHopEcmp from the JsonReader.
Parameters:
Returns:
Throws:
nextHopIpAddresses
public List<String> nextHopIpAddresses()
Get the nextHopIpAddresses property: List of next hop IP addresses for ECMP routing. Must contain between 2 and 64 IP addresses.
Returns:
toJson
validate
public void validate()
Validates the instance.
withNextHopIpAddresses
public RouteNextHopEcmp withNextHopIpAddresses(List<String> nextHopIpAddresses)
Set the nextHopIpAddresses property: List of next hop IP addresses for ECMP routing. Must contain between 2 and 64 IP addresses.
Parameters:
Returns: