Class PacketCaptureResultProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.PacketCaptureParameters
com.azure.resourcemanager.network.fluent.models.PacketCaptureResultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PacketCaptureParameters>
The properties of a packet capture session.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PacketCaptureResultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PacketCaptureResultProperties from the JsonReader.Get the provisioningState property: The provisioning state of the packet capture session.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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 com.azure.resourcemanager.network.fluent.models.PacketCaptureParameters
bytesToCapturePerPacket, captureSettings, continuousCapture, filters, scope, storageLocation, target, targetType, timeLimitInSeconds, totalBytesPerSessionMethods 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
-
PacketCaptureResultProperties
public PacketCaptureResultProperties()Creates an instance of PacketCaptureResultProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the packet capture session.- Returns:
- the provisioningState value.
-
withTarget
Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.- Overrides:
withTargetin classPacketCaptureParameters- Parameters:
target- the target value to set.- Returns:
- the PacketCaptureParameters object itself.
-
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.- Overrides:
withScopein classPacketCaptureParameters- Parameters:
scope- the scope value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withTargetType
Set the targetType property: Target type of the resource provided.- Overrides:
withTargetTypein classPacketCaptureParameters- Parameters:
targetType- the targetType value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withBytesToCapturePerPacket
Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.- Overrides:
withBytesToCapturePerPacketin classPacketCaptureParameters- Parameters:
bytesToCapturePerPacket- the bytesToCapturePerPacket value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withTotalBytesPerSession
Set the totalBytesPerSession property: Maximum size of the capture output.- Overrides:
withTotalBytesPerSessionin classPacketCaptureParameters- Parameters:
totalBytesPerSession- the totalBytesPerSession value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withTimeLimitInSeconds
Set the timeLimitInSeconds property: Maximum duration of the capture session in seconds.- Overrides:
withTimeLimitInSecondsin classPacketCaptureParameters- Parameters:
timeLimitInSeconds- the timeLimitInSeconds value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withStorageLocation
public PacketCaptureResultProperties withStorageLocation(PacketCaptureStorageLocation storageLocation) Set the storageLocation property: The storage location for a packet capture session.- Overrides:
withStorageLocationin classPacketCaptureParameters- Parameters:
storageLocation- the storageLocation value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withFilters
Set the filters property: A list of packet capture filters.- Overrides:
withFiltersin classPacketCaptureParameters- Parameters:
filters- the filters value to set.- Returns:
- the PacketCaptureParameters object itself.
-
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'.- Overrides:
withContinuousCapturein classPacketCaptureParameters- Parameters:
continuousCapture- the continuousCapture value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withCaptureSettings
Set the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.- Overrides:
withCaptureSettingsin classPacketCaptureParameters- Parameters:
captureSettings- the captureSettings value to set.- Returns:
- the PacketCaptureParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classPacketCaptureParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PacketCaptureParameters>- Overrides:
toJsonin classPacketCaptureParameters- Throws:
IOException
-
fromJson
public static PacketCaptureResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PacketCaptureResultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PacketCaptureResultProperties 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 PacketCaptureResultProperties.
-