VirtualHubRouteV2 Class

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

Implements

public final class VirtualHubRouteV2
implements JsonSerializable<VirtualHubRouteV2>

VirtualHubRouteTableV2 route.

Constructor Summary

Constructor Description
VirtualHubRouteV2()

Creates an instance of VirtualHubRouteV2 class.

Method Summary

Modifier and Type Method and Description
String destinationType()

Get the destinationType property: The type of destinations.

List<String> destinations()

Get the destinations property: List of all destinations.

static VirtualHubRouteV2 fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubRouteV2 from the JsonReader.

String nextHopType()

Get the nextHopType property: The type of next hops.

List<String> nextHops()

Get the nextHops property: NextHops ip address.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualHubRouteV2 withDestinationType(String destinationType)

Set the destinationType property: The type of destinations.

VirtualHubRouteV2 withDestinations(List<String> destinations)

Set the destinations property: List of all destinations.

VirtualHubRouteV2 withNextHopType(String nextHopType)

Set the nextHopType property: The type of next hops.

VirtualHubRouteV2 withNextHops(List<String> nextHops)

Set the nextHops property: NextHops ip address.

Methods inherited from java.lang.Object

Constructor Details

VirtualHubRouteV2

public VirtualHubRouteV2()

Creates an instance of VirtualHubRouteV2 class.

Method Details

destinationType

public String destinationType()

Get the destinationType property: The type of destinations.

Returns:

the destinationType value.

destinations

public List destinations()

Get the destinations property: List of all destinations.

Returns:

the destinations value.

fromJson

public static VirtualHubRouteV2 fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubRouteV2 from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nextHopType

public String nextHopType()

Get the nextHopType property: The type of next hops.

Returns:

the nextHopType value.

nextHops

public List nextHops()

Get the nextHops property: NextHops ip address.

Returns:

the nextHops value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestinationType

public VirtualHubRouteV2 withDestinationType(String destinationType)

Set the destinationType property: The type of destinations.

Parameters:

destinationType - the destinationType value to set.

Returns:

the VirtualHubRouteV2 object itself.

withDestinations

public VirtualHubRouteV2 withDestinations(List destinations)

Set the destinations property: List of all destinations.

Parameters:

destinations - the destinations value to set.

Returns:

the VirtualHubRouteV2 object itself.

withNextHopType

public VirtualHubRouteV2 withNextHopType(String nextHopType)

Set the nextHopType property: The type of next hops.

Parameters:

nextHopType - the nextHopType value to set.

Returns:

the VirtualHubRouteV2 object itself.

withNextHops

public VirtualHubRouteV2 withNextHops(List nextHops)

Set the nextHops property: NextHops ip address.

Parameters:

nextHops - the nextHops value to set.

Returns:

the VirtualHubRouteV2 object itself.

Applies to