Class StaticRoutesConfig
java.lang.Object
com.azure.resourcemanager.network.models.StaticRoutesConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StaticRoutesConfig>
public final class StaticRoutesConfig
extends Object
implements com.azure.json.JsonSerializable<StaticRoutesConfig>
Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StaticRoutesConfigfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StaticRoutesConfig from the JsonReader.Get the propagateStaticRoutes property: Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vnetLocalRouteOverrideCriteria property: Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StaticRoutesConfig
public StaticRoutesConfig()Creates an instance of StaticRoutesConfig class.
-
-
Method Details
-
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.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StaticRoutesConfig>- Throws:
IOException
-
fromJson
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.
-