Class PacketCaptureResultInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.PacketCaptureResultInner

public final class PacketCaptureResultInner extends Object
Information about packet capture session.
  • Constructor Details

    • PacketCaptureResultInner

      public PacketCaptureResultInner()
      Creates an instance of PacketCaptureResultInner class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the packet capture session.
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: ID of the packet capture operation.
      Returns:
      the id value.
    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the packet capture session.
      Returns:
      the provisioningState value.
    • target

      public String target()
      Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
      Returns:
      the target value.
    • withTarget

      public PacketCaptureResultInner withTarget(String target)
      Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
      Parameters:
      target - the target value to set.
      Returns:
      the PacketCaptureResultInner object itself.
    • scope

      public PacketCaptureMachineScope scope()
      Get 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.
      Returns:
      the scope value.
    • 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.
      Parameters:
      scope - the scope value to set.
      Returns:
      the PacketCaptureResultInner object itself.
    • targetType

      public PacketCaptureTargetType targetType()
      Get the targetType property: Target type of the resource provided.
      Returns:
      the targetType value.
    • withTargetType

      public PacketCaptureResultInner withTargetType(PacketCaptureTargetType targetType)
      Set the targetType property: Target type of the resource provided.
      Parameters:
      targetType - the targetType value to set.
      Returns:
      the PacketCaptureResultInner 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 PacketCaptureResultInner 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 PacketCaptureResultInner object itself.
    • totalBytesPerSession

      public Long totalBytesPerSession()
      Get the totalBytesPerSession property: Maximum size of the capture output.
      Returns:
      the totalBytesPerSession value.
    • withTotalBytesPerSession

      public PacketCaptureResultInner withTotalBytesPerSession(Long totalBytesPerSession)
      Set the totalBytesPerSession property: Maximum size of the capture output.
      Parameters:
      totalBytesPerSession - the totalBytesPerSession value to set.
      Returns:
      the PacketCaptureResultInner object itself.
    • timeLimitInSeconds

      public Integer timeLimitInSeconds()
      Get the timeLimitInSeconds property: Maximum duration of the capture session in seconds.
      Returns:
      the timeLimitInSeconds value.
    • withTimeLimitInSeconds

      public PacketCaptureResultInner withTimeLimitInSeconds(Integer timeLimitInSeconds)
      Set the timeLimitInSeconds property: Maximum duration of the capture session in seconds.
      Parameters:
      timeLimitInSeconds - the timeLimitInSeconds value to set.
      Returns:
      the PacketCaptureResultInner object itself.
    • storageLocation

      public PacketCaptureStorageLocation storageLocation()
      Get the storageLocation property: The storage location for a packet capture session.
      Returns:
      the storageLocation value.
    • withStorageLocation

      public PacketCaptureResultInner withStorageLocation(PacketCaptureStorageLocation storageLocation)
      Set the storageLocation property: The storage location for a packet capture session.
      Parameters:
      storageLocation - the storageLocation value to set.
      Returns:
      the PacketCaptureResultInner object itself.
    • filters

      public List<PacketCaptureFilter> filters()
      Get the filters property: A list of packet capture filters.
      Returns:
      the filters value.
    • withFilters

      public PacketCaptureResultInner withFilters(List<PacketCaptureFilter> filters)
      Set the filters property: A list of packet capture filters.
      Parameters:
      filters - the filters value to set.
      Returns:
      the PacketCaptureResultInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.