Class NamespaceMetadata.Builder

java.lang.Object
com.dropbox.core.v2.team.NamespaceMetadata.Builder
Enclosing class:
NamespaceMetadata

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

    • name

      protected final String name
    • namespaceId

      protected final String namespaceId
    • namespaceType

      protected final NamespaceType namespaceType
    • teamMemberId

      protected String teamMemberId
    • quotaLimit

      protected long quotaLimit
  • Constructor Details

  • Method Details

    • withTeamMemberId

      public NamespaceMetadata.Builder withTeamMemberId(String teamMemberId)
      Set value for optional field.
      Parameters:
      teamMemberId - If this is a team member or app folder, the ID of the owning team member. Otherwise, this field is not present.
      Returns:
      this builder
    • withQuotaLimit

      public NamespaceMetadata.Builder withQuotaLimit(Long quotaLimit)
      Set value for optional field.

      If left unset or set to null, defaults to 0L.

      Parameters:
      quotaLimit - The quota limit in bytes for this namespace tree. Only applicable to team folders. Defaults to 0L when set to null.
      Returns:
      this builder
    • build

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