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
Builder for
UserLogInfo.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofUserLogInfoconfigured with this builder's valueswithAccountId(String accountId) Set value for optional field.withDisplayName(String displayName) Set value for optional field.Set value for optional field.
-
Field Details
-
accountId
-
displayName
-
email
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withAccountId
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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withDisplayName
Set value for optional field.- Parameters:
displayName- User display name.- Returns:
- this builder
-
withEmail
Set value for optional field.- Parameters:
email- User email address. Must have length of at most 255.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofUserLogInfoconfigured with this builder's values- Returns:
- new instance of
UserLogInfo
-