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 Details

    • NextHopResultInner

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

    • nextHopType

      public NextHopType nextHopType()
      Get the nextHopType property: Next hop type.
      Returns:
      the nextHopType value.
    • withNextHopType

      public NextHopResultInner withNextHopType(NextHopType nextHopType)
      Set the nextHopType property: Next hop type.
      Parameters:
      nextHopType - the nextHopType value to set.
      Returns:
      the NextHopResultInner object itself.
    • nextHopIpAddress

      public String nextHopIpAddress()
      Get the nextHopIpAddress property: Next hop IP Address.
      Returns:
      the nextHopIpAddress value.
    • withNextHopIpAddress

      public NextHopResultInner withNextHopIpAddress(String nextHopIpAddress)
      Set the nextHopIpAddress property: Next hop IP Address.
      Parameters:
      nextHopIpAddress - the nextHopIpAddress value to set.
      Returns:
      the NextHopResultInner object itself.
    • routeTableId

      public String 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

      public NextHopResultInner withRouteTableId(String routeTableId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NextHopResultInner>
      Throws:
      IOException
    • fromJson

      public static NextHopResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.