Class EffectiveRouteMapRoute

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

public final class EffectiveRouteMapRoute extends Object implements com.azure.json.JsonSerializable<EffectiveRouteMapRoute>
The effective RouteMap route configured on the connection resource.
  • Constructor Details

    • EffectiveRouteMapRoute

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

    • prefix

      public String prefix()
      Get the prefix property: The address prefix of the route.
      Returns:
      the prefix value.
    • withPrefix

      public EffectiveRouteMapRoute withPrefix(String prefix)
      Set the prefix property: The address prefix of the route.
      Parameters:
      prefix - the prefix value to set.
      Returns:
      the EffectiveRouteMapRoute object itself.
    • bgpCommunities

      public String bgpCommunities()
      Get the bgpCommunities property: BGP communities of the route.
      Returns:
      the bgpCommunities value.
    • withBgpCommunities

      public EffectiveRouteMapRoute withBgpCommunities(String bgpCommunities)
      Set the bgpCommunities property: BGP communities of the route.
      Parameters:
      bgpCommunities - the bgpCommunities value to set.
      Returns:
      the EffectiveRouteMapRoute object itself.
    • asPath

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

      public EffectiveRouteMapRoute withAsPath(String asPath)
      Set the asPath property: The ASPath of this route.
      Parameters:
      asPath - the asPath value to set.
      Returns:
      the EffectiveRouteMapRoute 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<EffectiveRouteMapRoute>
      Throws:
      IOException
    • fromJson

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