public abstract static class OwnerEntity.Builder
extends java.lang.Object
OwnerEntity.Builder abstract class allows the user to create and return a
OwnerEntity object. For example, | Modifier and Type | Method and Description |
|---|---|
abstract OwnerEntity |
build()
Builds the
OwnerEntity object that is used to wrap various properties related
to a driver. |
abstract OwnerEntity.Builder |
email(java.lang.String email)
|
abstract OwnerEntity.Builder |
name(java.lang.String name)
|
abstract OwnerEntity.Builder |
partner2Id(java.lang.String partner2Id)
Returns the
OwnerEntity.Builder for the OwnerEntity.partner2Id() component of the
OwnerEntity object. |
abstract OwnerEntity.Builder |
phone(java.lang.String phone)
|
abstract OwnerEntity.Builder |
role(java.lang.String role)
|
abstract OwnerEntity.Builder |
uid(java.lang.String uid)
|
public abstract OwnerEntity.Builder email(java.lang.String email)
email - the email address of the driverOwnerEntity.Builder for the OwnerEntity.email() component of the
OwnerEntity object.public abstract OwnerEntity.Builder name(java.lang.String name)
name - the name of the driverOwnerEntity.Builder for the OwnerEntity.name() component of the
OwnerEntity object.public abstract OwnerEntity.Builder partner2Id(@Nullable java.lang.String partner2Id)
OwnerEntity.Builder for the OwnerEntity.partner2Id() component of the
OwnerEntity object.partner2Id - the identification number of the secondary driver. May be nullOwnerEntity.Builder for the OwnerEntity.partner2Id() component of the
OwnerEntity object.public abstract OwnerEntity.Builder phone(java.lang.String phone)
phone - the mobile phone number of the driver, including country codeOwnerEntity.Builder for the OwnerEntity.phone() component of the
OwnerEntity object.public abstract OwnerEntity.Builder role(java.lang.String role)
role - the user role of the driverOwnerEntity.Builder for the OwnerEntity.role() component of the
OwnerEntity object.public abstract OwnerEntity.Builder uid(@Nullable java.lang.String uid)
uid - the Usher ID of the driver. May be nullOwnerEntity.Builder for the OwnerEntity.uid() component of the
OwnerEntity object.public abstract OwnerEntity build()
OwnerEntity object that is used to wrap various properties related
to a driver.OwnerEntity object that is used to wrap various properties related
to a driver.