Class PacketCaptureFilter
java.lang.Object
com.azure.resourcemanager.network.models.PacketCaptureFilter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PacketCaptureFilter>
public final class PacketCaptureFilter
extends Object
implements com.azure.json.JsonSerializable<PacketCaptureFilter>
Filter that is applied to packet capture request. Multiple filters can be applied.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PacketCaptureFilterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PacketCaptureFilter from the JsonReader.Get the localIpAddress property: Local IP Address to be filtered on.Get the localPort property: Local port to be filtered on.protocol()Get the protocol property: Protocol to be filtered on.Get the remoteIpAddress property: Local IP Address to be filtered on.Get the remotePort property: Remote port to be filtered on.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocalIpAddress(String localIpAddress) Set the localIpAddress property: Local IP Address to be filtered on.withLocalPort(String localPort) Set the localPort property: Local port to be filtered on.withProtocol(PcProtocol protocol) Set the protocol property: Protocol to be filtered on.withRemoteIpAddress(String remoteIpAddress) Set the remoteIpAddress property: Local IP Address to be filtered on.withRemotePort(String remotePort) Set the remotePort property: Remote port to be filtered on.Methods inherited from class 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
-
PacketCaptureFilter
public PacketCaptureFilter()Creates an instance of PacketCaptureFilter class.
-
-
Method Details
-
protocol
Get the protocol property: Protocol to be filtered on.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Protocol to be filtered on.- Parameters:
protocol- the protocol value to set.- Returns:
- the PacketCaptureFilter object itself.
-
localIpAddress
Get the localIpAddress property: Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Returns:
- the localIpAddress value.
-
withLocalIpAddress
Set the localIpAddress property: Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Parameters:
localIpAddress- the localIpAddress value to set.- Returns:
- the PacketCaptureFilter object itself.
-
remoteIpAddress
Get the remoteIpAddress property: Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Returns:
- the remoteIpAddress value.
-
withRemoteIpAddress
Set the remoteIpAddress property: Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Parameters:
remoteIpAddress- the remoteIpAddress value to set.- Returns:
- the PacketCaptureFilter object itself.
-
localPort
Get the localPort property: Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Returns:
- the localPort value.
-
withLocalPort
Set the localPort property: Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Parameters:
localPort- the localPort value to set.- Returns:
- the PacketCaptureFilter object itself.
-
remotePort
Get the remotePort property: Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Returns:
- the remotePort value.
-
withRemotePort
Set the remotePort property: Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.- Parameters:
remotePort- the remotePort value to set.- Returns:
- the PacketCaptureFilter 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<PacketCaptureFilter>- Throws:
IOException
-
fromJson
Reads an instance of PacketCaptureFilter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PacketCaptureFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the PacketCaptureFilter.
-