public static final class Registration.Builder
extends java.lang.Object
A builder to build a registration.
| Modifier and Type | Method and Description |
|---|---|
Registration |
build()
Builds the registration.
|
Registration.Builder |
city(java.lang.String city)
Sets the city.
|
Registration.Builder |
date(java.lang.String date)
Sets the date, e.g. birth date.
|
Registration.Builder |
email(java.lang.String email)
Sets the email.
|
Registration.Builder |
familyName(java.lang.String familyName)
Sets the family name.
|
Registration.Builder |
givenName(java.lang.String givenName)
Sets the given name.
|
Registration.Builder |
instructions(java.lang.String instructions)
Sets the instructions.
|
Registration.Builder |
name(java.lang.String name)
Sets the name.
|
Registration.Builder |
nickname(java.lang.String nickname)
Sets the nickname.
|
Registration.Builder |
password(java.lang.String password)
Sets the password.
|
Registration.Builder |
phone(java.lang.String phone)
Sets the phone.
|
Registration.Builder |
postalCode(java.lang.String postalCode)
Sets the postal code.
|
Registration.Builder |
region(java.lang.String region)
Sets the region, e.g. state.
|
Registration.Builder |
registered(boolean registered)
Marks the registration as registered.
|
Registration.Builder |
registrationForm(DataForm dataForm)
Sets the extended registration form.
|
Registration.Builder |
street(java.lang.String street)
The street.
|
Registration.Builder |
url(java.net.URL url)
Sets the URL.
|
Registration.Builder |
username(java.lang.String username)
Sets the username.
|
Registration.Builder |
webRegistration(java.net.URI uri)
Sets the web registration URI.
|
public Registration.Builder instructions(java.lang.String instructions)
Sets the instructions.
instructions - The instructions.public Registration.Builder username(java.lang.String username)
Sets the username.
username - The username.public Registration.Builder password(java.lang.String password)
Sets the password.
password - The password.public Registration.Builder nickname(java.lang.String nickname)
Sets the nickname.
nickname - The nickname.public Registration.Builder name(java.lang.String name)
Sets the name.
name - The name.public Registration.Builder givenName(java.lang.String givenName)
Sets the given name.
givenName - The given name.public Registration.Builder familyName(java.lang.String familyName)
Sets the family name.
familyName - The family name.public Registration.Builder email(java.lang.String email)
Sets the email.
email - The email address.public Registration.Builder street(java.lang.String street)
The street.
street - The street.public Registration.Builder city(java.lang.String city)
Sets the city.
city - The city.public Registration.Builder region(java.lang.String region)
Sets the region, e.g. state.
region - The region.public Registration.Builder postalCode(java.lang.String postalCode)
Sets the postal code.
postalCode - The postal code.public Registration.Builder phone(java.lang.String phone)
Sets the phone.
phone - The phone.public Registration.Builder url(java.net.URL url)
Sets the URL.
url - The URL.public Registration.Builder date(java.lang.String date)
Sets the date, e.g. birth date.
date - The date.public Registration.Builder registrationForm(DataForm dataForm)
Sets the extended registration form.
dataForm - The data form.public Registration.Builder webRegistration(java.net.URI uri)
Sets the web registration URI.
uri - The uri.public Registration.Builder registered(boolean registered)
Marks the registration as registered.
registered - True, if registered.public Registration build()
Builds the registration.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.