Class TeamGetInfoResult

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

public class TeamGetInfoResult extends Object
  • Field Details

    • name

      @Nonnull protected final String name
    • teamId

      @Nonnull protected final String teamId
    • numLicensedUsers

      protected final long numLicensedUsers
    • numProvisionedUsers

      protected final long numProvisionedUsers
    • numUsedLicenses

      protected final long numUsedLicenses
    • policies

      @Nonnull protected final TeamMemberPolicies policies
  • Constructor Details

    • TeamGetInfoResult

      public TeamGetInfoResult(@Nonnull String name, @Nonnull String teamId, long numLicensedUsers, long numProvisionedUsers, @Nonnull TeamMemberPolicies policies, long numUsedLicenses)
      Parameters:
      name - The name of the team. Must not be null.
      teamId - The ID of the team. Must not be null.
      numLicensedUsers - The number of licenses available to the team.
      numProvisionedUsers - The number of accounts that have been invited or are already active members of the team.
      policies - Must not be null.
      numUsedLicenses - The number of licenses used on the team.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • TeamGetInfoResult

      public TeamGetInfoResult(@Nonnull String name, @Nonnull String teamId, long numLicensedUsers, long numProvisionedUsers, @Nonnull TeamMemberPolicies policies)
      None

      The default values for unset fields will be used.

      Parameters:
      name - The name of the team. Must not be null.
      teamId - The ID of the team. Must not be null.
      numLicensedUsers - The number of licenses available to the team.
      numProvisionedUsers - The number of accounts that have been invited or are already active members of the team.
      policies - Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getName

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

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

      public long getNumLicensedUsers()
      The number of licenses available to the team.
      Returns:
      value for this field.
    • getNumProvisionedUsers

      public long getNumProvisionedUsers()
      The number of accounts that have been invited or are already active members of the team.
      Returns:
      value for this field.
    • getPolicies

      @Nonnull public TeamMemberPolicies getPolicies()
      Returns:
      value for this field, never null.
    • getNumUsedLicenses

      public long getNumUsedLicenses()
      The number of licenses used on the team.
      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