RuleCondition

public final class RuleCondition

Class representation of a single condition in a Nylas rule match.

Constructors

Link copied to clipboard
public RuleCondition RuleCondition(@Json(name = "field") String field, @Json(name = "operator") RuleConditionOperator operator, @Json(name = "value") String value)

Properties

Link copied to clipboard
private final String field

The field to evaluate. Inbound: from.address, from.domain, from.tld. Outbound: recipient.address, recipient.domain, recipient.tld, outbound.type.

Link copied to clipboard

The comparison operator.

Link copied to clipboard
private final String value

The value to compare against. For RuleConditionOperator.IN_LIST, this is the List resource ID.

Functions

Link copied to clipboard
public final String getField()

The field to evaluate. Inbound: from.address, from.domain, from.tld. Outbound: recipient.address, recipient.domain, recipient.tld, outbound.type.

Link copied to clipboard

The comparison operator.

Link copied to clipboard
public final String getValue()

The value to compare against. For RuleConditionOperator.IN_LIST, this is the List resource ID.