Class NextHopResultInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.NextHopResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NextHopResultInner>
public final class NextHopResultInner
extends Object
implements com.azure.json.JsonSerializable<NextHopResultInner>
The information about next hop from the specified VM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NextHopResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NextHopResultInner from the JsonReader.Get the nextHopIpAddress property: Next hop IP Address.Get the nextHopType property: Next hop type.Get the routeTableId property: The resource identifier for the route table associated with the route being returned.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNextHopIpAddress(String nextHopIpAddress) Set the nextHopIpAddress property: Next hop IP Address.withNextHopType(NextHopType nextHopType) Set the nextHopType property: Next hop type.withRouteTableId(String routeTableId) Set the routeTableId property: The resource identifier for the route table associated with the route being returned.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
-
NextHopResultInner
public NextHopResultInner()Creates an instance of NextHopResultInner class.
-
-
Method Details
-
nextHopType
Get the nextHopType property: Next hop type.- Returns:
- the nextHopType value.
-
withNextHopType
Set the nextHopType property: Next hop type.- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the NextHopResultInner object itself.
-
nextHopIpAddress
Get the nextHopIpAddress property: Next hop IP Address.- Returns:
- the nextHopIpAddress value.
-
withNextHopIpAddress
Set the nextHopIpAddress property: Next hop IP Address.- Parameters:
nextHopIpAddress- the nextHopIpAddress value to set.- Returns:
- the NextHopResultInner object itself.
-
routeTableId
Get the routeTableId property: The resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'.- Returns:
- the routeTableId value.
-
withRouteTableId
Set the routeTableId property: The resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'.- Parameters:
routeTableId- the routeTableId value to set.- Returns:
- the NextHopResultInner 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<NextHopResultInner>- Throws:
IOException
-
fromJson
Reads an instance of NextHopResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NextHopResultInner 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 NextHopResultInner.
-