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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the fileCount property: Number of file count.Get the fileSizeInBytes property: Number of bytes captured per packet.static PacketCaptureSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PacketCaptureSettings from the JsonReader.Get the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 days) for a file.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFileCount(Integer fileCount) Set the fileCount property: Number of file count.withFileSizeInBytes(Long fileSizeInBytes) Set the fileSizeInBytes property: Number of bytes captured per packet.withSessionTimeLimitInSeconds(Integer sessionTimeLimitInSeconds) Set the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 days) for a file.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
-
PacketCaptureSettings
public PacketCaptureSettings()Creates an instance of PacketCaptureSettings class.
-
-
Method Details
-
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
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
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-