Class PacketCaptureInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.PacketCaptureInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PacketCaptureInner>
public final class PacketCaptureInner
extends Object
implements com.azure.json.JsonSerializable<PacketCaptureInner>
Parameters that define the create packet capture operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.Get the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.Get the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value.filters()Get the filters property: A list of packet capture filters.static PacketCaptureInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PacketCaptureInner from the JsonReader.scope()Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture.Get the storageLocation property: The storage location for a packet capture session.target()Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.Get the targetType property: Target type of the resource provided.Get the timeLimitInSeconds property: Maximum duration of the capture session in seconds.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the totalBytesPerSession property: Maximum size of the capture output.voidvalidate()Validates the instance.withBytesToCapturePerPacket(Long bytesToCapturePerPacket) Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.withCaptureSettings(PacketCaptureSettings captureSettings) Set the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.withContinuousCapture(Boolean continuousCapture) Set the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value.withFilters(List<PacketCaptureFilter> filters) Set the filters property: A list of packet capture filters.Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture.withStorageLocation(PacketCaptureStorageLocation storageLocation) Set the storageLocation property: The storage location for a packet capture session.withTarget(String target) Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.withTargetType(PacketCaptureTargetType targetType) Set the targetType property: Target type of the resource provided.withTimeLimitInSeconds(Integer timeLimitInSeconds) Set the timeLimitInSeconds property: Maximum duration of the capture session in seconds.withTotalBytesPerSession(Long totalBytesPerSession) Set the totalBytesPerSession property: Maximum size of the capture output.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PacketCaptureInner
public PacketCaptureInner()Creates an instance of PacketCaptureInner class.
-
-
Method Details
-
target
Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.- Returns:
- the target value.
-
withTarget
Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.- Parameters:
target- the target value to set.- Returns:
- the PacketCaptureInner object itself.
-
scope
Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.- Returns:
- the scope value.
-
withScope
Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.- Parameters:
scope- the scope value to set.- Returns:
- the PacketCaptureInner object itself.
-
targetType
Get the targetType property: Target type of the resource provided.- Returns:
- the targetType value.
-
withTargetType
Set the targetType property: Target type of the resource provided.- Parameters:
targetType- the targetType value to set.- Returns:
- the PacketCaptureInner object itself.
-
bytesToCapturePerPacket
Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.- Returns:
- the bytesToCapturePerPacket value.
-
withBytesToCapturePerPacket
Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.- Parameters:
bytesToCapturePerPacket- the bytesToCapturePerPacket value to set.- Returns:
- the PacketCaptureInner object itself.
-
totalBytesPerSession
Get the totalBytesPerSession property: Maximum size of the capture output.- Returns:
- the totalBytesPerSession value.
-
withTotalBytesPerSession
Set the totalBytesPerSession property: Maximum size of the capture output.- Parameters:
totalBytesPerSession- the totalBytesPerSession value to set.- Returns:
- the PacketCaptureInner object itself.
-
timeLimitInSeconds
Get the timeLimitInSeconds property: Maximum duration of the capture session in seconds.- Returns:
- the timeLimitInSeconds value.
-
withTimeLimitInSeconds
Set the timeLimitInSeconds property: Maximum duration of the capture session in seconds.- Parameters:
timeLimitInSeconds- the timeLimitInSeconds value to set.- Returns:
- the PacketCaptureInner object itself.
-
storageLocation
Get the storageLocation property: The storage location for a packet capture session.- Returns:
- the storageLocation value.
-
withStorageLocation
Set the storageLocation property: The storage location for a packet capture session.- Parameters:
storageLocation- the storageLocation value to set.- Returns:
- the PacketCaptureInner object itself.
-
filters
Get the filters property: A list of packet capture filters.- Returns:
- the filters value.
-
withFilters
Set the filters property: A list of packet capture filters.- Parameters:
filters- the filters value to set.- Returns:
- the PacketCaptureInner object itself.
-
continuousCapture
Get the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'.- Returns:
- the continuousCapture value.
-
withContinuousCapture
Set the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'.- Parameters:
continuousCapture- the continuousCapture value to set.- Returns:
- the PacketCaptureInner object itself.
-
captureSettings
Get the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.- Returns:
- the captureSettings value.
-
withCaptureSettings
Set the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.- Parameters:
captureSettings- the captureSettings value to set.- Returns:
- the PacketCaptureInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PacketCaptureInner>- Throws:
IOException
-
fromJson
Reads an instance of PacketCaptureInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PacketCaptureInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the PacketCaptureInner.
-