Compartir a través de


VirtualHubRoute Class

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

Implements

public final class VirtualHubRoute
implements JsonSerializable<VirtualHubRoute>

VirtualHub route.

Constructor Summary

Constructor Description
VirtualHubRoute()

Creates an instance of VirtualHubRoute class.

Method Summary

Modifier and Type Method and Description
List<String> addressPrefixes()

Get the addressPrefixes property: List of all addressPrefixes.

static VirtualHubRoute fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubRoute from the JsonReader.

String nextHopIpAddress()

Get the nextHopIpAddress property: NextHop ip address.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualHubRoute withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: List of all addressPrefixes.

VirtualHubRoute withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: NextHop ip address.

Methods inherited from java.lang.Object

Constructor Details

VirtualHubRoute

public VirtualHubRoute()

Creates an instance of VirtualHubRoute class.

Method Details

addressPrefixes

public List addressPrefixes()

Get the addressPrefixes property: List of all addressPrefixes.

Returns:

the addressPrefixes value.

fromJson

public static VirtualHubRoute fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nextHopIpAddress

public String nextHopIpAddress()

Get the nextHopIpAddress property: NextHop ip address.

Returns:

the nextHopIpAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefixes

public VirtualHubRoute withAddressPrefixes(List addressPrefixes)

Set the addressPrefixes property: List of all addressPrefixes.

Parameters:

addressPrefixes - the addressPrefixes value to set.

Returns:

the VirtualHubRoute object itself.

withNextHopIpAddress

public VirtualHubRoute withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: NextHop ip address.

Parameters:

nextHopIpAddress - the nextHopIpAddress value to set.

Returns:

the VirtualHubRoute object itself.

Applies to