Package com.dropbox.core.v2.team
Class TeamFolderRenameError
- java.lang.Object
- 
- com.dropbox.core.v2.team.TeamFolderRenameError
 
- 
 public final class TeamFolderRenameError extends java.lang.ObjectThis class is a tagged union. Tagged unions instances are always associated to a specific tag. This means only one of theisAbc()methods will returntrue. You can usetag()to determine the tag associated with this instance.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTeamFolderRenameError.TagDiscriminating tag type forTeamFolderRenameError.
 - 
Field SummaryFields Modifier and Type Field Description static TeamFolderRenameErrorFOLDER_NAME_ALREADY_USEDThere is already a team folder with the same name.static TeamFolderRenameErrorFOLDER_NAME_RESERVEDThe provided name cannot be used because it is reserved.static TeamFolderRenameErrorINVALID_FOLDER_NAMEThe provided folder name cannot be used.static TeamFolderRenameErrorOTHERCatch-all used for unknown tag values returned by the Dropbox servers.
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
OTHERpublic static final TeamFolderRenameError 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_NAMEpublic static final TeamFolderRenameError INVALID_FOLDER_NAME The provided folder name cannot be used.
 - 
FOLDER_NAME_ALREADY_USEDpublic static final TeamFolderRenameError FOLDER_NAME_ALREADY_USED There is already a team folder with the same name.
 - 
FOLDER_NAME_RESERVEDpublic static final TeamFolderRenameError FOLDER_NAME_RESERVED The provided name cannot be used because it is reserved.
 
- 
 - 
Method Detail- 
tagpublic TeamFolderRenameError.Tag 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.
 
 - 
isAccessErrorpublic boolean isAccessError() - Returns:
- trueif this instance is tagged as- TeamFolderRenameError.Tag.ACCESS_ERROR,- falseotherwise.
 
 - 
accessErrorpublic static TeamFolderRenameError accessError(TeamFolderAccessError value) 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:
- java.lang.IllegalArgumentException- if- valueis- null.
 
 - 
getAccessErrorValuepublic TeamFolderAccessError getAccessErrorValue() This instance must be tagged asTeamFolderRenameError.Tag.ACCESS_ERROR.- Returns:
- The TeamFolderAccessErrorvalue associated with this instance ifisAccessError()istrue.
- Throws:
- java.lang.IllegalStateException- If- isAccessError()is- false.
 
 - 
isStatusErrorpublic boolean isStatusError() - Returns:
- trueif this instance is tagged as- TeamFolderRenameError.Tag.STATUS_ERROR,- falseotherwise.
 
 - 
statusErrorpublic static TeamFolderRenameError statusError(TeamFolderInvalidStatusError value) 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:
- java.lang.IllegalArgumentException- if- valueis- null.
 
 - 
getStatusErrorValuepublic TeamFolderInvalidStatusError getStatusErrorValue() This instance must be tagged asTeamFolderRenameError.Tag.STATUS_ERROR.- Returns:
- The TeamFolderInvalidStatusErrorvalue associated with this instance ifisStatusError()istrue.
- Throws:
- java.lang.IllegalStateException- If- isStatusError()is- false.
 
 - 
isTeamSharedDropboxErrorpublic boolean isTeamSharedDropboxError() Returnstrueif this instance has the tagTeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR,falseotherwise.- Returns:
- trueif this instance is tagged as- TeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR,- falseotherwise.
 
 - 
teamSharedDropboxErrorpublic static TeamFolderRenameError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value) Returns an instance ofTeamFolderRenameErrorthat has its tag set toTeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR.None - Parameters:
- value- value to assign to this instance.
- Returns:
- Instance of TeamFolderRenameErrorwith its tag set toTeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR.
- Throws:
- java.lang.IllegalArgumentException- if- valueis- null.
 
 - 
getTeamSharedDropboxErrorValuepublic TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue() This instance must be tagged asTeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR.- Returns:
- The TeamFolderTeamSharedDropboxErrorvalue associated with this instance ifisTeamSharedDropboxError()istrue.
- Throws:
- java.lang.IllegalStateException- If- isTeamSharedDropboxError()is- false.
 
 - 
isOtherpublic boolean isOther() - Returns:
- trueif this instance is tagged as- TeamFolderRenameError.Tag.OTHER,- falseotherwise.
 
 - 
isInvalidFolderNamepublic boolean isInvalidFolderName() Returnstrueif this instance has the tagTeamFolderRenameError.Tag.INVALID_FOLDER_NAME,falseotherwise.- Returns:
- trueif this instance is tagged as- TeamFolderRenameError.Tag.INVALID_FOLDER_NAME,- falseotherwise.
 
 - 
isFolderNameAlreadyUsedpublic boolean isFolderNameAlreadyUsed() Returnstrueif this instance has the tagTeamFolderRenameError.Tag.FOLDER_NAME_ALREADY_USED,falseotherwise.- Returns:
- trueif this instance is tagged as- TeamFolderRenameError.Tag.FOLDER_NAME_ALREADY_USED,- falseotherwise.
 
 - 
isFolderNameReservedpublic boolean isFolderNameReserved() Returnstrueif this instance has the tagTeamFolderRenameError.Tag.FOLDER_NAME_RESERVED,falseotherwise.- Returns:
- trueif this instance is tagged as- TeamFolderRenameError.Tag.FOLDER_NAME_RESERVED,- falseotherwise.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String 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
 
 
- 
 
-