Class Message.Builder

    • Method Detail

      • type

        public Message.IdStage type​(@NotNull
                                    java.lang.String type)

        The type of the message

        The type of the message

        Specified by:
        type in interface Message.TypeStage
        Returns:
        Reference to this so that method calls can be chained together.
      • id

        public Message.CreatedAtStage id​(@NotNull
                                         java.lang.String id)

        The id representing the message.

        The id representing the message.

        Specified by:
        id in interface Message.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • createdAt

        public Message.BodyStage createdAt​(int createdAt)

        The time the conversation was created.

        The time the conversation was created.

        Specified by:
        createdAt in interface Message.CreatedAtStage
        Returns:
        Reference to this so that method calls can be chained together.
      • body

        public Message.MessageTypeStage body​(@NotNull
                                             java.lang.String body)

        The message body, which may contain HTML.

        The message body, which may contain HTML.

        Specified by:
        body in interface Message.BodyStage
        Returns:
        Reference to this so that method calls can be chained together.
      • conversationId

        public Message._FinalStage conversationId​(@NotNull
                                                  java.lang.String conversationId)

        The associated conversation_id

        The associated conversation_id

        Specified by:
        conversationId in interface Message.ConversationIdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • subject

        public Message._FinalStage subject​(java.lang.String subject)

        The subject of the message. Only present if message_type: email.

        Specified by:
        subject in interface Message._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.