Package ai.nightfall.scan.model
Class ScanTextRequest
java.lang.Object
ai.nightfall.scan.model.ScanTextRequest
An object representing a request to scan inline plaintext with the Nightfall API.
-
Constructor Summary
ConstructorsConstructorDescriptionScanTextRequest(List<String> payload, ScanTextConfig config) Create a request to scan the providedpayloadagainst the provided scanning configurationconfig. -
Method Summary
Modifier and TypeMethodDescriptionGet the request scan configuration.Get the request payload.voidsetConfig(ScanTextConfig config) Set the request scan configuration.voidsetPayload(List<String> payload) Set the request payload.
-
Constructor Details
-
ScanTextRequest
Create a request to scan the providedpayloadagainst the provided scanning configurationconfig.- Parameters:
payload- the content to scanconfig- the configuration to use to scan the content
-
-
Method Details
-
getPayload
Get the request payload.- Returns:
- the request data to scan
-
setPayload
Set the request payload.- Parameters:
payload- the request data to scan
-
getConfig
Get the request scan configuration.- Returns:
- the configuration to use to scan the
payloaddata
-
setConfig
Set the request scan configuration.- Parameters:
config- the configuration to use to scan thepayloaddata
-