PacketCaptureStorageLocation Class
- java.
lang. Object - com.
microsoft. azure. management. network. PacketCaptureStorageLocation
- com.
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. |
Packet |
withFilePath(String filePath)
Set a valid local path on the targeting VM. |
Packet |
withStorageId(String storageId)
Set the ID of the storage account to save the packet capture session. |
Packet |
withStoragePath(String storagePath)
Set the URI of the storage path to save the packet capture. |
Methods inherited from java.lang.Object
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:
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:
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:
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java