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 Details

    • StaticRoutesConfig

      public StaticRoutesConfig()
      Creates an instance of StaticRoutesConfig class.
  • Method Details

    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<StaticRoutesConfig>
      Throws:
      IOException
    • fromJson

      public static StaticRoutesConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.