Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
email |
protected java.lang.String |
id |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
UserInfo |
build()
Builds an instance of
UserInfo configured with this builder's
values |
UserInfo.Builder |
withEmail(java.lang.String email)
Set value for optional field.
|
UserInfo.Builder |
withId(java.lang.String id)
Set value for optional field.
|
public UserInfo.Builder withId(java.lang.String id)
If left unset or set to null
, defaults to "\"\""
.
id
- ID associated with the user. Must not be null
.
Defaults to "\"\""
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserInfo.Builder withEmail(java.lang.String email)
If left unset or set to null
, defaults to "\"\""
.
email
- Email associated with the user. Must not be null
. Defaults to "\"\""
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.