Package com.dropbox.core.v2.teamlog
Class TrustedNonTeamMemberLogInfo.Builder
- java.lang.Object
-
- com.dropbox.core.v2.teamlog.UserLogInfo.Builder
-
- com.dropbox.core.v2.teamlog.TrustedNonTeamMemberLogInfo.Builder
-
- Enclosing class:
- TrustedNonTeamMemberLogInfo
public static class TrustedNonTeamMemberLogInfo.Builder extends UserLogInfo.Builder
Builder forTrustedNonTeamMemberLogInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description protected TeamLogInfo
team
protected TrustedNonTeamMemberType
trustedNonTeamMemberType
-
Fields inherited from class com.dropbox.core.v2.teamlog.UserLogInfo.Builder
accountId, displayName, email
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(TrustedNonTeamMemberType trustedNonTeamMemberType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrustedNonTeamMemberLogInfo
build()
Builds an instance ofTrustedNonTeamMemberLogInfo
configured with this builder's valuesTrustedNonTeamMemberLogInfo.Builder
withAccountId(java.lang.String accountId)
Set value for optional field.TrustedNonTeamMemberLogInfo.Builder
withDisplayName(java.lang.String displayName)
Set value for optional field.TrustedNonTeamMemberLogInfo.Builder
withEmail(java.lang.String email)
Set value for optional field.TrustedNonTeamMemberLogInfo.Builder
withTeam(TeamLogInfo team)
Set value for optional field.
-
-
-
Field Detail
-
trustedNonTeamMemberType
protected final TrustedNonTeamMemberType trustedNonTeamMemberType
-
team
protected TeamLogInfo team
-
-
Constructor Detail
-
Builder
protected Builder(TrustedNonTeamMemberType trustedNonTeamMemberType)
-
-
Method Detail
-
withTeam
public TrustedNonTeamMemberLogInfo.Builder withTeam(TeamLogInfo team)
Set value for optional field.- Parameters:
team
- Details about this user's trusted team.- Returns:
- this builder
-
withAccountId
public TrustedNonTeamMemberLogInfo.Builder withAccountId(java.lang.String accountId)
Set value for optional field.- Overrides:
withAccountId
in classUserLogInfo.Builder
- 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 TrustedNonTeamMemberLogInfo.Builder withDisplayName(java.lang.String displayName)
Set value for optional field.- Overrides:
withDisplayName
in classUserLogInfo.Builder
- Parameters:
displayName
- User display name.- Returns:
- this builder
-
withEmail
public TrustedNonTeamMemberLogInfo.Builder withEmail(java.lang.String email)
Set value for optional field.- Overrides:
withEmail
in classUserLogInfo.Builder
- 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 TrustedNonTeamMemberLogInfo build()
Builds an instance ofTrustedNonTeamMemberLogInfo
configured with this builder's values- Overrides:
build
in classUserLogInfo.Builder
- Returns:
- new instance of
TrustedNonTeamMemberLogInfo
-
-