Class FirewallPacketCaptureParameters

java.lang.Object
com.azure.resourcemanager.network.models.FirewallPacketCaptureParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPacketCaptureParameters>

public final class FirewallPacketCaptureParameters extends Object implements com.azure.json.JsonSerializable<FirewallPacketCaptureParameters>
Azure Firewall Packet Capture Parameters.
  • Constructor Details

    • FirewallPacketCaptureParameters

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

    • durationInSeconds

      public Integer durationInSeconds()
      Get the durationInSeconds property: Duration of packet capture in seconds.
      Returns:
      the durationInSeconds value.
    • withDurationInSeconds

      public FirewallPacketCaptureParameters withDurationInSeconds(Integer durationInSeconds)
      Set the durationInSeconds property: Duration of packet capture in seconds.
      Parameters:
      durationInSeconds - the durationInSeconds value to set.
      Returns:
      the FirewallPacketCaptureParameters object itself.
    • numberOfPacketsToCapture

      public Integer numberOfPacketsToCapture()
      Get the numberOfPacketsToCapture property: Number of packets to be captured.
      Returns:
      the numberOfPacketsToCapture value.
    • withNumberOfPacketsToCapture

      public FirewallPacketCaptureParameters withNumberOfPacketsToCapture(Integer numberOfPacketsToCapture)
      Set the numberOfPacketsToCapture property: Number of packets to be captured.
      Parameters:
      numberOfPacketsToCapture - the numberOfPacketsToCapture value to set.
      Returns:
      the FirewallPacketCaptureParameters object itself.
    • sasUrl

      public String sasUrl()
      Get the sasUrl property: Upload capture location.
      Returns:
      the sasUrl value.
    • withSasUrl

      public FirewallPacketCaptureParameters withSasUrl(String sasUrl)
      Set the sasUrl property: Upload capture location.
      Parameters:
      sasUrl - the sasUrl value to set.
      Returns:
      the FirewallPacketCaptureParameters object itself.
    • fileName

      public String fileName()
      Get the fileName property: Name of file to be uploaded to sasURL.
      Returns:
      the fileName value.
    • withFileName

      public FirewallPacketCaptureParameters withFileName(String fileName)
      Set the fileName property: Name of file to be uploaded to sasURL.
      Parameters:
      fileName - the fileName value to set.
      Returns:
      the FirewallPacketCaptureParameters object itself.
    • protocol

      Get the protocol property: The protocol of packets to capture.
      Returns:
      the protocol value.
    • withProtocol

      Set the protocol property: The protocol of packets to capture.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the FirewallPacketCaptureParameters object itself.
    • flags

      Get the flags property: The tcp-flag type to be captured. Used with protocol TCP.
      Returns:
      the flags value.
    • withFlags

      Set the flags property: The tcp-flag type to be captured. Used with protocol TCP.
      Parameters:
      flags - the flags value to set.
      Returns:
      the FirewallPacketCaptureParameters object itself.
    • filters

      Get the filters property: Rules to filter packet captures.
      Returns:
      the filters value.
    • withFilters

      Set the filters property: Rules to filter packet captures.
      Parameters:
      filters - the filters value to set.
      Returns:
      the FirewallPacketCaptureParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FirewallPacketCaptureParameters>
      Throws:
      IOException
    • fromJson

      public static FirewallPacketCaptureParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FirewallPacketCaptureParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FirewallPacketCaptureParameters 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 FirewallPacketCaptureParameters.