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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationIpAddress property: The destination IP address.static NextHopParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NextHopParameters from the JsonReader.Get the sourceIpAddress property: The source IP address.Get the targetNicResourceId property: The NIC ID.Get the targetResourceId property: The resource identifier of the target resource against which the action is to be performed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationIpAddress(String destinationIpAddress) Set the destinationIpAddress property: The destination IP address.withSourceIpAddress(String sourceIpAddress) Set the sourceIpAddress property: The source IP address.withTargetNicResourceId(String targetNicResourceId) Set the targetNicResourceId property: The NIC ID.withTargetResourceId(String targetResourceId) Set the targetResourceId property: The resource identifier of the target resource against which the action is to be performed.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
-
NextHopParameters
public NextHopParameters()Creates an instance of NextHopParameters class.
-
-
Method Details
-
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
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
Get the sourceIpAddress property: The source IP address.- Returns:
- the sourceIpAddress value.
-
withSourceIpAddress
Set the sourceIpAddress property: The source IP address.- Parameters:
sourceIpAddress- the sourceIpAddress value to set.- Returns:
- the NextHopParameters object itself.
-
destinationIpAddress
Get the destinationIpAddress property: The destination IP address.- Returns:
- the destinationIpAddress value.
-
withDestinationIpAddress
Set the destinationIpAddress property: The destination IP address.- Parameters:
destinationIpAddress- the destinationIpAddress value to set.- Returns:
- the NextHopParameters object itself.
-
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NextHopParameters>- Throws:
IOException
-
fromJson
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.
-