Class NextHopParameters
java.lang.Object
com.azure.resourcemanager.network.models.NextHopParameters
Parameters that define the source and destination endpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationIpAddress property: The destination IP address.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.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.
-
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.
-