Interface OnDemandScan.Builder

  • Method Details

    • scanId

      OnDemandScan.Builder scanId(String scanId)

      The unique identifier of the on-demand scan.

      Parameters:
      scanId - The unique identifier of the on-demand scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceId

      OnDemandScan.Builder resourceId(String resourceId)

      The ID of the resource that was scanned.

      Parameters:
      resourceId - The ID of the resource that was scanned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceType

      OnDemandScan.Builder resourceType(String resourceType)

      The type of the resource that was scanned.

      Parameters:
      resourceType - The type of the resource that was scanned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      OnDemandScan.Builder resourceType(OnDemandResourceType resourceType)

      The type of the resource that was scanned.

      Parameters:
      resourceType - The type of the resource that was scanned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanStatus

      OnDemandScan.Builder scanStatus(String scanStatus)

      The current status of the on-demand scan.

      Parameters:
      scanStatus - The current status of the on-demand scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanStatus

      OnDemandScan.Builder scanStatus(OnDemandScanStatus scanStatus)

      The current status of the on-demand scan.

      Parameters:
      scanStatus - The current status of the on-demand scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanStatusReason

      OnDemandScan.Builder scanStatusReason(String scanStatusReason)

      The reason associated with the current on-demand scan status.

      Parameters:
      scanStatusReason - The reason associated with the current on-demand scan status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanStatusReason

      OnDemandScan.Builder scanStatusReason(OnDemandScanStatusReason scanStatusReason)

      The reason associated with the current on-demand scan status.

      Parameters:
      scanStatusReason - The reason associated with the current on-demand scan status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startedAt

      OnDemandScan.Builder startedAt(Instant startedAt)

      The date and time, in ISO 8601 format, when the on-demand scan started.

      Parameters:
      startedAt - The date and time, in ISO 8601 format, when the on-demand scan started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedAt

      OnDemandScan.Builder completedAt(Instant completedAt)

      The date and time, in ISO 8601 format, when the on-demand scan completed. This field is absent if the scan has not completed.

      Parameters:
      completedAt - The date and time, in ISO 8601 format, when the on-demand scan completed. This field is absent if the scan has not completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.