ListEmailMessagesInput

data class ListEmailMessagesInput(val dateRange: EmailMessageDateRange? = null, val cachePolicy: CachePolicy = CachePolicy.REMOTE_ONLY, val limit: Int? = SudoEmailClient.DEFAULT_EMAIL_MESSAGE_LIMIT, val nextToken: String? = null, val sortOrder: SortOrder = SortOrder.DESC)

Input object containing properties used to list all email messages for a user.

Constructors

Link copied to clipboard
constructor(dateRange: EmailMessageDateRange? = null, cachePolicy: CachePolicy = CachePolicy.REMOTE_ONLY, limit: Int? = SudoEmailClient.DEFAULT_EMAIL_MESSAGE_LIMIT, nextToken: String? = null, sortOrder: SortOrder = SortOrder.DESC)

Properties

Link copied to clipboard

CachePolicy Determines how the data will be fetched. When using CachePolicy.CACHE_ONLY, be aware that this will only return cached results of identical API calls.

Link copied to clipboard

EmailMessageDateRange Email messages matching the specified date range inclusive will be fetched.

Link copied to clipboard
val limit: Int?

Int Number of email messages to return. If omitted the limit defaults to 10.

Link copied to clipboard
val nextToken: String? = null

String A token generated from previous calls to SudoEmailClient.listEmailMessages. This is to allow for pagination. This value should be generated from a previous pagination call, otherwise it will throw an exception. The same arguments should be supplied to this method if using a previously generated nextToken.

Link copied to clipboard

SortOrder The direction in which the email messages are sorted. Defaults to descending.