Policy

public final class Policy

Class representation of a Nylas policy object.

Constructors

Link copied to clipboard
public Policy Policy(@Json(name = "id") String id, @Json(name = "name") String name, @Json(name = "application_id") String applicationId, @Json(name = "organization_id") String organizationId, @Json(name = "options") PolicyOptions options, @Json(name = "limits") PolicyLimits limits, @Json(name = "rules") List<String> rules, @Json(name = "spam_detection") PolicySpamDetection spamDetection, @Json(name = "created_at") Long createdAt, @Json(name = "updated_at") Long updatedAt)

Properties

Link copied to clipboard
private final String applicationId

The ID of the Nylas application this policy belongs to.

Link copied to clipboard
private final Long createdAt

Unix timestamp when the policy was created.

Link copied to clipboard
private final String id

Globally unique object identifier.

Link copied to clipboard
private final PolicyLimits limits

Resource and rate limits for agent accounts using this policy.

Link copied to clipboard
private final String name

Name of the policy.

Link copied to clipboard
private final PolicyOptions options

Optional mailbox and behavior settings.

Link copied to clipboard
private final String organizationId

The ID of the organization this policy belongs to.

Link copied to clipboard
private final List<String> rules

IDs of rules linked to this policy.

Link copied to clipboard

Spam detection configuration.

Link copied to clipboard
private final Long updatedAt

Unix timestamp when the policy was last updated.

Functions

Link copied to clipboard
public final String getApplicationId()

The ID of the Nylas application this policy belongs to.

Link copied to clipboard
public final Long getCreatedAt()

Unix timestamp when the policy was created.

Link copied to clipboard
public final String getId()

Globally unique object identifier.

Link copied to clipboard
public final PolicyLimits getLimits()

Resource and rate limits for agent accounts using this policy.

Link copied to clipboard
public final String getName()

Name of the policy.

Link copied to clipboard
public final PolicyOptions getOptions()

Optional mailbox and behavior settings.

Link copied to clipboard
public final String getOrganizationId()

The ID of the organization this policy belongs to.

Link copied to clipboard
public final List<String> getRules()

IDs of rules linked to this policy.

Link copied to clipboard

Spam detection configuration.

Link copied to clipboard
public final Long getUpdatedAt()

Unix timestamp when the policy was last updated.