ListFoldersQueryParams

public final class ListFoldersQueryParams implements IQueryParams

Class representing the query parameters for listing messages.

Constructors

Link copied to clipboard
public ListFoldersQueryParams ListFoldersQueryParams(@Json(name = "limit") Integer limit, @Json(name = "page_token") String pageToken, @Json(name = "parent_id") String parentId, @Json(name = "select") String select)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final Integer limit

The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200.

Link copied to clipboard
private final String pageToken

An identifier that specifies which page of data to return. This value should be taken from the ListResponse.nextCursor response field.

Link copied to clipboard
private final String parentId

(Microsoft and EWS only.) Use the ID of a folder to find all child folders it contains.

Link copied to clipboard
private String select

Specify fields that you want Nylas to return, as a comma-separated list (for example, select=id,updated_at). This allows you to receive only the portion of object data that you're interested in. You can use select to optimize response size and reduce latency by limiting queries to only the information that you need

Functions

Link copied to clipboard

Convert the query parameters to a json-formatted map.

Link copied to clipboard
public final Integer getLimit()

The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200.

Link copied to clipboard
public final String getPageToken()

An identifier that specifies which page of data to return. This value should be taken from the ListResponse.nextCursor response field.

Link copied to clipboard
public final String getParentId()

(Microsoft and EWS only.) Use the ID of a folder to find all child folders it contains.

Link copied to clipboard
public final String getSelect()

Specify fields that you want Nylas to return, as a comma-separated list (for example, select=id,updated_at). This allows you to receive only the portion of object data that you're interested in. You can use select to optimize response size and reduce latency by limiting queries to only the information that you need

Link copied to clipboard
public final Unit setSelect(String select)

Specify fields that you want Nylas to return, as a comma-separated list (for example, select=id,updated_at). This allows you to receive only the portion of object data that you're interested in. You can use select to optimize response size and reduce latency by limiting queries to only the information that you need