PacketCaptureSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.PacketCaptureSettings

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 PacketCaptureSettings class.

Method Summary

Modifier and Type Method and Description
Integer fileCount()

Get the fileCount property: Number of file count.

Long fileSizeInBytes()

Get the fileSizeInBytes property: Number of bytes captured per packet.

static PacketCaptureSettings fromJson(JsonReader jsonReader)

Reads an instance of PacketCaptureSettings from the JsonReader.

Integer sessionTimeLimitInSeconds()

Get the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 days) for a file.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PacketCaptureSettings withFileCount(Integer fileCount)

Set the fileCount property: Number of file count.

PacketCaptureSettings withFileSizeInBytes(Long fileSizeInBytes)

Set the fileSizeInBytes property: Number of bytes captured per packet.

PacketCaptureSettings 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 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:

the fileCount value.

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.

fromJson

public static PacketCaptureSettings fromJson(JsonReader jsonReader)

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

fileCount - the fileCount value to set.

Returns:

the PacketCaptureSettings object itself.

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.

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.

Applies to