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.Object
Builder forUserLogInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
accountId
protected java.lang.String
displayName
protected java.lang.String
email
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserLogInfo
build()
Builds an instance ofUserLogInfo
configured with this builder's valuesUserLogInfo.Builder
withAccountId(java.lang.String accountId)
Set value for optional field.UserLogInfo.Builder
withDisplayName(java.lang.String displayName)
Set value for optional field.UserLogInfo.Builder
withEmail(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 ofUserLogInfo
configured with this builder's values- Returns:
- new instance of
UserLogInfo
-
-