Class RoutingConfiguration

java.lang.Object
com.azure.resourcemanager.network.models.RoutingConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<RoutingConfiguration>

public final class RoutingConfiguration extends Object implements com.azure.json.JsonSerializable<RoutingConfiguration>
Routing Configuration indicating the associated and propagated route tables for this connection.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of RoutingConfiguration class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.core.management.SubResource
    Get the associatedRouteTable property: The resource id RouteTable associated with this RoutingConfiguration.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RoutingConfiguration from the JsonReader.
    com.azure.core.management.SubResource
    Get the inboundRouteMap property: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    com.azure.core.management.SubResource
    Get the outboundRouteMap property: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    Get the propagatedRouteTables property: The list of RouteTables to advertise the routes to.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the vnetRoutes property: List of routes that control routing from VirtualHub into a virtual network connection.
    withAssociatedRouteTable(com.azure.core.management.SubResource associatedRouteTable)
    Set the associatedRouteTable property: The resource id RouteTable associated with this RoutingConfiguration.
    withInboundRouteMap(com.azure.core.management.SubResource inboundRouteMap)
    Set the inboundRouteMap property: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    withOutboundRouteMap(com.azure.core.management.SubResource outboundRouteMap)
    Set the outboundRouteMap property: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    Set the propagatedRouteTables property: The list of RouteTables to advertise the routes to.
    Set the vnetRoutes property: List of routes that control routing from VirtualHub into a virtual network connection.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • RoutingConfiguration

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

    • associatedRouteTable

      public com.azure.core.management.SubResource associatedRouteTable()
      Get the associatedRouteTable property: The resource id RouteTable associated with this RoutingConfiguration.
      Returns:
      the associatedRouteTable value.
    • withAssociatedRouteTable

      public RoutingConfiguration withAssociatedRouteTable(com.azure.core.management.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.
    • propagatedRouteTables

      public PropagatedRouteTable propagatedRouteTables()
      Get the propagatedRouteTables property: The list of RouteTables to advertise the routes to.
      Returns:
      the propagatedRouteTables value.
    • 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.
    • 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.
    • 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.
    • inboundRouteMap

      public com.azure.core.management.SubResource inboundRouteMap()
      Get the inboundRouteMap property: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
      Returns:
      the inboundRouteMap value.
    • withInboundRouteMap

      public RoutingConfiguration withInboundRouteMap(com.azure.core.management.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.
    • outboundRouteMap

      public com.azure.core.management.SubResource outboundRouteMap()
      Get the outboundRouteMap property: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
      Returns:
      the outboundRouteMap value.
    • withOutboundRouteMap

      public RoutingConfiguration withOutboundRouteMap(com.azure.core.management.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.
    • 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<RoutingConfiguration>
      Throws:
      IOException
    • fromJson

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