Package com.dropbox.core.v2.teamlog
Class TeamMemberLogInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.UserLogInfo.Builder
-
- com.dropbox.core.v2.teamlog.TeamMemberLogInfo.Builder
-
- Enclosing class:
- TeamMemberLogInfo
public static class TeamMemberLogInfo.Builder extends UserLogInfo.Builder
Builder forTeamMemberLogInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
memberExternalId
protected TeamLogInfo
team
protected java.lang.String
teamMemberId
-
Fields inherited from class com.dropbox.core.v2.teamlog.UserLogInfo.Builder
accountId, displayName, email
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TeamMemberLogInfo
build()
Builds an instance ofTeamMemberLogInfo
configured with this builder's valuesTeamMemberLogInfo.Builder
withAccountId(java.lang.String accountId)
Set value for optional field.TeamMemberLogInfo.Builder
withDisplayName(java.lang.String displayName)
Set value for optional field.TeamMemberLogInfo.Builder
withEmail(java.lang.String email)
Set value for optional field.TeamMemberLogInfo.Builder
withMemberExternalId(java.lang.String memberExternalId)
Set value for optional field.TeamMemberLogInfo.Builder
withTeam(TeamLogInfo team)
Set value for optional field.TeamMemberLogInfo.Builder
withTeamMemberId(java.lang.String teamMemberId)
Set value for optional field.
-
-
-
Field Detail
-
teamMemberId
protected java.lang.String teamMemberId
-
memberExternalId
protected java.lang.String memberExternalId
-
team
protected TeamLogInfo team
-
-
Method Detail
-
withTeamMemberId
public TeamMemberLogInfo.Builder withTeamMemberId(java.lang.String teamMemberId)
Set value for optional field.- Parameters:
teamMemberId
- Team member ID. Might be missing due to historical data gap.- Returns:
- this builder
-
withMemberExternalId
public TeamMemberLogInfo.Builder withMemberExternalId(java.lang.String memberExternalId)
Set value for optional field.- Parameters:
memberExternalId
- Team member external ID. Must have length of at most 64.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withTeam
public TeamMemberLogInfo.Builder withTeam(TeamLogInfo team)
Set value for optional field.- Parameters:
team
- Details about this user’s team for enterprise event.- Returns:
- this builder
-
withAccountId
public TeamMemberLogInfo.Builder withAccountId(java.lang.String accountId)
Set value for optional field.- Overrides:
withAccountId
in classUserLogInfo.Builder
- Parameters:
accountId
- User unique ID. Might be missing due to historical data gap. 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 TeamMemberLogInfo.Builder withDisplayName(java.lang.String displayName)
Set value for optional field.- Overrides:
withDisplayName
in classUserLogInfo.Builder
- Parameters:
displayName
- User display name. Might be missing due to historical data gap.- Returns:
- this builder
-
withEmail
public TeamMemberLogInfo.Builder withEmail(java.lang.String email)
Set value for optional field.- Overrides:
withEmail
in classUserLogInfo.Builder
- Parameters:
email
- User email address. Might be missing due to historical data gap. Must have length of at most 255.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public TeamMemberLogInfo build()
Builds an instance ofTeamMemberLogInfo
configured with this builder's values- Overrides:
build
in classUserLogInfo.Builder
- Returns:
- new instance of
TeamMemberLogInfo
-
-