Class PacketCaptureResultProperties
- java.lang.Object
-
- com.azure.resourcemanager.network.fluent.models.PacketCaptureParameters
-
- com.azure.resourcemanager.network.fluent.models.PacketCaptureResultProperties
-
public final class PacketCaptureResultProperties extends PacketCaptureParameters
The properties of a packet capture session.
-
-
Constructor Summary
Constructors Constructor Description PacketCaptureResultProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the packet capture session.voidvalidate()Validates the instance.PacketCaptureResultPropertieswithBytesToCapturePerPacket(Long bytesToCapturePerPacket)Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.PacketCaptureResultPropertieswithFilters(List<PacketCaptureFilter> filters)Set the filters property: A list of packet capture filters.PacketCaptureResultPropertieswithStorageLocation(PacketCaptureStorageLocation storageLocation)Set the storageLocation property: The storage location for a packet capture session.PacketCaptureResultPropertieswithTarget(String target)Set the target property: The ID of the targeted resource, only VM is currently supported.PacketCaptureResultPropertieswithTimeLimitInSeconds(Integer timeLimitInSeconds)Set the timeLimitInSeconds property: Maximum duration of the capture session in seconds.PacketCaptureResultPropertieswithTotalBytesPerSession(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, storageLocation, target, timeLimitInSeconds, totalBytesPerSession
-
-
-
-
Method Detail
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the packet capture session.- Returns:
- the provisioningState value.
-
withTarget
public PacketCaptureResultProperties withTarget(String target)
Set the target property: The ID of the targeted resource, only VM is currently supported.- Overrides:
withTargetin classPacketCaptureParameters- Parameters:
target- the target value to set.- Returns:
- the PacketCaptureParameters object itself.
-
withBytesToCapturePerPacket
public PacketCaptureResultProperties withBytesToCapturePerPacket(Long bytesToCapturePerPacket)
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
public PacketCaptureResultProperties withTotalBytesPerSession(Long totalBytesPerSession)
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
public PacketCaptureResultProperties withTimeLimitInSeconds(Integer timeLimitInSeconds)
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
public PacketCaptureResultProperties withFilters(List<PacketCaptureFilter> filters)
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.
-
-