PacketCaptureSettings Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. PacketCaptureSettings
- com.
Implements
public final class PacketCaptureSettings
implements JsonSerializable<PacketCaptureSettings>
The storage location for a packet capture session.
Constructor Summary
Constructor | Description |
---|---|
PacketCaptureSettings() |
Creates an instance of Packet |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
fileCount()
Get the file |
Long |
fileSizeInBytes()
Get the file |
static
Packet |
fromJson(JsonReader jsonReader)
Reads an instance of Packet |
Integer |
sessionTimeLimitInSeconds()
Get the session |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Packet |
withFileCount(Integer fileCount)
Set the file |
Packet |
withFileSizeInBytes(Long fileSizeInBytes)
Set the file |
Packet |
withSessionTimeLimitInSeconds(Integer sessionTimeLimitInSeconds)
Set the session |
Methods inherited from java.lang.Object
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:
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:
fromJson
public static PacketCaptureSettings fromJson(JsonReader jsonReader)
Reads an instance of PacketCaptureSettings from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java