Package com.dropbox.core.v2.team
Class TeamGetInfoResult
- java.lang.Object
-
- com.dropbox.core.v2.team.TeamGetInfoResult
-
public class TeamGetInfoResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
protected long
numLicensedUsers
protected long
numProvisionedUsers
protected long
numUsedLicenses
protected TeamMemberPolicies
policies
protected java.lang.String
teamId
-
Constructor Summary
Constructors Constructor Description TeamGetInfoResult(java.lang.String name, java.lang.String teamId, long numLicensedUsers, long numProvisionedUsers, TeamMemberPolicies policies)
NoneTeamGetInfoResult(java.lang.String name, java.lang.String teamId, long numLicensedUsers, long numProvisionedUsers, TeamMemberPolicies policies, long numUsedLicenses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
The name of the team.long
getNumLicensedUsers()
The number of licenses available to the team.long
getNumProvisionedUsers()
The number of accounts that have been invited or are already active members of the team.long
getNumUsedLicenses()
The number of licenses used on the team.TeamMemberPolicies
getPolicies()
java.lang.String
getTeamId()
The ID of the team.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
name
@Nonnull protected final java.lang.String name
-
teamId
@Nonnull protected final java.lang.String teamId
-
numLicensedUsers
protected final long numLicensedUsers
-
numProvisionedUsers
protected final long numProvisionedUsers
-
numUsedLicenses
protected final long numUsedLicenses
-
policies
@Nonnull protected final TeamMemberPolicies policies
-
-
Constructor Detail
-
TeamGetInfoResult
public TeamGetInfoResult(@Nonnull java.lang.String name, @Nonnull java.lang.String teamId, long numLicensedUsers, long numProvisionedUsers, @Nonnull TeamMemberPolicies policies, long numUsedLicenses)
- Parameters:
name
- The name of the team. Must not benull
.teamId
- The ID of the team. Must not benull
.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 benull
.numUsedLicenses
- The number of licenses used on the team.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
TeamGetInfoResult
public TeamGetInfoResult(@Nonnull java.lang.String name, @Nonnull java.lang.String teamId, long numLicensedUsers, long numProvisionedUsers, @Nonnull TeamMemberPolicies policies)
NoneThe default values for unset fields will be used.
- Parameters:
name
- The name of the team. Must not benull
.teamId
- The ID of the team. Must not benull
.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 benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getName
@Nonnull public java.lang.String getName()
The name of the team.- Returns:
- value for this field, never
null
.
-
getTeamId
@Nonnull public java.lang.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-