-
public final class MatchOptionsOptional filter for matching emails based on fields. For instance filter results to only include emails whose
SUBJECTvalue doesCONTAINgiven match value. An example payload would be{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }. You can also pass conditions such asHAS_ATTACHMENT. If you wish to extract regex matches inside the email content see thegetEmailContentMatchmethod in the EmailController.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ConditionOption>conditionsprivate final List<MatchOption>matches
-
Constructor Summary
Constructors Constructor Description MatchOptions(List<ConditionOption> conditions, List<MatchOption> matches)
-
Method Summary
Modifier and Type Method Description final List<ConditionOption>getConditions()final List<MatchOption>getMatches()-
-
Constructor Detail
-
MatchOptions
MatchOptions(List<ConditionOption> conditions, List<MatchOption> matches)
- Parameters:
conditions- Zero or more conditions such as{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }.matches- Zero or more match options such as{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }.
-
-
Method Detail
-
getConditions
final List<ConditionOption> getConditions()
-
getMatches
final List<MatchOption> getMatches()
-
-
-
-