Class VerificationIpFlowParameters
java.lang.Object
com.azure.resourcemanager.network.models.VerificationIpFlowParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VerificationIpFlowParameters>
public final class VerificationIpFlowParameters
extends Object
implements com.azure.json.JsonSerializable<VerificationIpFlowParameters>
Parameters that define the IP flow to be verified.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VerificationIpFlowParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the direction property: The direction of the packet represented as a 5-tuple.static VerificationIpFlowParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VerificationIpFlowParameters from the JsonReader.Get the localIpAddress property: The local IP address.Get the localPort property: The local port.protocol()Get the protocol property: Protocol to be verified on.Get the remoteIpAddress property: The remote IP address.Get the remotePort property: The remote port.Get the targetNicResourceId property: The NIC ID.Get the targetResourceId property: The ID of the target resource to perform next-hop on.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDirection(Direction direction) Set the direction property: The direction of the packet represented as a 5-tuple.withLocalIpAddress(String localIpAddress) Set the localIpAddress property: The local IP address.withLocalPort(String localPort) Set the localPort property: The local port.withProtocol(IpFlowProtocol protocol) Set the protocol property: Protocol to be verified on.withRemoteIpAddress(String remoteIpAddress) Set the remoteIpAddress property: The remote IP address.withRemotePort(String remotePort) Set the remotePort property: The remote port.withTargetNicResourceId(String targetNicResourceId) Set the targetNicResourceId property: The NIC ID.withTargetResourceId(String targetResourceId) Set the targetResourceId property: The ID of the target resource to perform next-hop on.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
-
VerificationIpFlowParameters
public VerificationIpFlowParameters()Creates an instance of VerificationIpFlowParameters class.
-
-
Method Details
-
targetResourceId
Get the targetResourceId property: The ID of the target resource to perform next-hop on.- Returns:
- the targetResourceId value.
-
withTargetResourceId
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
Get the direction property: The direction of the packet represented as a 5-tuple.- Returns:
- the direction value.
-
withDirection
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
Get the protocol property: Protocol to be verified on.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Protocol to be verified on.- Parameters:
protocol- the protocol value to set.- Returns:
- the VerificationIpFlowParameters object itself.
-
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
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
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
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
Get the localIpAddress property: The local IP address. Acceptable values are valid IPv4 addresses.- Returns:
- the localIpAddress value.
-
withLocalIpAddress
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
Get the remoteIpAddress property: The remote IP address. Acceptable values are valid IPv4 addresses.- Returns:
- the remoteIpAddress value.
-
withRemoteIpAddress
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VerificationIpFlowParameters>- Throws:
IOException
-
fromJson
public static VerificationIpFlowParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VerificationIpFlowParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VerificationIpFlowParameters 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 VerificationIpFlowParameters.
-