Class PacketCaptureSettings

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

public final class PacketCaptureSettings extends Object implements com.azure.json.JsonSerializable<PacketCaptureSettings>
The storage location for a packet capture session.
  • Constructor Details

    • PacketCaptureSettings

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

    • fileCount

      public Integer fileCount()
      Get the fileCount property: Number of file count. Default value of count is 10 and maximum number is 10000.
      Returns:
      the fileCount value.
    • withFileCount

      public PacketCaptureSettings withFileCount(Integer fileCount)
      Set the fileCount property: Number of file count. Default value of count is 10 and maximum number is 10000.
      Parameters:
      fileCount - the fileCount value to set.
      Returns:
      the PacketCaptureSettings object itself.
    • fileSizeInBytes

      public Long fileSizeInBytes()
      Get the fileSizeInBytes property: Number of bytes captured per packet. Default value in bytes 104857600 (100MB) and maximum in bytes 4294967295 (4GB).
      Returns:
      the fileSizeInBytes value.
    • withFileSizeInBytes

      public PacketCaptureSettings withFileSizeInBytes(Long fileSizeInBytes)
      Set the fileSizeInBytes property: Number of bytes captured per packet. Default value in bytes 104857600 (100MB) and maximum in bytes 4294967295 (4GB).
      Parameters:
      fileSizeInBytes - the fileSizeInBytes value to set.
      Returns:
      the PacketCaptureSettings object itself.
    • sessionTimeLimitInSeconds

      public Integer sessionTimeLimitInSeconds()
      Get the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 days) for a file. Default value in second 86400s (1 day).
      Returns:
      the sessionTimeLimitInSeconds value.
    • withSessionTimeLimitInSeconds

      public PacketCaptureSettings withSessionTimeLimitInSeconds(Integer sessionTimeLimitInSeconds)
      Set the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 days) for a file. Default value in second 86400s (1 day).
      Parameters:
      sessionTimeLimitInSeconds - the sessionTimeLimitInSeconds value to set.
      Returns:
      the PacketCaptureSettings 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<PacketCaptureSettings>
      Throws:
      IOException
    • fromJson

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