Class PacketCaptureInner
- java.lang.Object
-
- com.azure.resourcemanager.network.fluent.models.PacketCaptureInner
-
public final class PacketCaptureInner extends Object
Parameters that define the create packet capture operation.
-
-
Constructor Summary
Constructors Constructor Description PacketCaptureInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongbytesToCapturePerPacket()Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.List<PacketCaptureFilter>filters()Get the filters property: A list of packet capture filters.PacketCaptureStorageLocationstorageLocation()Get the storageLocation property: The storage location for a packet capture session.Stringtarget()Get the target property: The ID of the targeted resource, only VM is currently supported.IntegertimeLimitInSeconds()Get the timeLimitInSeconds property: Maximum duration of the capture session in seconds.LongtotalBytesPerSession()Get the totalBytesPerSession property: Maximum size of the capture output.voidvalidate()Validates the instance.PacketCaptureInnerwithBytesToCapturePerPacket(Long bytesToCapturePerPacket)Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.PacketCaptureInnerwithFilters(List<PacketCaptureFilter> filters)Set the filters property: A list of packet capture filters.PacketCaptureInnerwithStorageLocation(PacketCaptureStorageLocation storageLocation)Set the storageLocation property: The storage location for a packet capture session.PacketCaptureInnerwithTarget(String target)Set the target property: The ID of the targeted resource, only VM is currently supported.PacketCaptureInnerwithTimeLimitInSeconds(Integer timeLimitInSeconds)Set the timeLimitInSeconds property: Maximum duration of the capture session in seconds.PacketCaptureInnerwithTotalBytesPerSession(Long totalBytesPerSession)Set the totalBytesPerSession property: Maximum size of the capture output.
-
-
-
Method Detail
-
target
public String target()
Get the target property: The ID of the targeted resource, only VM is currently supported.- Returns:
- the target value.
-
withTarget
public PacketCaptureInner withTarget(String target)
Set the target property: The ID of the targeted resource, only VM is currently supported.- Parameters:
target- the target value to set.- Returns:
- the PacketCaptureInner object itself.
-
bytesToCapturePerPacket
public Long bytesToCapturePerPacket()
Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated.- Returns:
- the bytesToCapturePerPacket value.
-
withBytesToCapturePerPacket
public PacketCaptureInner withBytesToCapturePerPacket(Long bytesToCapturePerPacket)
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
public Long totalBytesPerSession()
Get the totalBytesPerSession property: Maximum size of the capture output.- Returns:
- the totalBytesPerSession value.
-
withTotalBytesPerSession
public PacketCaptureInner withTotalBytesPerSession(Long totalBytesPerSession)
Set the totalBytesPerSession property: Maximum size of the capture output.- Parameters:
totalBytesPerSession- the totalBytesPerSession value to set.- Returns:
- the PacketCaptureInner object itself.
-
timeLimitInSeconds
public Integer timeLimitInSeconds()
Get the timeLimitInSeconds property: Maximum duration of the capture session in seconds.- Returns:
- the timeLimitInSeconds value.
-
withTimeLimitInSeconds
public PacketCaptureInner withTimeLimitInSeconds(Integer timeLimitInSeconds)
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
public PacketCaptureStorageLocation storageLocation()
Get the storageLocation property: The storage location for a packet capture session.- Returns:
- the storageLocation value.
-
withStorageLocation
public PacketCaptureInner withStorageLocation(PacketCaptureStorageLocation storageLocation)
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
public List<PacketCaptureFilter> filters()
Get the filters property: A list of packet capture filters.- Returns:
- the filters value.
-
withFilters
public PacketCaptureInner withFilters(List<PacketCaptureFilter> filters)
Set the filters property: A list of packet capture filters.- Parameters:
filters- the filters value to set.- Returns:
- the PacketCaptureInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-