public final class TeamFolderRenameError
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 |
TeamFolderRenameError.Tag
Discriminating tag type for
TeamFolderRenameError. |
| Modifier and Type | Field and Description |
|---|---|
static TeamFolderRenameError |
FOLDER_NAME_ALREADY_USED
There is already a team folder with the same name.
|
static TeamFolderRenameError |
FOLDER_NAME_RESERVED
The provided name cannot be used because it is reserved.
|
static TeamFolderRenameError |
INVALID_FOLDER_NAME
The provided folder name cannot be used.
|
static TeamFolderRenameError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
public static final TeamFolderRenameError 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 static final TeamFolderRenameError INVALID_FOLDER_NAME
public static final TeamFolderRenameError FOLDER_NAME_ALREADY_USED
public static final TeamFolderRenameError FOLDER_NAME_RESERVED
public TeamFolderRenameError.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 TeamFolderRenameError.
public boolean isAccessError()
true if this instance is tagged as TeamFolderRenameError.Tag.ACCESS_ERROR, false otherwise.public static TeamFolderRenameError accessError(TeamFolderAccessError value)
TeamFolderRenameError that has its tag set
to TeamFolderRenameError.Tag.ACCESS_ERROR.
None
value - value to assign to this instance.TeamFolderRenameError with its tag set to
TeamFolderRenameError.Tag.ACCESS_ERROR.java.lang.IllegalArgumentException - if value is null.public TeamFolderAccessError getAccessErrorValue()
TeamFolderRenameError.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 is tagged as TeamFolderRenameError.Tag.STATUS_ERROR, false otherwise.public static TeamFolderRenameError statusError(TeamFolderInvalidStatusError value)
TeamFolderRenameError that has its tag set
to TeamFolderRenameError.Tag.STATUS_ERROR.
None
value - value to assign to this instance.TeamFolderRenameError with its tag set to
TeamFolderRenameError.Tag.STATUS_ERROR.java.lang.IllegalArgumentException - if value is null.public TeamFolderInvalidStatusError getStatusErrorValue()
TeamFolderRenameError.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 TeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR, false otherwise.true if this instance is tagged as TeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR, false otherwise.public static TeamFolderRenameError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value)
TeamFolderRenameError that has its tag set
to TeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR.
None
value - value to assign to this instance.TeamFolderRenameError with its tag set to
TeamFolderRenameError.Tag.TEAM_SHARED_DROPBOX_ERROR.java.lang.IllegalArgumentException - if value is null.public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue()
TeamFolderRenameError.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 is tagged as TeamFolderRenameError.Tag.OTHER,
false otherwise.public boolean isInvalidFolderName()
true if this instance has the tag TeamFolderRenameError.Tag.INVALID_FOLDER_NAME, false otherwise.true if this instance is tagged as TeamFolderRenameError.Tag.INVALID_FOLDER_NAME, false otherwise.public boolean isFolderNameAlreadyUsed()
true if this instance has the tag TeamFolderRenameError.Tag.FOLDER_NAME_ALREADY_USED, false otherwise.true if this instance is tagged as TeamFolderRenameError.Tag.FOLDER_NAME_ALREADY_USED, false otherwise.public boolean isFolderNameReserved()
true if this instance has the tag TeamFolderRenameError.Tag.FOLDER_NAME_RESERVED, false otherwise.true if this instance is tagged as TeamFolderRenameError.Tag.FOLDER_NAME_RESERVED, 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.