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 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 routes)

Set the routes property: List of all routes.

Parameters:

routes - the routes value to set.

Returns:

the VirtualHubRouteTable object itself.

Applies to