Class PacketCaptureSettings
java.lang.Object
com.azure.resourcemanager.network.models.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.Get the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 days) for a file.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.
-
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.
-