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 Object
Builder for UserLogInfo.
  • Field Details

    • accountId

      protected String accountId
    • displayName

      protected String displayName
    • email

      protected String email
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • withAccountId

      public UserLogInfo.Builder withAccountId(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:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withDisplayName

      public UserLogInfo.Builder withDisplayName(String displayName)
      Set value for optional field.
      Parameters:
      displayName - User display name.
      Returns:
      this builder
    • withEmail

      public UserLogInfo.Builder withEmail(String email)
      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

      public UserLogInfo build()
      Builds an instance of UserLogInfo configured with this builder's values
      Returns:
      new instance of UserLogInfo