PacketCaptureStorageLocation Class

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

public class PacketCaptureStorageLocation

The storage location for a packet capture session.

Constructor Summary

Constructor Description
PacketCaptureStorageLocation()

Method Summary

Modifier and Type Method and Description
java.lang.String filePath()

Get a valid local path on the targeting VM.

java.lang.String storageId()

Get the ID of the storage account to save the packet capture session.

java.lang.String storagePath()

Get the URI of the storage path to save the packet capture.

PacketCaptureStorageLocation withFilePath(String filePath)

Set a valid local path on the targeting VM.

PacketCaptureStorageLocation withStorageId(String storageId)

Set the ID of the storage account to save the packet capture session.

PacketCaptureStorageLocation withStoragePath(String storagePath)

Set the URI of the storage path to save the packet capture.

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

PacketCaptureStorageLocation

public PacketCaptureStorageLocation()

Method Details

filePath

public String filePath()

Get a valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.

Returns:

the filePath value

storageId

public String storageId()

Get the ID of the storage account to save the packet capture session. Required if no local file path is provided.

Returns:

the storageId value

storagePath

public String storagePath()

Get the URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.

Returns:

the storagePath value

withFilePath

public PacketCaptureStorageLocation withFilePath(String filePath)

Set a valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.

Parameters:

filePath - the filePath value to set

Returns:

the PacketCaptureStorageLocation object itself.

withStorageId

public PacketCaptureStorageLocation withStorageId(String storageId)

Set the ID of the storage account to save the packet capture session. Required if no local file path is provided.

Parameters:

storageId - the storageId value to set

Returns:

the PacketCaptureStorageLocation object itself.

withStoragePath

public PacketCaptureStorageLocation withStoragePath(String storagePath)

Set the URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.

Parameters:

storagePath - the storagePath value to set

Returns:

the PacketCaptureStorageLocation object itself.

Applies to