Class FeatureValue
Feature. You may get different
value according to your Dropbox Business plan.
This class is an open tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isAbc()
methods will return true. You can use tag() to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER value
will be used.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FeatureValueCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis instance must be tagged asFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES.This instance must be tagged asFeatureValue.Tag.HAS_TEAM_FILE_EVENTS.This instance must be tagged asFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC.This instance must be tagged asFeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX.This instance must be tagged asFeatureValue.Tag.UPLOAD_API_RATE_LIMIT.static FeatureValueReturns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES.inthashCode()static FeatureValueReturns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.HAS_TEAM_FILE_EVENTS.static FeatureValueReturns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC.static FeatureValueReturns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX.booleanReturnstrueif this instance has the tagFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES,falseotherwise.booleanbooleanReturnstrueif this instance has the tagFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC,falseotherwise.booleanReturnstrueif this instance has the tagFeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX,falseotherwise.booleanisOther()booleantag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.static FeatureValueReturns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.UPLOAD_API_RATE_LIMIT.
-
Field Details
-
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
Method Details
-
tag
Returns the tag for this instance.This class is a tagged union. Tagged unions instances are always associated to a specific tag. This means only one of the
isXyz()methods will returntrue. Callers are recommended to use the tag value in aswitchstatement to properly handle the different values for thisFeatureValue.If a tag returned by the server is unrecognized by this SDK, the
FeatureValue.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isUploadApiRateLimit
public boolean isUploadApiRateLimit()- Returns:
trueif this instance is tagged asFeatureValue.Tag.UPLOAD_API_RATE_LIMIT,falseotherwise.
-
uploadApiRateLimit
Returns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.UPLOAD_API_RATE_LIMIT.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
FeatureValuewith its tag set toFeatureValue.Tag.UPLOAD_API_RATE_LIMIT. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getUploadApiRateLimitValue
This instance must be tagged asFeatureValue.Tag.UPLOAD_API_RATE_LIMIT.- Returns:
- The
UploadApiRateLimitValuevalue associated with this instance ifisUploadApiRateLimit()istrue. - Throws:
IllegalStateException- IfisUploadApiRateLimit()isfalse.
-
isHasTeamFileEvents
public boolean isHasTeamFileEvents()- Returns:
trueif this instance is tagged asFeatureValue.Tag.HAS_TEAM_FILE_EVENTS,falseotherwise.
-
hasTeamFileEvents
Returns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.HAS_TEAM_FILE_EVENTS.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
FeatureValuewith its tag set toFeatureValue.Tag.HAS_TEAM_FILE_EVENTS. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getHasTeamFileEventsValue
This instance must be tagged asFeatureValue.Tag.HAS_TEAM_FILE_EVENTS.- Returns:
- The
HasTeamFileEventsValuevalue associated with this instance ifisHasTeamFileEvents()istrue. - Throws:
IllegalStateException- IfisHasTeamFileEvents()isfalse.
-
isHasTeamSelectiveSync
public boolean isHasTeamSelectiveSync()Returnstrueif this instance has the tagFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC,falseotherwise.- Returns:
trueif this instance is tagged asFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC,falseotherwise.
-
hasTeamSelectiveSync
Returns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
FeatureValuewith its tag set toFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getHasTeamSelectiveSyncValue
This instance must be tagged asFeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC.- Returns:
- The
HasTeamSelectiveSyncValuevalue associated with this instance ifisHasTeamSelectiveSync()istrue. - Throws:
IllegalStateException- IfisHasTeamSelectiveSync()isfalse.
-
isHasDistinctMemberHomes
public boolean isHasDistinctMemberHomes()Returnstrueif this instance has the tagFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES,falseotherwise.- Returns:
trueif this instance is tagged asFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES,falseotherwise.
-
hasDistinctMemberHomes
Returns an instance ofFeatureValuethat has its tag set toFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
FeatureValuewith its tag set toFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getHasDistinctMemberHomesValue
This instance must be tagged asFeatureValue.Tag.HAS_DISTINCT_MEMBER_HOMES.- Returns:
- The
HasDistinctMemberHomesValuevalue associated with this instance ifisHasDistinctMemberHomes()istrue. - Throws:
IllegalStateException- IfisHasDistinctMemberHomes()isfalse.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asFeatureValue.Tag.OTHER,falseotherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-