RouteNextHopEcmp Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.RouteNextHopEcmp

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 RouteNextHopEcmp class.

Method Summary

Modifier and Type Method and Description
static RouteNextHopEcmp fromJson(JsonReader jsonReader)

Reads an instance of RouteNextHopEcmp from the JsonReader.

List<String> nextHopIpAddresses()

Get the nextHopIpAddresses property: List of next hop IP addresses for ECMP routing.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RouteNextHopEcmp withNextHopIpAddresses(List<String> nextHopIpAddresses)

Set the nextHopIpAddresses property: List of next hop IP addresses for ECMP routing.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of RouteNextHopEcmp if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the nextHopIpAddresses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

nextHopIpAddresses - the nextHopIpAddresses value to set.

Returns:

the RouteNextHopEcmp object itself.

Applies to