Package com.dropbox.core.v2.team
Class TeamFolderRenameError
java.lang.Object
com.dropbox.core.v2.team.TeamFolderRenameError
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 Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TeamFolderRenameErrorThere is already a team folder with the same name.static final TeamFolderRenameErrorThe provided name cannot be used because it is reserved.static final TeamFolderRenameErrorThe provided folder name cannot be used.static final TeamFolderRenameErrorCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionstatic TeamFolderRenameErroraccessError(TeamFolderAccessError value) Returns an instance ofTeamFolderRenameErrorthat has its tag set toTeamFolderRenameError.Tag.ACCESS_ERROR.booleanThis instance must be tagged asTeamFolderRenameError.Tag.ACCESS_ERROR.This instance must be tagged asTeamFolderRenameError.Tag.STATUS_ERROR.This instance must be tagged asTeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR.inthashCode()booleanbooleanReturnstrueif this instance has the tagTeamFolderRenameError.Tag.FOLDER_NAME_ALREADY_USED,falseotherwise.booleanReturnstrueif this instance has the tagTeamFolderRenameError.Tag.FOLDER_NAME_RESERVED,falseotherwise.booleanReturnstrueif this instance has the tagTeamFolderRenameError.Tag.INVALID_FOLDER_NAME,falseotherwise.booleanisOther()booleanbooleanReturnstrueif this instance has the tagTeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR,falseotherwise.static TeamFolderRenameErrorReturns an instance ofTeamFolderRenameErrorthat has its tag set toTeamFolderRenameError.Tag.STATUS_ERROR.tag()Returns the tag for this instance.static TeamFolderRenameErrorReturns an instance ofTeamFolderRenameErrorthat has its tag set toTeamFolderRenameError.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.
-
INVALID_FOLDER_NAME
The provided folder name cannot be used. -
FOLDER_NAME_ALREADY_USED
There is already a team folder with the same name. -
FOLDER_NAME_RESERVED
The provided name cannot be used because it is reserved.
-
-
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 thisTeamFolderRenameError.- Returns:
- the tag for this instance.
-
isAccessError
public boolean isAccessError()- Returns:
trueif this instance is tagged asTeamFolderRenameError.Tag.ACCESS_ERROR,falseotherwise.
-
accessError
Returns an instance ofTeamFolderRenameErrorthat has its tag set toTeamFolderRenameError.Tag.ACCESS_ERROR.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderRenameErrorwith its tag set toTeamFolderRenameError.Tag.ACCESS_ERROR. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getAccessErrorValue
This instance must be tagged asTeamFolderRenameError.Tag.ACCESS_ERROR.- Returns:
- The
TeamFolderAccessErrorvalue associated with this instance ifisAccessError()istrue. - Throws:
IllegalStateException- IfisAccessError()isfalse.
-
isStatusError
public boolean isStatusError()- Returns:
trueif this instance is tagged asTeamFolderRenameError.Tag.STATUS_ERROR,falseotherwise.
-
statusError
Returns an instance ofTeamFolderRenameErrorthat has its tag set toTeamFolderRenameError.Tag.STATUS_ERROR.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderRenameErrorwith its tag set toTeamFolderRenameError.Tag.STATUS_ERROR. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getStatusErrorValue
This instance must be tagged asTeamFolderRenameError.Tag.STATUS_ERROR.- Returns:
- The
TeamFolderInvalidStatusErrorvalue associated with this instance ifisStatusError()istrue. - Throws:
IllegalStateException- IfisStatusError()isfalse.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asTeamFolderRenameError.Tag.OTHER,falseotherwise.
-
isInvalidFolderName
public boolean isInvalidFolderName()Returnstrueif this instance has the tagTeamFolderRenameError.Tag.INVALID_FOLDER_NAME,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderRenameError.Tag.INVALID_FOLDER_NAME,falseotherwise.
-
isFolderNameAlreadyUsed
public boolean isFolderNameAlreadyUsed()Returnstrueif this instance has the tagTeamFolderRenameError.Tag.FOLDER_NAME_ALREADY_USED,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderRenameError.Tag.FOLDER_NAME_ALREADY_USED,falseotherwise.
-
isFolderNameReserved
public boolean isFolderNameReserved()Returnstrueif this instance has the tagTeamFolderRenameError.Tag.FOLDER_NAME_RESERVED,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderRenameError.Tag.FOLDER_NAME_RESERVED,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
-