Class VerificationIpFlowParameters
- java.lang.Object
-
- com.azure.resourcemanager.network.models.VerificationIpFlowParameters
-
public final class VerificationIpFlowParameters extends Object
Parameters that define the IP flow to be verified.
-
-
Constructor Summary
Constructors Constructor Description VerificationIpFlowParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Directiondirection()Get the direction property: The direction of the packet represented as a 5-tuple.StringlocalIpAddress()Get the localIpAddress property: The local IP address.StringlocalPort()Get the localPort property: The local port.IpFlowProtocolprotocol()Get the protocol property: Protocol to be verified on.StringremoteIpAddress()Get the remoteIpAddress property: The remote IP address.StringremotePort()Get the remotePort property: The remote port.StringtargetNicResourceId()Get the targetNicResourceId property: The NIC ID.StringtargetResourceId()Get the targetResourceId property: The ID of the target resource to perform next-hop on.voidvalidate()Validates the instance.VerificationIpFlowParameterswithDirection(Direction direction)Set the direction property: The direction of the packet represented as a 5-tuple.VerificationIpFlowParameterswithLocalIpAddress(String localIpAddress)Set the localIpAddress property: The local IP address.VerificationIpFlowParameterswithLocalPort(String localPort)Set the localPort property: The local port.VerificationIpFlowParameterswithProtocol(IpFlowProtocol protocol)Set the protocol property: Protocol to be verified on.VerificationIpFlowParameterswithRemoteIpAddress(String remoteIpAddress)Set the remoteIpAddress property: The remote IP address.VerificationIpFlowParameterswithRemotePort(String remotePort)Set the remotePort property: The remote port.VerificationIpFlowParameterswithTargetNicResourceId(String targetNicResourceId)Set the targetNicResourceId property: The NIC ID.VerificationIpFlowParameterswithTargetResourceId(String targetResourceId)Set the targetResourceId property: The ID of the target resource to perform next-hop on.
-
-
-
Method Detail
-
targetResourceId
public String targetResourceId()
Get the targetResourceId property: The ID of the target resource to perform next-hop on.- Returns:
- the targetResourceId value.
-
withTargetResourceId
public VerificationIpFlowParameters withTargetResourceId(String targetResourceId)
Set the targetResourceId property: The ID of the target resource to perform next-hop on.- Parameters:
targetResourceId- the targetResourceId value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
direction
public Direction direction()
Get the direction property: The direction of the packet represented as a 5-tuple.- Returns:
- the direction value.
-
withDirection
public VerificationIpFlowParameters withDirection(Direction direction)
Set the direction property: The direction of the packet represented as a 5-tuple.- Parameters:
direction- the direction value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
protocol
public IpFlowProtocol protocol()
Get the protocol property: Protocol to be verified on.- Returns:
- the protocol value.
-
withProtocol
public VerificationIpFlowParameters withProtocol(IpFlowProtocol protocol)
Set the protocol property: Protocol to be verified on.- Parameters:
protocol- the protocol value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
localPort
public String localPort()
Get the localPort property: The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction.- Returns:
- the localPort value.
-
withLocalPort
public VerificationIpFlowParameters withLocalPort(String localPort)
Set the localPort property: The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction.- Parameters:
localPort- the localPort value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
remotePort
public String remotePort()
Get the remotePort property: The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction.- Returns:
- the remotePort value.
-
withRemotePort
public VerificationIpFlowParameters withRemotePort(String remotePort)
Set the remotePort property: The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction.- Parameters:
remotePort- the remotePort value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
localIpAddress
public String localIpAddress()
Get the localIpAddress property: The local IP address. Acceptable values are valid IPv4 addresses.- Returns:
- the localIpAddress value.
-
withLocalIpAddress
public VerificationIpFlowParameters withLocalIpAddress(String localIpAddress)
Set the localIpAddress property: The local IP address. Acceptable values are valid IPv4 addresses.- Parameters:
localIpAddress- the localIpAddress value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
remoteIpAddress
public String remoteIpAddress()
Get the remoteIpAddress property: The remote IP address. Acceptable values are valid IPv4 addresses.- Returns:
- the remoteIpAddress value.
-
withRemoteIpAddress
public VerificationIpFlowParameters withRemoteIpAddress(String remoteIpAddress)
Set the remoteIpAddress property: The remote IP address. Acceptable values are valid IPv4 addresses.- Parameters:
remoteIpAddress- the remoteIpAddress value to set.- Returns:
- the VerificationIpFlowParameters 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 them, then this parameter must be specified. Otherwise optional).- Returns:
- the targetNicResourceId value.
-
withTargetNicResourceId
public VerificationIpFlowParameters withTargetNicResourceId(String targetNicResourceId)
Set the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be specified. Otherwise optional).- Parameters:
targetNicResourceId- the targetNicResourceId value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-