Package com.dropbox.core.v2.teamlog
Class UserLogInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.UserLogInfo.Builder
-
- Direct Known Subclasses:
NonTeamMemberLogInfo.Builder,TeamMemberLogInfo.Builder,TrustedNonTeamMemberLogInfo.Builder
- Enclosing class:
- UserLogInfo
public static class UserLogInfo.Builder extends java.lang.ObjectBuilder forUserLogInfo.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringaccountIdprotected java.lang.StringdisplayNameprotected java.lang.Stringemail
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserLogInfobuild()Builds an instance ofUserLogInfoconfigured with this builder's valuesUserLogInfo.BuilderwithAccountId(java.lang.String accountId)Set value for optional field.UserLogInfo.BuilderwithDisplayName(java.lang.String displayName)Set value for optional field.UserLogInfo.BuilderwithEmail(java.lang.String email)Set value for optional field.
-
-
-
Method Detail
-
withAccountId
public UserLogInfo.Builder withAccountId(java.lang.String accountId)
Set value for optional field.- Parameters:
accountId- User unique ID. Must have length of at least 40 and have length of at most 40.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
withDisplayName
public UserLogInfo.Builder withDisplayName(java.lang.String displayName)
Set value for optional field.- Parameters:
displayName- User display name.- Returns:
- this builder
-
withEmail
public UserLogInfo.Builder withEmail(java.lang.String email)
Set value for optional field.- Parameters:
email- User email address. Must have length of at most 255.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
build
public UserLogInfo build()
Builds an instance ofUserLogInfoconfigured with this builder's values- Returns:
- new instance of
UserLogInfo
-
-