RoutingRuleNextHop Class

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

Implements

public final class RoutingRuleNextHop
implements JsonSerializable<RoutingRuleNextHop>

Next hop.

Constructor Summary

Constructor Description
RoutingRuleNextHop()

Creates an instance of RoutingRuleNextHop class.

Method Summary

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

Reads an instance of RoutingRuleNextHop from the JsonReader.

String nextHopAddress()

Get the nextHopAddress property: Next hop address.

RoutingRuleNextHopType nextHopType()

Get the nextHopType property: Next hop type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoutingRuleNextHop withNextHopAddress(String nextHopAddress)

Set the nextHopAddress property: Next hop address.

RoutingRuleNextHop withNextHopType(RoutingRuleNextHopType nextHopType)

Set the nextHopType property: Next hop type.

Methods inherited from java.lang.Object

Constructor Details

RoutingRuleNextHop

public RoutingRuleNextHop()

Creates an instance of RoutingRuleNextHop class.

Method Details

fromJson

public static RoutingRuleNextHop fromJson(JsonReader jsonReader)

Reads an instance of RoutingRuleNextHop from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoutingRuleNextHop 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.

nextHopAddress

public String nextHopAddress()

Get the nextHopAddress property: Next hop address. Only required if the next hop type is VirtualAppliance.

Returns:

the nextHopAddress value.

nextHopType

public RoutingRuleNextHopType nextHopType()

Get the nextHopType property: Next hop type.

Returns:

the nextHopType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNextHopAddress

public RoutingRuleNextHop withNextHopAddress(String nextHopAddress)

Set the nextHopAddress property: Next hop address. Only required if the next hop type is VirtualAppliance.

Parameters:

nextHopAddress - the nextHopAddress value to set.

Returns:

the RoutingRuleNextHop object itself.

withNextHopType

public RoutingRuleNextHop withNextHopType(RoutingRuleNextHopType nextHopType)

Set the nextHopType property: Next hop type.

Parameters:

nextHopType - the nextHopType value to set.

Returns:

the RoutingRuleNextHop object itself.

Applies to