Interface SqsSendOptions<T>

Type Parameters:
T - the payload type.

public interface SqsSendOptions<T>
Options for sending messages to SQS queues, with a method chaining API.
  • Method Details

    • queue

      SqsSendOptions<T> queue(String queue)
      Set the queue name, url or ARN to send the message to.
      Parameters:
      queue - the queue name.
      Returns:
      the options instance.
    • payload

      SqsSendOptions<T> payload(T payload)
      Set the payload to send in the message. The payload will be serialized if necessary.
      Parameters:
      payload - the payload.
      Returns:
      the options instance.
    • header

      SqsSendOptions<T> header(String headerName, Object headerValue)
      Add a header to be sent in the message. The header will be sent as a MessageAttribute.
      Parameters:
      headerName - the header name.
      headerValue - the header value.
      Returns:
      the options instance.
    • headers

      SqsSendOptions<T> headers(Map<String,Object> headers)
      Add headers to be sent in the message. The headers will be sent as MessageAttributes.
      Parameters:
      headers - the headers to add.
      Returns:
      the options instance.
    • delaySeconds

      SqsSendOptions<T> delaySeconds(Integer delaySeconds)
      Set a delay for the message in seconds.
      Parameters:
      delaySeconds - the delay in seconds.
      Returns:
      the options instance.
    • messageGroupId

      SqsSendOptions<T> messageGroupId(String messageGroupId)
      Set the messageGroupId for the message. If none is provided for a FIFO queue, a random UUID is generated.
      Parameters:
      messageGroupId - the id.
      Returns:
      the options instance.
    • messageDeduplicationId

      SqsSendOptions<T> messageDeduplicationId(String messageDeduplicationId)
      Set the messageDeduplicationId for the message. If none is provided for a FIFO queue, a random UUID is generated.
      Parameters:
      messageDeduplicationId - the id.
      Returns:
      the options instance.