public final class TeamFolderUpdateSyncSettingsError
extends java.lang.Object
isAbc()
methods will
return true
. You can use tag()
to determine the tag
associated with this instance.Modifier and Type | Class and Description |
---|---|
static class |
TeamFolderUpdateSyncSettingsError.Tag
Discriminating tag type for
TeamFolderUpdateSyncSettingsError . |
Modifier and Type | Field and Description |
---|---|
static TeamFolderUpdateSyncSettingsError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
public static final TeamFolderUpdateSyncSettingsError 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 TeamFolderUpdateSyncSettingsError.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 TeamFolderUpdateSyncSettingsError
.
public boolean isAccessError()
true
if this instance has the tag TeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR
, false
otherwise.true
if this instance is tagged as TeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR
, false
otherwise.public static TeamFolderUpdateSyncSettingsError accessError(TeamFolderAccessError value)
TeamFolderUpdateSyncSettingsError
that has
its tag set to TeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR
.
None
value
- value to assign to this instance.TeamFolderUpdateSyncSettingsError
with its
tag set to TeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderAccessError getAccessErrorValue()
TeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR
.TeamFolderAccessError
value associated with this
instance if isAccessError()
is true
.java.lang.IllegalStateException
- If isAccessError()
is false
.public boolean isStatusError()
true
if this instance has the tag TeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR
, false
otherwise.true
if this instance is tagged as TeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR
, false
otherwise.public static TeamFolderUpdateSyncSettingsError statusError(TeamFolderInvalidStatusError value)
TeamFolderUpdateSyncSettingsError
that has
its tag set to TeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR
.
None
value
- value to assign to this instance.TeamFolderUpdateSyncSettingsError
with its
tag set to TeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderInvalidStatusError getStatusErrorValue()
TeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR
.TeamFolderInvalidStatusError
value associated with
this instance if isStatusError()
is true
.java.lang.IllegalStateException
- If isStatusError()
is false
.public boolean isTeamSharedDropboxError()
true
if this instance has the tag TeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR
, false
otherwise.true
if this instance is tagged as TeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR
, false
otherwise.public static TeamFolderUpdateSyncSettingsError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value)
TeamFolderUpdateSyncSettingsError
that has
its tag set to TeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR
.
None
value
- value to assign to this instance.TeamFolderUpdateSyncSettingsError
with its
tag set to TeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue()
TeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR
.TeamFolderTeamSharedDropboxError
value associated
with this instance if isTeamSharedDropboxError()
is true
.java.lang.IllegalStateException
- If isTeamSharedDropboxError()
is
false
.public boolean isOther()
true
if this instance has the tag TeamFolderUpdateSyncSettingsError.Tag.OTHER
,
false
otherwise.true
if this instance is tagged as TeamFolderUpdateSyncSettingsError.Tag.OTHER
,
false
otherwise.public boolean isSyncSettingsError()
true
if this instance has the tag TeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR
, false
otherwise.true
if this instance is tagged as TeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR
, false
otherwise.public static TeamFolderUpdateSyncSettingsError syncSettingsError(SyncSettingsError value)
TeamFolderUpdateSyncSettingsError
that has
its tag set to TeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR
.
An error occurred setting the sync settings.
value
- value to assign to this instance.TeamFolderUpdateSyncSettingsError
with its
tag set to TeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR
.java.lang.IllegalArgumentException
- if value
is null
.public SyncSettingsError getSyncSettingsErrorValue()
This instance must be tagged as TeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR
.
SyncSettingsError
value associated with this instance
if isSyncSettingsError()
is true
.java.lang.IllegalStateException
- If isSyncSettingsError()
is false
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.