Package com.dropbox.core.v2.clouddocs
Class UserInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.clouddocs.UserInfo.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfo
build()
Builds an instance ofUserInfo
configured with this builder's valuesUserInfo.Builder
withEmail(java.lang.String email)
Set value for optional field.UserInfo.Builder
withId(java.lang.String id)
Set value for optional field.
-
-
-
Method Detail
-
withId
public UserInfo.Builder withId(java.lang.String id)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
id
- ID associated with the user. Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withEmail
public UserInfo.Builder withEmail(java.lang.String email)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
email
- Email associated with the user. Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-