Class GetMessage.Builder

  • Enclosing class:
    GetMessage

    public static class GetMessage.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public GetMessage.Builder id​(Long id)
        The ID of the message.

        This ID is only used for tracing and debugging purposes and isn’t used as a parameter in any request.

        Parameters:
        id - the value to set
        Returns:
        this builder
      • content

        public GetMessage.Builder content​(String content)
        The content of the message.
        Parameters:
        content - the value to set
        Returns:
        this builder
      • receipt

        public GetMessage.Builder receipt​(String receipt)
        A receipt is a base64urlencode opaque token, uniquely representing a message.

        The receipt can be used to delete a message or update its visibility.

        Parameters:
        receipt - the value to set
        Returns:
        this builder
      • deliveryCount

        public GetMessage.Builder deliveryCount​(Integer deliveryCount)
        The number of times that the message has been delivered to a consumer.
        Parameters:
        deliveryCount - the value to set
        Returns:
        this builder
      • visibleAfter

        public GetMessage.Builder visibleAfter​(Date visibleAfter)
        The time after which the message will be visible to other consumers, expressed in RFC 3339 timestamp format.

        Example: 2018-04-20T00:00:07.405Z

        Parameters:
        visibleAfter - the value to set
        Returns:
        this builder
      • expireAfter

        public GetMessage.Builder expireAfter​(Date expireAfter)
        The time after which the message will be automatically deleted, expressed in RFC 3339 timestamp format.

        Example: 2018-04-20T00:00:07.405Z

        Parameters:
        expireAfter - the value to set
        Returns:
        this builder
      • createdAt

        public GetMessage.Builder createdAt​(Date createdAt)
        The time when message was created in queue.

        Example: 2018-04-20T00:00:07.405Z

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