Class UpdateMessagesResult.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • serverFailures

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

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

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

        The order is guaranteed to be the same as in the UpdateMessagesDetails object. If a message was successfully updated in the queue, the entry includes the id and visibleAfter fields. If a message failed to be updated in the queue, the entry includes the errorCode and errorMessage fields.

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