public class ScanTextRequest extends Object
| Constructor and Description |
|---|
ScanTextRequest(List<String> payload,
List<UUID> policyUUIDs)
Create a request to scan the provided
payload against the provided
policyUUIDs. |
ScanTextRequest(List<String> payload,
ScanTextConfig policy)
Create a request to scan the provided
payload against the provided scanning
policy. |
| Modifier and Type | Method and Description |
|---|---|
ScanTextConfig |
getConfig()
Deprecated.
alias for
getPolicy, just provided for backwards compatibility. |
List<String> |
getPayload()
Get the request payload.
|
ScanTextConfig |
getPolicy()
Get the request scan policy.
|
List<UUID> |
getPolicyUUIDs()
Get the policy UUIDs to use when performing a scan.
|
void |
setConfig(ScanTextConfig config)
Deprecated.
alias for
setPolicy, just provided for backwards compatibility. |
void |
setPayload(List<String> payload)
Set the request payload.
|
void |
setPolicy(ScanTextConfig policy)
Set the request scan policy.
|
void |
setPolicyUUIDs(List<UUID> policyUUIDs)
Set the policy UUIDs to use when performing a scan.
|
public ScanTextRequest(List<String> payload, ScanTextConfig policy)
payload against the provided scanning
policy.payload - the content to scanpolicy - the configuration to use to scan the contentpublic ScanTextRequest(List<String> payload, List<UUID> policyUUIDs)
payload against the provided
policyUUIDs.payload - the content to scanpolicyUUIDs - a list of UUIDs referring to pre-created policies to-be-used when scanning. Maximum 1.public List<String> getPayload()
public void setPayload(List<String> payload)
payload - the request data to scan@Deprecated public ScanTextConfig getConfig()
getPolicy, just provided for backwards compatibility.payload datapublic ScanTextConfig getPolicy()
payload data@Deprecated public void setConfig(ScanTextConfig config)
setPolicy, just provided for backwards compatibility.config - the configuration to use to scan the payload datapublic void setPolicy(ScanTextConfig policy)
policy - the configuration to use to scan the payload datapublic List<UUID> getPolicyUUIDs()
Copyright © 2022. All rights reserved.