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 protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfobuild()Builds an instance ofUserInfoconfigured with this builder's valuesUserInfo.BuilderwithEmail(java.lang.String email)Set value for optional field.UserInfo.BuilderwithId(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.
-
-