public static class

MailMessage.Builder

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.mail.MailMessage.Builder

Summary

Public Constructors
Builder()
Public Methods
@Nonnull MailMessage.Builder attachment(String fileName, File file)
@Nonnull MailMessage.Builder attachment(String fileName, String pathToFile)
@Nonnull MailMessage.Builder attachment(String fileName, DataSource source)
@Nonnull MailMessage.Builder bcc(Iterable<String> recipients)
@Nonnull MailMessage.Builder bcc(String... recipients)
@Nonnull MailMessage build()
@Nonnull MailMessage.Builder cc(String... recipients)
@Nonnull MailMessage.Builder cc(Iterable<String> recipients)
@Nonnull MailMessage.Builder from(String value)
@Nonnull MailMessage.Builder header(String key, String value)
@Nonnull MailMessage.Builder subject(String subject)
@Nonnull MailMessage.Builder text(String text)
@Nonnull MailMessage.Builder to(Iterable<String> recipients)
@Nonnull MailMessage.Builder to(String... recipients)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

@Nonnull public MailMessage.Builder attachment (String fileName, File file)

@Nonnull public MailMessage.Builder attachment (String fileName, String pathToFile)

@Nonnull public MailMessage.Builder attachment (String fileName, DataSource source)

@Nonnull public MailMessage.Builder bcc (Iterable<String> recipients)

@Nonnull public MailMessage.Builder bcc (String... recipients)

@Nonnull public MailMessage build ()

@Nonnull public MailMessage.Builder cc (String... recipients)

@Nonnull public MailMessage.Builder cc (Iterable<String> recipients)

@Nonnull public MailMessage.Builder from (String value)

@Nonnull public MailMessage.Builder header (String key, String value)

@Nonnull public MailMessage.Builder subject (String subject)

@Nonnull public MailMessage.Builder text (String text)

@Nonnull public MailMessage.Builder to (Iterable<String> recipients)

@Nonnull public MailMessage.Builder to (String... recipients)