public static class Email.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Constructor to initialize an empty Email builder.
|
Builder(Email email)
Constructor to initialize Email builder with pre-populated
Email values. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
build() |
void |
setAddress(java.lang.String address)
Set the email address.
|
void |
setIndex(int index)
Set the index for the email.
|
void |
setPreference(int preference)
Set the preference for the email.
|
void |
setType(java.lang.String type)
Set email type.
|
public void setType(java.lang.String type)
type
- email typepublic void setPreference(int preference)
preference
- email preferencepublic void setIndex(int index)
index
- email indexpublic void setAddress(java.lang.String address)
address
- email addresspublic java.lang.Object build()