-
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<MatchOption>matchesprivate final List<ConditionOption>conditions
-
Constructor Summary
Constructors Constructor Description MatchOptions(List<MatchOption> matches, List<ConditionOption> conditions)
-
Method Summary
Modifier and Type Method Description final List<MatchOption>getMatches()final List<ConditionOption>getConditions()-
-
Constructor Detail
-
MatchOptions
MatchOptions(List<MatchOption> matches, List<ConditionOption> conditions)
- Parameters:
matches- Zero or more match options such as{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }.conditions- Zero or more conditions such as{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }.
-
-
Method Detail
-
getMatches
final List<MatchOption> getMatches()
-
getConditions
final List<ConditionOption> getConditions()
-
-
-
-