public class PacketCaptureParameters extends Object
| Constructor and Description |
|---|
PacketCaptureParameters() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
bytesToCapturePerPacket()
Get number of bytes captured per packet, the remaining bytes are truncated.
|
List<PacketCaptureFilter> |
filters()
Get a list of packet capture filters.
|
PacketCaptureStorageLocation |
storageLocation()
Get describes the storage location for a packet capture session.
|
String |
target()
Get the ID of the targeted resource, only VM is currently supported.
|
Integer |
timeLimitInSeconds()
Get maximum duration of the capture session in seconds.
|
Integer |
totalBytesPerSession()
Get maximum size of the capture output.
|
PacketCaptureParameters |
withBytesToCapturePerPacket(Integer bytesToCapturePerPacket)
Set number of bytes captured per packet, the remaining bytes are truncated.
|
PacketCaptureParameters |
withFilters(List<PacketCaptureFilter> filters)
Set a list of packet capture filters.
|
PacketCaptureParameters |
withStorageLocation(PacketCaptureStorageLocation storageLocation)
Set describes the storage location for a packet capture session.
|
PacketCaptureParameters |
withTarget(String target)
Set the ID of the targeted resource, only VM is currently supported.
|
PacketCaptureParameters |
withTimeLimitInSeconds(Integer timeLimitInSeconds)
Set maximum duration of the capture session in seconds.
|
PacketCaptureParameters |
withTotalBytesPerSession(Integer totalBytesPerSession)
Set maximum size of the capture output.
|
public String target()
public PacketCaptureParameters withTarget(String target)
target - the target value to setpublic Integer bytesToCapturePerPacket()
public PacketCaptureParameters withBytesToCapturePerPacket(Integer bytesToCapturePerPacket)
bytesToCapturePerPacket - the bytesToCapturePerPacket value to setpublic Integer totalBytesPerSession()
public PacketCaptureParameters withTotalBytesPerSession(Integer totalBytesPerSession)
totalBytesPerSession - the totalBytesPerSession value to setpublic Integer timeLimitInSeconds()
public PacketCaptureParameters withTimeLimitInSeconds(Integer timeLimitInSeconds)
timeLimitInSeconds - the timeLimitInSeconds value to setpublic PacketCaptureStorageLocation storageLocation()
public PacketCaptureParameters withStorageLocation(PacketCaptureStorageLocation storageLocation)
storageLocation - the storageLocation value to setpublic List<PacketCaptureFilter> filters()
public PacketCaptureParameters withFilters(List<PacketCaptureFilter> filters)
filters - the filters value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/