com.silanis.esl.sdk.builder
Class SenderInfoBuilder

java.lang.Object
  extended by com.silanis.esl.sdk.builder.SenderInfoBuilder

public class SenderInfoBuilder
extends Object

The SenderInfoBuilder class is a convenient class used to create and customize a sender.


Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newSenderInfo

public static SenderInfoBuilder newSenderInfo(String email)
Defines a new sender and uniquely identify him using his email address.

Parameters:
email - the sender's email address uniquely identifying him. @size(min="6", max="255", valid email address)
Returns:
This

withName

public SenderInfoBuilder withName(String firstName,
                                  String lastName)
Set the Sender's first name and last name.

Parameters:
firstName - sender's first name @size(min="1", max="64")
lastName - sender's last name @size(min="1", max="64")
Returns:
This

withCompany

public SenderInfoBuilder withCompany(String company)
Set the Sender's company.

Parameters:
company - name of the company @size(max="255")
Returns:
This

withTitle

public SenderInfoBuilder withTitle(String title)
Set the sender's title. E.g.: M. Mr. Ms. etc...

Parameters:
title - the sender's title. @size(min="0", max="64")
Returns:
This

build

public SenderInfo build()
Builds the actual SenderInfo with the specified values

Returns:
the SenderInfo object


Copyright 2014, Silanis Technology, Inc. All rights reserved.