Class FileLockMetadata.Builder

java.lang.Object
com.dropbox.core.v2.files.FileLockMetadata.Builder
Enclosing class:
FileLockMetadata

public static class FileLockMetadata.Builder extends Object
Builder for FileLockMetadata.
  • Field Details

    • isLockholder

      protected Boolean isLockholder
    • lockholderName

      protected String lockholderName
    • lockholderAccountId

      protected String lockholderAccountId
    • created

      protected Date created
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • withIsLockholder

      public FileLockMetadata.Builder withIsLockholder(Boolean isLockholder)
      Set value for optional field.
      Parameters:
      isLockholder - True if caller holds the file lock.
      Returns:
      this builder
    • withLockholderName

      public FileLockMetadata.Builder withLockholderName(String lockholderName)
      Set value for optional field.
      Parameters:
      lockholderName - The display name of the lock holder.
      Returns:
      this builder
    • withLockholderAccountId

      public FileLockMetadata.Builder withLockholderAccountId(String lockholderAccountId)
      Set value for optional field.
      Parameters:
      lockholderAccountId - The account ID of the lock holder if known. 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.
    • withCreated

      public FileLockMetadata.Builder withCreated(Date created)
      Set value for optional field.
      Parameters:
      created - The timestamp of the lock was created.
      Returns:
      this builder
    • build

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