Class NextHopParameters

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

public final class NextHopParameters extends Object implements com.azure.json.JsonSerializable<NextHopParameters>
Parameters that define the source and destination endpoint.
  • Constructor Details

    • NextHopParameters

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

    • targetResourceId

      public String targetResourceId()
      Get the targetResourceId property: The resource identifier of the target resource against which the action is to be performed.
      Returns:
      the targetResourceId value.
    • withTargetResourceId

      public NextHopParameters withTargetResourceId(String targetResourceId)
      Set the targetResourceId property: The resource identifier of the target resource against which the action is to be performed.
      Parameters:
      targetResourceId - the targetResourceId value to set.
      Returns:
      the NextHopParameters object itself.
    • sourceIpAddress

      public String sourceIpAddress()
      Get the sourceIpAddress property: The source IP address.
      Returns:
      the sourceIpAddress value.
    • withSourceIpAddress

      public NextHopParameters withSourceIpAddress(String sourceIpAddress)
      Set the sourceIpAddress property: The source IP address.
      Parameters:
      sourceIpAddress - the sourceIpAddress value to set.
      Returns:
      the NextHopParameters object itself.
    • destinationIpAddress

      public String destinationIpAddress()
      Get the destinationIpAddress property: The destination IP address.
      Returns:
      the destinationIpAddress value.
    • withDestinationIpAddress

      public NextHopParameters withDestinationIpAddress(String destinationIpAddress)
      Set the destinationIpAddress property: The destination IP address.
      Parameters:
      destinationIpAddress - the destinationIpAddress value to set.
      Returns:
      the NextHopParameters object itself.
    • targetNicResourceId

      public String targetNicResourceId()
      Get the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. Otherwise optional).
      Returns:
      the targetNicResourceId value.
    • withTargetNicResourceId

      public NextHopParameters withTargetNicResourceId(String targetNicResourceId)
      Set the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. Otherwise optional).
      Parameters:
      targetNicResourceId - the targetNicResourceId value to set.
      Returns:
      the NextHopParameters 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<NextHopParameters>
      Throws:
      IOException
    • fromJson

      public static NextHopParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NextHopParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NextHopParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the NextHopParameters.