PacketCaptureParameters Class

  • java.lang.Object
    • com.microsoft.azure.management.network.PacketCaptureParameters

public class PacketCaptureParameters

Parameters that define the create packet capture operation.

Constructor Summary

Constructor Description
PacketCaptureParameters()

Method Summary

Modifier and Type Method and Description
java.lang.Integer bytesToCapturePerPacket()

Get number of bytes captured per packet, the remaining bytes are truncated.

java.util.List<PacketCaptureFilter> filters()

Get a list of packet capture filters.

PacketCaptureStorageLocation storageLocation()

Get the storage location for a packet capture session.

java.lang.String target()

Get the ID of the targeted resource, only VM is currently supported.

java.lang.Integer timeLimitInSeconds()

Get maximum duration of the capture session in seconds.

java.lang.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 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.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

PacketCaptureParameters

public PacketCaptureParameters()

Method Details

bytesToCapturePerPacket

public Integer bytesToCapturePerPacket()

Get number of bytes captured per packet, the remaining bytes are truncated.

Returns:

the bytesToCapturePerPacket value

filters

public List filters()

Get a list of packet capture filters.

Returns:

the filters value

storageLocation

public PacketCaptureStorageLocation storageLocation()

Get the storage location for a packet capture session.

Returns:

the storageLocation value

target

public String target()

Get the ID of the targeted resource, only VM is currently supported.

Returns:

the target value

timeLimitInSeconds

public Integer timeLimitInSeconds()

Get maximum duration of the capture session in seconds.

Returns:

the timeLimitInSeconds value

totalBytesPerSession

public Integer totalBytesPerSession()

Get maximum size of the capture output.

Returns:

the totalBytesPerSession value

withBytesToCapturePerPacket

public PacketCaptureParameters withBytesToCapturePerPacket(Integer bytesToCapturePerPacket)

Set number of bytes captured per packet, the remaining bytes are truncated.

Parameters:

bytesToCapturePerPacket - the bytesToCapturePerPacket value to set

Returns:

the PacketCaptureParameters object itself.

withFilters

public PacketCaptureParameters withFilters(List filters)

Set a list of packet capture filters.

Parameters:

filters - the filters value to set

Returns:

the PacketCaptureParameters object itself.

withStorageLocation

public PacketCaptureParameters withStorageLocation(PacketCaptureStorageLocation storageLocation)

Set the storage location for a packet capture session.

Parameters:

storageLocation - the storageLocation value to set

Returns:

the PacketCaptureParameters object itself.

withTarget

public PacketCaptureParameters withTarget(String target)

Set the ID of the targeted resource, only VM is currently supported.

Parameters:

target - the target value to set

Returns:

the PacketCaptureParameters object itself.

withTimeLimitInSeconds

public PacketCaptureParameters withTimeLimitInSeconds(Integer timeLimitInSeconds)

Set maximum duration of the capture session in seconds.

Parameters:

timeLimitInSeconds - the timeLimitInSeconds value to set

Returns:

the PacketCaptureParameters object itself.

withTotalBytesPerSession

public PacketCaptureParameters withTotalBytesPerSession(Integer totalBytesPerSession)

Set maximum size of the capture output.

Parameters:

totalBytesPerSession - the totalBytesPerSession value to set

Returns:

the PacketCaptureParameters object itself.

Applies to