RoutingConfiguration Class

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

Implements

public final class RoutingConfiguration
implements JsonSerializable<RoutingConfiguration>

Routing Configuration indicating the associated and propagated route tables for this connection.

Constructor Summary

Constructor Description
RoutingConfiguration()

Creates an instance of RoutingConfiguration class.

Method Summary

Modifier and Type Method and Description
SubResource associatedRouteTable()

Get the associatedRouteTable property: The resource id RouteTable associated with this RoutingConfiguration.

static RoutingConfiguration fromJson(JsonReader jsonReader)

Reads an instance of RoutingConfiguration from the JsonReader.

SubResource inboundRouteMap()

Get the inboundRouteMap property: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.

SubResource outboundRouteMap()

Get the outboundRouteMap property: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.

PropagatedRouteTable propagatedRouteTables()

Get the propagatedRouteTables property: The list of RouteTables to advertise the routes to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VnetRoute vnetRoutes()

Get the vnetRoutes property: List of routes that control routing from VirtualHub into a virtual network connection.

RoutingConfiguration withAssociatedRouteTable(SubResource associatedRouteTable)

Set the associatedRouteTable property: The resource id RouteTable associated with this RoutingConfiguration.

RoutingConfiguration withInboundRouteMap(SubResource inboundRouteMap)

Set the inboundRouteMap property: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.

RoutingConfiguration withOutboundRouteMap(SubResource outboundRouteMap)

Set the outboundRouteMap property: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.

RoutingConfiguration withPropagatedRouteTables(PropagatedRouteTable propagatedRouteTables)

Set the propagatedRouteTables property: The list of RouteTables to advertise the routes to.

RoutingConfiguration withVnetRoutes(VnetRoute vnetRoutes)

Set the vnetRoutes property: List of routes that control routing from VirtualHub into a virtual network connection.

Methods inherited from java.lang.Object

Constructor Details

RoutingConfiguration

public RoutingConfiguration()

Creates an instance of RoutingConfiguration class.

Method Details

associatedRouteTable

public SubResource associatedRouteTable()

Get the associatedRouteTable property: The resource id RouteTable associated with this RoutingConfiguration.

Returns:

the associatedRouteTable value.

fromJson

public static RoutingConfiguration fromJson(JsonReader jsonReader)

Reads an instance of RoutingConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

inboundRouteMap

public SubResource inboundRouteMap()

Get the inboundRouteMap property: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.

Returns:

the inboundRouteMap value.

outboundRouteMap

public SubResource outboundRouteMap()

Get the outboundRouteMap property: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.

Returns:

the outboundRouteMap value.

propagatedRouteTables

public PropagatedRouteTable propagatedRouteTables()

Get the propagatedRouteTables property: The list of RouteTables to advertise the routes to.

Returns:

the propagatedRouteTables value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vnetRoutes

public VnetRoute vnetRoutes()

Get the vnetRoutes property: List of routes that control routing from VirtualHub into a virtual network connection.

Returns:

the vnetRoutes value.

withAssociatedRouteTable

public RoutingConfiguration withAssociatedRouteTable(SubResource associatedRouteTable)

Set the associatedRouteTable property: The resource id RouteTable associated with this RoutingConfiguration.

Parameters:

associatedRouteTable - the associatedRouteTable value to set.

Returns:

the RoutingConfiguration object itself.

withInboundRouteMap

public RoutingConfiguration withInboundRouteMap(SubResource inboundRouteMap)

Set the inboundRouteMap property: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.

Parameters:

inboundRouteMap - the inboundRouteMap value to set.

Returns:

the RoutingConfiguration object itself.

withOutboundRouteMap

public RoutingConfiguration withOutboundRouteMap(SubResource outboundRouteMap)

Set the outboundRouteMap property: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.

Parameters:

outboundRouteMap - the outboundRouteMap value to set.

Returns:

the RoutingConfiguration object itself.

withPropagatedRouteTables

public RoutingConfiguration withPropagatedRouteTables(PropagatedRouteTable propagatedRouteTables)

Set the propagatedRouteTables property: The list of RouteTables to advertise the routes to.

Parameters:

propagatedRouteTables - the propagatedRouteTables value to set.

Returns:

the RoutingConfiguration object itself.

withVnetRoutes

public RoutingConfiguration withVnetRoutes(VnetRoute vnetRoutes)

Set the vnetRoutes property: List of routes that control routing from VirtualHub into a virtual network connection.

Parameters:

vnetRoutes - the vnetRoutes value to set.

Returns:

the RoutingConfiguration object itself.

Applies to