ListEmailMessagesForEmailAddressIdInput

data class ListEmailMessagesForEmailAddressIdInput(val emailAddressId: String, 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 an email address identifier and other properties used to list email messages for an email address.

Constructors

Link copied to clipboard
constructor(emailAddressId: String, 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

String The identifier of the email address associated with the email messages.

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.listEmailMessagesForEmailAddressId. 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.