Class PacketCaptureParameters
java.lang.Object
com.microsoft.azure.management.network.PacketCaptureParameters
Parameters that define the create packet capture operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet number of bytes captured per packet, the remaining bytes are truncated.filters()
Get a list of packet capture filters.Get the storage location for a packet capture session.target()
Get the ID of the targeted resource, only VM is currently supported.Get maximum duration of the capture session in seconds.Get maximum size of the capture output.withBytesToCapturePerPacket
(Integer bytesToCapturePerPacket) Set number of bytes captured per packet, the remaining bytes are truncated.withFilters
(List<PacketCaptureFilter> filters) Set a list of packet capture filters.withStorageLocation
(PacketCaptureStorageLocation storageLocation) Set the storage location for a packet capture session.withTarget
(String target) Set the ID of the targeted resource, only VM is currently supported.withTimeLimitInSeconds
(Integer timeLimitInSeconds) Set maximum duration of the capture session in seconds.withTotalBytesPerSession
(Integer totalBytesPerSession) Set maximum size of the capture output.
-
Constructor Details
-
PacketCaptureParameters
public PacketCaptureParameters()
-
-
Method Details
-
target
Get the ID of the targeted resource, only VM is currently supported.- Returns:
- the target value
-
withTarget
Set the ID of the targeted resource, only VM is currently supported.- Parameters:
target
- the target value to set- Returns:
- the PacketCaptureParameters object itself.
-
bytesToCapturePerPacket
Get number of bytes captured per packet, the remaining bytes are truncated.- Returns:
- the bytesToCapturePerPacket value
-
withBytesToCapturePerPacket
Set number of bytes captured per packet, the remaining bytes are truncated.- Parameters:
bytesToCapturePerPacket
- the bytesToCapturePerPacket value to set- Returns:
- the PacketCaptureParameters object itself.
-
totalBytesPerSession
Get maximum size of the capture output.- Returns:
- the totalBytesPerSession value
-
withTotalBytesPerSession
Set maximum size of the capture output.- Parameters:
totalBytesPerSession
- the totalBytesPerSession value to set- Returns:
- the PacketCaptureParameters object itself.
-
timeLimitInSeconds
Get maximum duration of the capture session in seconds.- Returns:
- the timeLimitInSeconds value
-
withTimeLimitInSeconds
Set maximum duration of the capture session in seconds.- Parameters:
timeLimitInSeconds
- the timeLimitInSeconds value to set- Returns:
- the PacketCaptureParameters object itself.
-
storageLocation
Get the storage location for a packet capture session.- Returns:
- the storageLocation value
-
withStorageLocation
Set the storage location for a packet capture session.- Parameters:
storageLocation
- the storageLocation value to set- Returns:
- the PacketCaptureParameters object itself.
-
filters
Get a list of packet capture filters.- Returns:
- the filters value
-
withFilters
Set a list of packet capture filters.- Parameters:
filters
- the filters value to set- Returns:
- the PacketCaptureParameters object itself.
-