// this file is @generated
package com.svix.api;

import com.svix.models.MessageStatus;

import lombok.Data;

import java.time.OffsetDateTime;
import java.util.Set;

@Data
public class MessageAttemptListAttemptedMessagesOptions {
    /** Limit the number of returned items */
    Long limit;

    /** The iterator returned from a prior invocation */
    String iterator;

    /** Filter response based on the channel */
    String channel;

    /** Filter response based on the message tags */
    String tag;

    /**
     * Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2),
     * Sending (3), or Canceled (4)
     */
    MessageStatus status;

    /** Only include items created before a certain date */
    OffsetDateTime before;

    /** Only include items created after a certain date */
    OffsetDateTime after;

    /**
     * When `true` message payloads are included in the response.
     *
     * <p>Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a
     * request without specifying this parameter.
     */
    Boolean withContent;

    /**
     * When `true`, return the Canceled (4) status in attempts.
     *
     * <p>If `false`, canceled attempts are returned as Success (0) for backwards compatibility.
     */
    Boolean expandedStatuses;

    /** Filter response based on the event type */
    Set<String> eventTypes;
}
