VnetRoute Class

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

Implements

public final class VnetRoute
implements JsonSerializable<VnetRoute>

List of routes that control routing from VirtualHub into a virtual network connection.

Constructor Summary

Constructor Description
VnetRoute()

Creates an instance of VnetRoute class.

Method Summary

Modifier and Type Method and Description
List<SubResource> bgpConnections()

Get the bgpConnections property: The list of references to HubBgpConnection objects.

static VnetRoute fromJson(JsonReader jsonReader)

Reads an instance of VnetRoute from the JsonReader.

List<StaticRoute> staticRoutes()

Get the staticRoutes property: List of all Static Routes.

StaticRoutesConfig staticRoutesConfig()

Get the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VnetRoute withStaticRoutes(List<StaticRoute> staticRoutes)

Set the staticRoutes property: List of all Static Routes.

VnetRoute withStaticRoutesConfig(StaticRoutesConfig staticRoutesConfig)

Set the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.

Methods inherited from java.lang.Object

Constructor Details

VnetRoute

public VnetRoute()

Creates an instance of VnetRoute class.

Method Details

bgpConnections

public List bgpConnections()

Get the bgpConnections property: The list of references to HubBgpConnection objects.

Returns:

the bgpConnections value.

fromJson

public static VnetRoute fromJson(JsonReader jsonReader)

Reads an instance of VnetRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

staticRoutes

public List staticRoutes()

Get the staticRoutes property: List of all Static Routes.

Returns:

the staticRoutes value.

staticRoutesConfig

public StaticRoutesConfig staticRoutesConfig()

Get the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.

Returns:

the staticRoutesConfig value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withStaticRoutes

public VnetRoute withStaticRoutes(List staticRoutes)

Set the staticRoutes property: List of all Static Routes.

Parameters:

staticRoutes - the staticRoutes value to set.

Returns:

the VnetRoute object itself.

withStaticRoutesConfig

public VnetRoute withStaticRoutesConfig(StaticRoutesConfig staticRoutesConfig)

Set the staticRoutesConfig property: Configuration for static routes on this HubVnetConnection.

Parameters:

staticRoutesConfig - the staticRoutesConfig value to set.

Returns:

the VnetRoute object itself.

Applies to