PacketCaptureStorageLocation Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. PacketCaptureStorageLocation
- com.
Implements
public final class PacketCaptureStorageLocation
implements JsonSerializable<PacketCaptureStorageLocation>
The storage location for a packet capture session.
Constructor Summary
Constructor | Description |
---|---|
PacketCaptureStorageLocation() |
Creates an instance of Packet |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
filePath()
Get the file |
static
Packet |
fromJson(JsonReader jsonReader)
Reads an instance of Packet |
String |
localPath()
Get the local |
String |
storageId()
Get the storage |
String |
storagePath()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Packet |
withFilePath(String filePath)
Set the file |
Packet |
withLocalPath(String localPath)
Set the local |
Packet |
withStorageId(String storageId)
Set the storage |
Packet |
withStoragePath(String storagePath)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
PacketCaptureStorageLocation
public PacketCaptureStorageLocation()
Creates an instance of PacketCaptureStorageLocation class.
Method Details
filePath
public String filePath()
Get the filePath property: This path is invalid if 'Continuous Capture' is provided with 'true' or 'false'. 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:
fromJson
public static PacketCaptureStorageLocation fromJson(JsonReader jsonReader)
Reads an instance of PacketCaptureStorageLocation from the JsonReader.
Parameters:
Returns:
Throws:
localPath
public String localPath()
Get the localPath property: This path is valid if 'Continuous Capture' is provided with 'true' or 'false' and required if no storage ID is provided, otherwise optional. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures.
Returns:
storageId
public String storageId()
Get the storageId property: The ID of the storage account to save the packet capture session. Required if no localPath or filePath is provided.
Returns:
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:
toJson
validate
public void validate()
Validates the instance.
withFilePath
public PacketCaptureStorageLocation withFilePath(String filePath)
Set the filePath property: This path is invalid if 'Continuous Capture' is provided with 'true' or 'false'. 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:
withLocalPath
public PacketCaptureStorageLocation withLocalPath(String localPath)
Set the localPath property: This path is valid if 'Continuous Capture' is provided with 'true' or 'false' and required if no storage ID is provided, otherwise optional. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures.
Parameters:
Returns:
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 localPath or filePath is provided.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java