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 Summary
ConstructorDescriptionCreates an instance of EffectiveRouteMapRoute class. -
Method Summary
Modifier and TypeMethodDescriptionasPath()
Get the asPath property: The ASPath of this route.Get the bgpCommunities property: BGP communities of the route.static EffectiveRouteMapRoute
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EffectiveRouteMapRoute from the JsonReader.prefix()
Get the prefix property: The address prefix of the route.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAsPath
(String asPath) Set the asPath property: The ASPath of this route.withBgpCommunities
(String bgpCommunities) Set the bgpCommunities property: BGP communities of the route.withPrefix
(String prefix) Set the prefix property: The address prefix of the route.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
-
EffectiveRouteMapRoute
public EffectiveRouteMapRoute()Creates an instance of EffectiveRouteMapRoute class.
-
-
Method Details
-
prefix
Get the prefix property: The address prefix of the route.- Returns:
- the prefix value.
-
withPrefix
Set the prefix property: The address prefix of the route.- Parameters:
prefix
- the prefix value to set.- Returns:
- the EffectiveRouteMapRoute object itself.
-
bgpCommunities
Get the bgpCommunities property: BGP communities of the route.- Returns:
- the bgpCommunities value.
-
withBgpCommunities
Set the bgpCommunities property: BGP communities of the route.- Parameters:
bgpCommunities
- the bgpCommunities value to set.- Returns:
- the EffectiveRouteMapRoute object itself.
-
asPath
Get the asPath property: The ASPath of this route.- Returns:
- the asPath value.
-
withAsPath
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
- Specified by:
toJson
in interfacecom.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.
-