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
Constructors -
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.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 VM is currently supported.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, storageLocation, target, timeLimitInSeconds, totalBytesPerSession
-
Constructor Details
-
PacketCaptureResultProperties
public PacketCaptureResultProperties()
-
-
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 VM is currently supported.- Overrides:
withTargetin classPacketCaptureParameters- Parameters:
target- the target 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.
-