public class PacketCaptureParameters extends Object
| Constructor and Description |
|---|
PacketCaptureParameters() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
bytesToCapturePerPacket()
Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.
|
List<PacketCaptureFilter> |
filters()
Get the filters property: A list of packet capture filters.
|
PacketCaptureStorageLocation |
storageLocation()
Get the storageLocation property: The storage location for a packet capture session.
|
String |
target()
Get the target property: The ID of the targeted resource, only VM is currently supported.
|
Integer |
timeLimitInSeconds()
Get the timeLimitInSeconds property: Maximum duration of the capture session in seconds.
|
Integer |
totalBytesPerSession()
Get the totalBytesPerSession property: Maximum size of the capture output.
|
void |
validate()
Validates the instance.
|
PacketCaptureParameters |
withBytesToCapturePerPacket(Integer bytesToCapturePerPacket)
Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.
|
PacketCaptureParameters |
withFilters(List<PacketCaptureFilter> filters)
Set the filters property: A list of packet capture filters.
|
PacketCaptureParameters |
withStorageLocation(PacketCaptureStorageLocation storageLocation)
Set the storageLocation property: The storage location for a packet capture session.
|
PacketCaptureParameters |
withTarget(String target)
Set the target property: The ID of the targeted resource, only VM is currently supported.
|
PacketCaptureParameters |
withTimeLimitInSeconds(Integer timeLimitInSeconds)
Set the timeLimitInSeconds property: Maximum duration of the capture session in seconds.
|
PacketCaptureParameters |
withTotalBytesPerSession(Integer totalBytesPerSession)
Set the totalBytesPerSession property: Maximum size of the capture output.
|
public String target()
public PacketCaptureParameters withTarget(String target)
target - the target value to set.public Integer bytesToCapturePerPacket()
public PacketCaptureParameters withBytesToCapturePerPacket(Integer bytesToCapturePerPacket)
bytesToCapturePerPacket - the bytesToCapturePerPacket value to set.public Integer totalBytesPerSession()
public PacketCaptureParameters withTotalBytesPerSession(Integer totalBytesPerSession)
totalBytesPerSession - the totalBytesPerSession value to set.public Integer timeLimitInSeconds()
public PacketCaptureParameters withTimeLimitInSeconds(Integer timeLimitInSeconds)
timeLimitInSeconds - the timeLimitInSeconds value to set.public PacketCaptureStorageLocation storageLocation()
public PacketCaptureParameters withStorageLocation(PacketCaptureStorageLocation storageLocation)
storageLocation - the storageLocation value to set.public List<PacketCaptureFilter> filters()
public PacketCaptureParameters withFilters(List<PacketCaptureFilter> filters)
filters - the filters value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.