Class PacketCaptureResultProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.PacketCaptureParameters
com.azure.resourcemanager.network.fluent.models.PacketCaptureResultProperties
The properties of a packet capture session.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PacketCaptureResultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the provisioningState property: The provisioning state of the packet capture session.voidvalidate()Validates the instance.withBytesToCapturePerPacket(Long bytesToCapturePerPacket) Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.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, filters, scope, storageLocation, target, targetType, timeLimitInSeconds, totalBytesPerSession
-
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.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classPacketCaptureParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-