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