MessageBuilder

public final class MessageBuilder extends IndexableBuilder<MessageBuilder>

Builder to construct an Indexable for a message.

For reference, see: //schema.org/Message.

Public Method Summary

MessageBuilder
setDateRead(Date dateRead)
Sets the date on which the message was read.
MessageBuilder
setDateReceived(Date dateReceived)
Sets the date on which the message was received.
MessageBuilder
setDateSent(Date dateSent)
Sets the date on which the message was sent.
MessageBuilder
setIsPartOf(ConversationBuilder... conversation)
Sets the converstation to which this message belongs.
MessageBuilder
setMessageAttachment(DigitalDocumentBuilder... attachments)
Sets the attachments of the message.
MessageBuilder
setRecipient(PersonBuilder... recipients)
Sets the recipients of the message.
MessageBuilder
setSender(PersonBuilder sender)
Sets the sender of the message.
MessageBuilder
setText(String text)
Sets the textual content of the message.

Inherited Method Summary

Public Methods

public MessageBuilder setDateRead (Date dateRead)

Sets the date on which the message was read.

Parameters
dateRead The date on which the message was read.

public MessageBuilder setDateReceived (Date dateReceived)

Sets the date on which the message was received.

Parameters
dateReceived The date on which the message was received.

public MessageBuilder setDateSent (Date dateSent)

Sets the date on which the message was sent.

Parameters
dateSent The date on which the message was sent.

public MessageBuilder setIsPartOf (ConversationBuilder... conversation)

Sets the converstation to which this message belongs.

Parameters
conversation The conversation to which this message belongs.

public MessageBuilder setMessageAttachment (DigitalDocumentBuilder... attachments)

Sets the attachments of the message.

Parameters
attachments The attachments of the message.

public MessageBuilder setRecipient (PersonBuilder... recipients)

Sets the recipients of the message.

Parameters
recipients The recipients of the message.

public MessageBuilder setSender (PersonBuilder sender)

Sets the sender of the message.

Parameters
sender The sender of the message.

public MessageBuilder setText (String text)

Sets the textual content of the message.

Parameters
text The textual content of the document.

Send feedback about...

Need help? Visit our support page.