Class PacketCaptureFilter

java.lang.Object
com.azure.resourcemanager.network.models.PacketCaptureFilter

public final class PacketCaptureFilter extends Object
Filter that is applied to packet capture request. Multiple filters can be applied.
  • Constructor Details

    • PacketCaptureFilter

      public PacketCaptureFilter()
      Creates an instance of PacketCaptureFilter class.
  • Method Details

    • protocol

      public PcProtocol protocol()
      Get the protocol property: Protocol to be filtered on.
      Returns:
      the protocol value.
    • withProtocol

      public PacketCaptureFilter withProtocol(PcProtocol protocol)
      Set the protocol property: Protocol to be filtered on.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the PacketCaptureFilter object itself.
    • localIpAddress

      public String 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

      public PacketCaptureFilter withLocalIpAddress(String localIpAddress)
      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

      public String 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

      public PacketCaptureFilter withRemoteIpAddress(String remoteIpAddress)
      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

      public String 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

      public PacketCaptureFilter withLocalPort(String localPort)
      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

      public String 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

      public PacketCaptureFilter withRemotePort(String remotePort)
      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.