Class NextHopParameters
- java.lang.Object
-
- com.azure.resourcemanager.network.models.NextHopParameters
-
public final class NextHopParameters extends Object
Parameters that define the source and destination endpoint.
-
-
Constructor Summary
Constructors Constructor Description NextHopParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdestinationIpAddress()Get the destinationIpAddress property: The destination IP address.StringsourceIpAddress()Get the sourceIpAddress property: The source IP address.StringtargetNicResourceId()Get the targetNicResourceId property: The NIC ID.StringtargetResourceId()Get the targetResourceId property: The resource identifier of the target resource against which the action is to be performed.voidvalidate()Validates the instance.NextHopParameterswithDestinationIpAddress(String destinationIpAddress)Set the destinationIpAddress property: The destination IP address.NextHopParameterswithSourceIpAddress(String sourceIpAddress)Set the sourceIpAddress property: The source IP address.NextHopParameterswithTargetNicResourceId(String targetNicResourceId)Set the targetNicResourceId property: The NIC ID.NextHopParameterswithTargetResourceId(String targetResourceId)Set the targetResourceId property: The resource identifier of the target resource against which the action is to be performed.
-
-
-
Method Detail
-
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.
-
-