你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualHubRouteTable Class

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

Implements

public final class VirtualHubRouteTable
implements JsonSerializable<VirtualHubRouteTable>

VirtualHub route table.

Constructor Summary

Constructor Description
VirtualHubRouteTable()

Creates an instance of VirtualHubRouteTable class.

Method Summary

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

Reads an instance of VirtualHubRouteTable from the JsonReader.

List<VirtualHubRoute> routes()

Get the routes property: List of all routes.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualHubRouteTable withRoutes(List<VirtualHubRoute> routes)

Set the routes property: List of all routes.

Methods inherited from java.lang.Object

Constructor Details

VirtualHubRouteTable

public VirtualHubRouteTable()

Creates an instance of VirtualHubRouteTable class.

Method Details

fromJson

public static VirtualHubRouteTable fromJson(JsonReader jsonReader)

Reads an instance of VirtualHubRouteTable from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

routes

public List<VirtualHubRoute> routes()

Get the routes property: List of all routes.

Returns:

the routes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRoutes

public VirtualHubRouteTable withRoutes(List<VirtualHubRoute> routes)

Set the routes property: List of all routes.

Parameters:

routes - the routes value to set.

Returns:

the VirtualHubRouteTable object itself.

Applies to