Rule
Class representation of a Nylas rule object.
Constructors
Link copied to clipboard
public Rule Rule(@Json(name = "id" ) String id, @Json(name = "name" ) String name, @Json(name = "description" ) String description, @Json(name = "priority" ) Integer priority, @Json(name = "enabled" ) Boolean enabled, @Json(name = "trigger" ) RuleTrigger trigger, @Json(name = "match" ) RuleMatch match, @Json(name = "actions" ) List<RuleAction> actions, @Json(name = "application_id" ) String applicationId, @Json(name = "organization_id" ) String organizationId, @Json(name = "created_at" ) Long createdAt, @Json(name = "updated_at" ) Long updatedAt)
Properties
Link copied to clipboard
The actions to perform when conditions are met.
Link copied to clipboard
The ID of the Nylas application this rule belongs to.
Link copied to clipboard
Optional description of the rule.
Link copied to clipboard
The ID of the organization this rule belongs to.
Link copied to clipboard
When this rule is evaluated — on inbound mail or outbound sends.
Functions
Link copied to clipboard
The actions to perform when conditions are met.
Link copied to clipboard
The ID of the Nylas application this rule belongs to.
Link copied to clipboard
Unix timestamp when the rule was created.
Link copied to clipboard
Optional description of the rule.
Link copied to clipboard
Whether the rule is active.
Link copied to clipboard
The ID of the organization this rule belongs to.
Link copied to clipboard
Evaluation order — lower numbers run first. Range 0–1000, default 10.
Link copied to clipboard
When this rule is evaluated — on inbound mail or outbound sends.
Link copied to clipboard
Unix timestamp when the rule was last updated.