Class PacketCaptureStorageLocation
- java.lang.Object
-
- com.azure.resourcemanager.network.models.PacketCaptureStorageLocation
-
public final class PacketCaptureStorageLocation extends Object
The storage location for a packet capture session.
-
-
Constructor Summary
Constructors Constructor Description PacketCaptureStorageLocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfilePath()Get the filePath property: A valid local path on the targeting VM.StringstorageId()Get the storageId property: The ID of the storage account to save the packet capture session.StringstoragePath()Get the storagePath property: The URI of the storage path to save the packet capture.voidvalidate()Validates the instance.PacketCaptureStorageLocationwithFilePath(String filePath)Set the filePath property: A valid local path on the targeting VM.PacketCaptureStorageLocationwithStorageId(String storageId)Set the storageId property: The ID of the storage account to save the packet capture session.PacketCaptureStorageLocationwithStoragePath(String storagePath)Set the storagePath property: The URI of the storage path to save the packet capture.
-
-
-
Method Detail
-
storageId
public String storageId()
Get the storageId property: The ID of the storage account to save the packet capture session. Required if no local file path is provided.- Returns:
- the storageId value.
-
withStorageId
public PacketCaptureStorageLocation withStorageId(String storageId)
Set the storageId property: 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.
-
storagePath
public String storagePath()
Get the storagePath property: 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.
-
withStoragePath
public PacketCaptureStorageLocation withStoragePath(String storagePath)
Set the storagePath property: 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.
-
filePath
public String filePath()
Get the filePath property: 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.
-
withFilePath
public PacketCaptureStorageLocation withFilePath(String filePath)
Set the filePath property: 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-