Package com.dropbox.core.v2.team
Class TeamFolderUpdateSyncSettingsError
java.lang.Object
com.dropbox.core.v2.team.TeamFolderUpdateSyncSettingsError
This class is a 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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDiscriminating tag type forTeamFolderUpdateSyncSettingsError. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TeamFolderUpdateSyncSettingsErrorCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionaccessError(TeamFolderAccessError value) Returns an instance ofTeamFolderUpdateSyncSettingsErrorthat has its tag set toTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR.booleanThis instance must be tagged asTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR.This instance must be tagged asTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR.An error occurred setting the sync settings.This instance must be tagged asTeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR.inthashCode()booleanReturnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR,falseotherwise.booleanisOther()Returnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.OTHER,falseotherwise.booleanReturnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR,falseotherwise.booleanReturnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR,falseotherwise.booleanReturnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR,falseotherwise.Returns an instance ofTeamFolderUpdateSyncSettingsErrorthat has its tag set toTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR.Returns an instance ofTeamFolderUpdateSyncSettingsErrorthat has its tag set toTeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR.tag()Returns the tag for this instance.Returns an instance ofTeamFolderUpdateSyncSettingsErrorthat has its tag set toTeamFolderUpdateSyncSettingsError.Tag.TEAM_SHARED_DROPBOX_ERROR.toString()Returns a String representation of this object formatted for easier readability.
-
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 thisTeamFolderUpdateSyncSettingsError.- Returns:
- the tag for this instance.
-
isAccessError
public boolean isAccessError()Returnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR,falseotherwise.
-
accessError
Returns an instance ofTeamFolderUpdateSyncSettingsErrorthat has its tag set toTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderUpdateSyncSettingsErrorwith its tag set toTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getAccessErrorValue
This instance must be tagged asTeamFolderUpdateSyncSettingsError.Tag.ACCESS_ERROR.- Returns:
- The
TeamFolderAccessErrorvalue associated with this instance ifisAccessError()istrue. - Throws:
IllegalStateException- IfisAccessError()isfalse.
-
isStatusError
public boolean isStatusError()Returnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR,falseotherwise.
-
statusError
Returns an instance ofTeamFolderUpdateSyncSettingsErrorthat has its tag set toTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderUpdateSyncSettingsErrorwith its tag set toTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getStatusErrorValue
This instance must be tagged asTeamFolderUpdateSyncSettingsError.Tag.STATUS_ERROR.- Returns:
- The
TeamFolderInvalidStatusErrorvalue associated with this instance ifisStatusError()istrue. - Throws:
IllegalStateException- IfisStatusError()isfalse.
-
isOther
public boolean isOther()Returnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.OTHER,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderUpdateSyncSettingsError.Tag.OTHER,falseotherwise.
-
isSyncSettingsError
public boolean isSyncSettingsError()Returnstrueif this instance has the tagTeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR,falseotherwise.
-
syncSettingsError
Returns an instance ofTeamFolderUpdateSyncSettingsErrorthat has its tag set toTeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR.An error occurred setting the sync settings.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderUpdateSyncSettingsErrorwith its tag set toTeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getSyncSettingsErrorValue
An error occurred setting the sync settings.This instance must be tagged as
TeamFolderUpdateSyncSettingsError.Tag.SYNC_SETTINGS_ERROR.- Returns:
- The
SyncSettingsErrorvalue associated with this instance ifisSyncSettingsError()istrue. - Throws:
IllegalStateException- IfisSyncSettingsError()isfalse.
-
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
-