Class ScanTextRequest

java.lang.Object
ai.nightfall.scan.model.ScanTextRequest

public class ScanTextRequest extends Object
An object representing a request to scan inline plaintext with the Nightfall API.
  • Constructor Details

    • ScanTextRequest

      public ScanTextRequest(List<String> payload, ScanTextConfig config)
      Create a request to scan the provided payload against the provided scanning configuration config.
      Parameters:
      payload - the content to scan
      config - the configuration to use to scan the content
  • Method Details

    • getPayload

      public List<String> getPayload()
      Get the request payload.
      Returns:
      the request data to scan
    • setPayload

      public void setPayload(List<String> payload)
      Set the request payload.
      Parameters:
      payload - the request data to scan
    • getConfig

      public ScanTextConfig getConfig()
      Get the request scan configuration.
      Returns:
      the configuration to use to scan the payload data
    • setConfig

      public void setConfig(ScanTextConfig config)
      Set the request scan configuration.
      Parameters:
      config - the configuration to use to scan the payload data