Class DeleteMessagesResult.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • serverFailures

        public DeleteMessagesResult.Builder serverFailures​(Integer serverFailures)
        The number of messages that failed to be deleted from the queue because of a server failure.
        Parameters:
        serverFailures - the value to set
        Returns:
        this builder
      • clientFailures

        public DeleteMessagesResult.Builder clientFailures​(Integer clientFailures)
        The number of messages that failed to be deleted from the queue because of a client failure such as an invalid receipt.
        Parameters:
        clientFailures - the value to set
        Returns:
        this builder
      • entries

        public DeleteMessagesResult.Builder entries​(List<DeleteMessagesResultEntry> entries)
        An array of items representing the result of each action.

        The order is guaranteed to be the same as in the DeleteMessagesDetails object. If a message was successfully deleted from the queue, the entry does not contain any fields. If a message failed to be deleted from the queue, the entry includes the errorCode and errorMessage fields.

        Parameters:
        entries - the value to set
        Returns:
        this builder