UpdateRuleRequest

public final class UpdateRuleRequest

Class representation of a Nylas update rule request.

Constructors

Link copied to clipboard
public UpdateRuleRequest UpdateRuleRequest(@Json(name = "name") String name, @Json(name = "trigger") RuleTrigger trigger, @Json(name = "match") RuleMatch match, @Json(name = "actions") List<RuleAction> actions, @Json(name = "description") String description, @Json(name = "priority") Integer priority, @Json(name = "enabled") Boolean enabled)

Types

Link copied to clipboard
public final class Builder

Builder for UpdateRuleRequest.

Properties

Link copied to clipboard
private final List<RuleAction> actions

The actions to perform when conditions are met.

Link copied to clipboard
private final String description

Optional description of the rule.

Link copied to clipboard
private final Boolean enabled

Whether the rule is active.

Link copied to clipboard
private final RuleMatch match

The match conditions for this rule.

Link copied to clipboard
private final String name

Name of the rule.

Link copied to clipboard
private final Integer priority

Evaluation order — lower numbers run first. Range 0–1000.

Link copied to clipboard
private final RuleTrigger trigger

When this rule is evaluated.

Functions

Link copied to clipboard
public final List<RuleAction> getActions()

The actions to perform when conditions are met.

Link copied to clipboard
public final String getDescription()

Optional description of the rule.

Link copied to clipboard
public final Boolean getEnabled()

Whether the rule is active.

Link copied to clipboard
public final RuleMatch getMatch()

The match conditions for this rule.

Link copied to clipboard
public final String getName()

Name of the rule.

Link copied to clipboard
public final Integer getPriority()

Evaluation order — lower numbers run first. Range 0–1000.

Link copied to clipboard
public final RuleTrigger getTrigger()

When this rule is evaluated.