-
public final class CreateInboxRulesetOptionsOptions for creating inbox rulesets. Inbox rulesets can be used to block, allow, filter, or forward emails when sending or receiving using the inbox.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCreateInboxRulesetOptions.ScopeWhat type of emails actions to apply ruleset to. Either
SENDING_EMAILSorRECEIVING_EMAILSwill apply action and target to any sending or receiving of emails respectively. Values: rECEIVINGEMAILS,sENDINGEMAILSpublic enumCreateInboxRulesetOptions.ActionAction to be taken when the ruleset matches an email for the given scope. For example:
BLOCKaction with target*and scopeSENDING_EMAILSblocks sending to all recipients. NoteALLOWtakes precedent overBLOCK.FILTER_REMOVEis like block but will remove offending email addresses during a send or receive event instead of blocking the action. Values: bLOCK,aLLOW,fILTERREMOVE
-
Field Summary
Fields Modifier and Type Field Description private final CreateInboxRulesetOptions.Scopescopeprivate final CreateInboxRulesetOptions.Actionactionprivate final Stringtarget
-
Constructor Summary
Constructors Constructor Description CreateInboxRulesetOptions(CreateInboxRulesetOptions.Scope scope, CreateInboxRulesetOptions.Action action, String target)
-
Method Summary
Modifier and Type Method Description final CreateInboxRulesetOptions.ScopegetScope()final CreateInboxRulesetOptions.ActiongetAction()final StringgetTarget()-
-
Constructor Detail
-
CreateInboxRulesetOptions
CreateInboxRulesetOptions(CreateInboxRulesetOptions.Scope scope, CreateInboxRulesetOptions.Action action, String target)
- Parameters:
scope- What type of emails actions to apply ruleset to.action- Action to be taken when the ruleset matches an email for the given scope.target- Target to match emails with.
-
-
Method Detail
-
getScope
final CreateInboxRulesetOptions.Scope getScope()
-
getAction
final CreateInboxRulesetOptions.Action getAction()
-
-
-
-