Class EffectiveRoute
java.lang.Object
com.azure.resourcemanager.network.models.EffectiveRoute
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EffectiveRoute>
public final class EffectiveRoute
extends Object
implements com.azure.json.JsonSerializable<EffectiveRoute>
Effective Route.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefix property: The address prefixes of the effective routes in CIDR notation.Get the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.static EffectiveRoutefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EffectiveRoute from the JsonReader.name()Get the name property: The name of the user defined route.Get the nextHopIpAddress property: The IP address of the next hop of the effective route.Get the nextHopType property: The type of Azure hop the packet should be sent to.source()Get the source property: Who created the route.state()Get the state property: The value of effective route.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressPrefix(List<String> addressPrefix) Set the addressPrefix property: The address prefixes of the effective routes in CIDR notation.withDisableBgpRoutePropagation(Boolean disableBgpRoutePropagation) Set the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.Set the name property: The name of the user defined route.withNextHopIpAddress(List<String> nextHopIpAddress) Set the nextHopIpAddress property: The IP address of the next hop of the effective route.withNextHopType(RouteNextHopType nextHopType) Set the nextHopType property: The type of Azure hop the packet should be sent to.withSource(EffectiveRouteSource source) Set the source property: Who created the route.withState(EffectiveRouteState state) Set the state property: The value of effective route.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EffectiveRoute
public EffectiveRoute()Creates an instance of EffectiveRoute class.
-
-
Method Details
-
name
Get the name property: The name of the user defined route. This is optional.- Returns:
- the name value.
-
withName
Set the name property: The name of the user defined route. This is optional.- Parameters:
name- the name value to set.- Returns:
- the EffectiveRoute object itself.
-
disableBgpRoutePropagation
Get the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.- Returns:
- the disableBgpRoutePropagation value.
-
withDisableBgpRoutePropagation
Set the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.- Parameters:
disableBgpRoutePropagation- the disableBgpRoutePropagation value to set.- Returns:
- the EffectiveRoute object itself.
-
source
Get the source property: Who created the route.- Returns:
- the source value.
-
withSource
Set the source property: Who created the route.- Parameters:
source- the source value to set.- Returns:
- the EffectiveRoute object itself.
-
state
Get the state property: The value of effective route.- Returns:
- the state value.
-
withState
Set the state property: The value of effective route.- Parameters:
state- the state value to set.- Returns:
- the EffectiveRoute object itself.
-
addressPrefix
Get the addressPrefix property: The address prefixes of the effective routes in CIDR notation.- Returns:
- the addressPrefix value.
-
withAddressPrefix
Set the addressPrefix property: The address prefixes of the effective routes in CIDR notation.- Parameters:
addressPrefix- the addressPrefix value to set.- Returns:
- the EffectiveRoute object itself.
-
nextHopIpAddress
Get the nextHopIpAddress property: The IP address of the next hop of the effective route.- Returns:
- the nextHopIpAddress value.
-
withNextHopIpAddress
Set the nextHopIpAddress property: The IP address of the next hop of the effective route.- Parameters:
nextHopIpAddress- the nextHopIpAddress value to set.- Returns:
- the EffectiveRoute object itself.
-
nextHopType
Get the nextHopType property: The type of Azure hop the packet should be sent to.- Returns:
- the nextHopType value.
-
withNextHopType
Set the nextHopType property: The type of Azure hop the packet should be sent to.- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the EffectiveRoute object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EffectiveRoute>- Throws:
IOException
-
fromJson
Reads an instance of EffectiveRoute from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EffectiveRoute 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 EffectiveRoute.
-