Class VirtualHubEffectiveRoute

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

public final class VirtualHubEffectiveRoute extends Object implements com.azure.json.JsonSerializable<VirtualHubEffectiveRoute>
The effective route configured on the virtual hub or specified resource.
  • Constructor Details

    • VirtualHubEffectiveRoute

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

    • addressPrefixes

      public List<String> addressPrefixes()
      Get the addressPrefixes property: The list of address prefixes.
      Returns:
      the addressPrefixes value.
    • withAddressPrefixes

      public VirtualHubEffectiveRoute withAddressPrefixes(List<String> addressPrefixes)
      Set the addressPrefixes property: The list of address prefixes.
      Parameters:
      addressPrefixes - the addressPrefixes value to set.
      Returns:
      the VirtualHubEffectiveRoute object itself.
    • nextHops

      public List<String> nextHops()
      Get the nextHops property: The list of next hops.
      Returns:
      the nextHops value.
    • withNextHops

      public VirtualHubEffectiveRoute withNextHops(List<String> nextHops)
      Set the nextHops property: The list of next hops.
      Parameters:
      nextHops - the nextHops value to set.
      Returns:
      the VirtualHubEffectiveRoute object itself.
    • nextHopType

      public String nextHopType()
      Get the nextHopType property: The type of the next hop.
      Returns:
      the nextHopType value.
    • withNextHopType

      public VirtualHubEffectiveRoute withNextHopType(String nextHopType)
      Set the nextHopType property: The type of the next hop.
      Parameters:
      nextHopType - the nextHopType value to set.
      Returns:
      the VirtualHubEffectiveRoute object itself.
    • asPath

      public String asPath()
      Get the asPath property: The ASPath of this route.
      Returns:
      the asPath value.
    • withAsPath

      public VirtualHubEffectiveRoute withAsPath(String asPath)
      Set the asPath property: The ASPath of this route.
      Parameters:
      asPath - the asPath value to set.
      Returns:
      the VirtualHubEffectiveRoute object itself.
    • routeOrigin

      public String routeOrigin()
      Get the routeOrigin property: The origin of this route.
      Returns:
      the routeOrigin value.
    • withRouteOrigin

      public VirtualHubEffectiveRoute withRouteOrigin(String routeOrigin)
      Set the routeOrigin property: The origin of this route.
      Parameters:
      routeOrigin - the routeOrigin value to set.
      Returns:
      the VirtualHubEffectiveRoute 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<VirtualHubEffectiveRoute>
      Throws:
      IOException
    • fromJson

      public static VirtualHubEffectiveRoute fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualHubEffectiveRoute from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualHubEffectiveRoute 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 VirtualHubEffectiveRoute.