StaticRoutesConfig Class

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

Implements

public final class StaticRoutesConfig
implements JsonSerializable<StaticRoutesConfig>

Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection.

Constructor Summary

Constructor Description
StaticRoutesConfig()

Creates an instance of StaticRoutesConfig class.

Method Summary

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

Reads an instance of StaticRoutesConfig from the JsonReader.

Boolean propagateStaticRoutes()

Get the propagateStaticRoutes property: Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VnetLocalRouteOverrideCriteria vnetLocalRouteOverrideCriteria()

Get the vnetLocalRouteOverrideCriteria property: Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.

StaticRoutesConfig withVnetLocalRouteOverrideCriteria(VnetLocalRouteOverrideCriteria vnetLocalRouteOverrideCriteria)

Set the vnetLocalRouteOverrideCriteria property: Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.

Methods inherited from java.lang.Object

Constructor Details

StaticRoutesConfig

public StaticRoutesConfig()

Creates an instance of StaticRoutesConfig class.

Method Details

fromJson

public static StaticRoutesConfig fromJson(JsonReader jsonReader)

Reads an instance of StaticRoutesConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

propagateStaticRoutes

public Boolean propagateStaticRoutes()

Get the propagateStaticRoutes property: Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.

Returns:

the propagateStaticRoutes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vnetLocalRouteOverrideCriteria

public VnetLocalRouteOverrideCriteria vnetLocalRouteOverrideCriteria()

Get the vnetLocalRouteOverrideCriteria property: Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.

Returns:

the vnetLocalRouteOverrideCriteria value.

withVnetLocalRouteOverrideCriteria

public StaticRoutesConfig withVnetLocalRouteOverrideCriteria(VnetLocalRouteOverrideCriteria vnetLocalRouteOverrideCriteria)

Set the vnetLocalRouteOverrideCriteria property: Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.

Parameters:

vnetLocalRouteOverrideCriteria - the vnetLocalRouteOverrideCriteria value to set.

Returns:

the StaticRoutesConfig object itself.

Applies to