Builder

public final class Builder

Builder for CreateDraftRequest.

Constructors

Functions

Link copied to clipboard

Sets the files to attach to the message.

Link copied to clipboard

Sets the bcc recipients.

Link copied to clipboard

Sets the full HTML message body. Messages with only plain-text representations are up-converted to HTML.

Link copied to clipboard
public final CreateDraftRequest build()

Builds a SendMessageRequest instance.

Link copied to clipboard

Sets the cc recipients.

Link copied to clipboard

Sets the reply-to recipients.

Link copied to clipboard
public final CreateDraftRequest.Builder replyToMessageId(String replyToMessageId)

Sets the ID of the message that you are replying to.

Link copied to clipboard

Sets the unix timestamp to send the message at.

Link copied to clipboard
public final CreateDraftRequest.Builder snippet(String snippet)

Sets the snippet of the message body. This is the first 100 characters of the message body, with any HTML tags removed.

Link copied to clipboard

Sets whether or not the message has been starred by the user.

Link copied to clipboard
public final CreateDraftRequest.Builder subject(String subject)

Sets the message subject.

Link copied to clipboard
public final CreateDraftRequest.Builder threadId(String threadId)

Sets the reference to the parent thread object. If this is a new draft, the thread will be empty.

Link copied to clipboard

Sets the recipients.

Link copied to clipboard

Sets the options for tracking opens, links, and thread replies.

Link copied to clipboard

Sets whether or not the message has been read by the user.