public final class FeatureValue
extends java.lang.Object
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
FeatureValue.Tag
Discriminating tag type for
FeatureValue. |
| Modifier and Type | Field and Description |
|---|---|
static FeatureValue |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
public static final FeatureValue OTHER
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.
public FeatureValue.Tag tag()
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 return true. Callers are recommended to use the tag
value in a switch statement to properly handle the different
values for this FeatureValue.
If a tag returned by the server is unrecognized by this SDK, the
FeatureValue.Tag.OTHER value will be used.
public boolean isUploadApiRateLimit()
true if this instance is tagged as FeatureValue.Tag.UPLOAD_API_RATE_LIMIT, false otherwise.public static FeatureValue uploadApiRateLimit(UploadApiRateLimitValue value)
FeatureValue that has its tag set to
FeatureValue.Tag.UPLOAD_API_RATE_LIMIT.
None
value - value to assign to this instance.FeatureValue with its tag set to FeatureValue.Tag.UPLOAD_API_RATE_LIMIT.java.lang.IllegalArgumentException - if value is null.public UploadApiRateLimitValue getUploadApiRateLimitValue()
FeatureValue.Tag.UPLOAD_API_RATE_LIMIT.UploadApiRateLimitValue value associated with this
instance if isUploadApiRateLimit() is true.java.lang.IllegalStateException - If isUploadApiRateLimit() is false.public boolean isHasTeamSharedDropbox()
true if this instance has the tag FeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX, false otherwise.true if this instance is tagged as FeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX, false otherwise.public static FeatureValue hasTeamSharedDropbox(HasTeamSharedDropboxValue value)
FeatureValue that has its tag set to
FeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX.
None
value - value to assign to this instance.FeatureValue with its tag set to FeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX.java.lang.IllegalArgumentException - if value is null.public HasTeamSharedDropboxValue getHasTeamSharedDropboxValue()
FeatureValue.Tag.HAS_TEAM_SHARED_DROPBOX.HasTeamSharedDropboxValue value associated with this
instance if isHasTeamSharedDropbox() is true.java.lang.IllegalStateException - If isHasTeamSharedDropbox() is
false.public boolean isHasTeamFileEvents()
true if this instance is tagged as FeatureValue.Tag.HAS_TEAM_FILE_EVENTS, false otherwise.public static FeatureValue hasTeamFileEvents(HasTeamFileEventsValue value)
FeatureValue that has its tag set to
FeatureValue.Tag.HAS_TEAM_FILE_EVENTS.
None
value - value to assign to this instance.FeatureValue with its tag set to FeatureValue.Tag.HAS_TEAM_FILE_EVENTS.java.lang.IllegalArgumentException - if value is null.public HasTeamFileEventsValue getHasTeamFileEventsValue()
FeatureValue.Tag.HAS_TEAM_FILE_EVENTS.HasTeamFileEventsValue value associated with this
instance if isHasTeamFileEvents() is true.java.lang.IllegalStateException - If isHasTeamFileEvents() is false.public boolean isHasTeamSelectiveSync()
true if this instance has the tag FeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC, false otherwise.true if this instance is tagged as FeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC, false otherwise.public static FeatureValue hasTeamSelectiveSync(HasTeamSelectiveSyncValue value)
FeatureValue that has its tag set to
FeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC.
None
value - value to assign to this instance.FeatureValue with its tag set to FeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC.java.lang.IllegalArgumentException - if value is null.public HasTeamSelectiveSyncValue getHasTeamSelectiveSyncValue()
FeatureValue.Tag.HAS_TEAM_SELECTIVE_SYNC.HasTeamSelectiveSyncValue value associated with this
instance if isHasTeamSelectiveSync() is true.java.lang.IllegalStateException - If isHasTeamSelectiveSync() is
false.public boolean isOther()
true if this instance is tagged as FeatureValue.Tag.OTHER,
false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.