public class SenderInfoBuilder extends Object
The SenderInfoBuilder class is a convenient class used to create and customize a sender.
Modifier and Type | Method and Description |
---|---|
SenderInfo |
build()
Builds the actual SenderInfo with the specified values
|
static SenderInfoBuilder |
newSenderInfo(String email)
Defines a new sender and uniquely identify him using his email address.
|
SenderInfoBuilder |
withCompany(String company)
Set the Sender's company.
|
SenderInfoBuilder |
withName(String firstName,
String lastName)
Set the Sender's first name and last name.
|
SenderInfoBuilder |
withTitle(String title)
Set the sender's title.
|
public static SenderInfoBuilder newSenderInfo(String email)
email
- the sender's email address uniquely identifying him. @size(min="6", max="255", valid email address)public SenderInfoBuilder withName(String firstName, String lastName)
firstName
- sender's first name @size(min="1", max="64")lastName
- sender's last name @size(min="1", max="64")public SenderInfoBuilder withCompany(String company)
company
- name of the company @size(max="255")public SenderInfoBuilder withTitle(String title)
title
- the sender's title. @size(min="0", max="64")public SenderInfo build()
Copyright 2014, Silanis Technology, Inc. All rights reserved.