Class TeamFolderMetadata

java.lang.Object
com.dropbox.core.v2.team.TeamFolderMetadata

public class TeamFolderMetadata extends Object
Properties of a team folder.
  • Field Details

    • teamFolderId

      @Nonnull protected final String teamFolderId
    • name

      @Nonnull protected final String name
    • status

      @Nonnull protected final TeamFolderStatus status
    • isTeamSharedDropbox

      protected final boolean isTeamSharedDropbox
    • syncSetting

      @Nonnull protected final SyncSetting syncSetting
    • contentSyncSettings

      @Nonnull protected final List<ContentSyncSetting> contentSyncSettings
    • quotaLimit

      protected final long quotaLimit
  • Constructor Details

    • TeamFolderMetadata

      public TeamFolderMetadata(@Nonnull String teamFolderId, @Nonnull String name, @Nonnull TeamFolderStatus status, boolean isTeamSharedDropbox, @Nonnull SyncSetting syncSetting, @Nonnull List<ContentSyncSetting> contentSyncSettings, long quotaLimit)
      Properties of a team folder.
      Parameters:
      teamFolderId - The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not be null.
      name - The name of the team folder. Must not be null.
      status - The status of the team folder. Must not be null.
      isTeamSharedDropbox - True if this team folder is a shared team root.
      syncSetting - The sync setting applied to this team folder. Must not be null.
      contentSyncSettings - Sync settings applied to contents of this team folder. Must not contain a null item and not be null.
      quotaLimit - The quota limit in bytes for this team folder namespace tree.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • TeamFolderMetadata

      public TeamFolderMetadata(@Nonnull String teamFolderId, @Nonnull String name, @Nonnull TeamFolderStatus status, boolean isTeamSharedDropbox, @Nonnull SyncSetting syncSetting, @Nonnull List<ContentSyncSetting> contentSyncSettings)
      Properties of a team folder.

      The default values for unset fields will be used.

      Parameters:
      teamFolderId - The ID of the team folder. Must match pattern "[-_0-9a-zA-Z:]+" and not be null.
      name - The name of the team folder. Must not be null.
      status - The status of the team folder. Must not be null.
      isTeamSharedDropbox - True if this team folder is a shared team root.
      syncSetting - The sync setting applied to this team folder. Must not be null.
      contentSyncSettings - Sync settings applied to contents of this team folder. Must not contain a null item and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getTeamFolderId

      @Nonnull public String getTeamFolderId()
      The ID of the team folder.
      Returns:
      value for this field, never null.
    • getName

      @Nonnull public String getName()
      The name of the team folder.
      Returns:
      value for this field, never null.
    • getStatus

      @Nonnull public TeamFolderStatus getStatus()
      The status of the team folder.
      Returns:
      value for this field, never null.
    • getIsTeamSharedDropbox

      public boolean getIsTeamSharedDropbox()
      True if this team folder is a shared team root.
      Returns:
      value for this field.
    • getSyncSetting

      @Nonnull public SyncSetting getSyncSetting()
      The sync setting applied to this team folder.
      Returns:
      value for this field, never null.
    • getContentSyncSettings

      @Nonnull public List<ContentSyncSetting> getContentSyncSettings()
      Sync settings applied to contents of this team folder.
      Returns:
      value for this field, never null.
    • getQuotaLimit

      public long getQuotaLimit()
      The quota limit in bytes for this team folder namespace tree.
      Returns:
      value for this field, or null if not present. Defaults to 0L.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object