Package com.dropbox.core.v2.team
Class TeamFolderPermanentlyDeleteError
- java.lang.Object
-
- com.dropbox.core.v2.team.TeamFolderPermanentlyDeleteError
-
public final class TeamFolderPermanentlyDeleteError 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 Summary
Nested Classes Modifier and Type Class Description static classTeamFolderPermanentlyDeleteError.TagDiscriminating tag type forTeamFolderPermanentlyDeleteError.
-
Field Summary
Fields Modifier and Type Field Description static TeamFolderPermanentlyDeleteErrorOTHERCatch-all used for unknown tag values returned by the Dropbox servers.
-
Method Summary
-
-
-
Field Detail
-
OTHER
public static final TeamFolderPermanentlyDeleteError 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 Detail
-
tag
public TeamFolderPermanentlyDeleteError.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 thisTeamFolderPermanentlyDeleteError.- Returns:
- the tag for this instance.
-
isAccessError
public boolean isAccessError()
Returnstrueif this instance has the tagTeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR,falseotherwise.
-
accessError
public static TeamFolderPermanentlyDeleteError accessError(TeamFolderAccessError value)
Returns an instance ofTeamFolderPermanentlyDeleteErrorthat has its tag set toTeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderPermanentlyDeleteErrorwith its tag set toTeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR. - Throws:
java.lang.IllegalArgumentException- ifvalueisnull.
-
getAccessErrorValue
public TeamFolderAccessError getAccessErrorValue()
This instance must be tagged asTeamFolderPermanentlyDeleteError.Tag.ACCESS_ERROR.- Returns:
- The
TeamFolderAccessErrorvalue associated with this instance ifisAccessError()istrue. - Throws:
java.lang.IllegalStateException- IfisAccessError()isfalse.
-
isStatusError
public boolean isStatusError()
Returnstrueif this instance has the tagTeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR,falseotherwise.
-
statusError
public static TeamFolderPermanentlyDeleteError statusError(TeamFolderInvalidStatusError value)
Returns an instance ofTeamFolderPermanentlyDeleteErrorthat has its tag set toTeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderPermanentlyDeleteErrorwith its tag set toTeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR. - Throws:
java.lang.IllegalArgumentException- ifvalueisnull.
-
getStatusErrorValue
public TeamFolderInvalidStatusError getStatusErrorValue()
This instance must be tagged asTeamFolderPermanentlyDeleteError.Tag.STATUS_ERROR.- Returns:
- The
TeamFolderInvalidStatusErrorvalue associated with this instance ifisStatusError()istrue. - Throws:
java.lang.IllegalStateException- IfisStatusError()isfalse.
-
isTeamSharedDropboxError
public boolean isTeamSharedDropboxError()
Returnstrueif this instance has the tagTeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR,falseotherwise.
-
teamSharedDropboxError
public static TeamFolderPermanentlyDeleteError teamSharedDropboxError(TeamFolderTeamSharedDropboxError value)
Returns an instance ofTeamFolderPermanentlyDeleteErrorthat has its tag set toTeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR.None
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
TeamFolderPermanentlyDeleteErrorwith its tag set toTeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR. - Throws:
java.lang.IllegalArgumentException- ifvalueisnull.
-
getTeamSharedDropboxErrorValue
public TeamFolderTeamSharedDropboxError getTeamSharedDropboxErrorValue()
This instance must be tagged asTeamFolderPermanentlyDeleteError.Tag.TEAM_SHARED_DROPBOX_ERROR.- Returns:
- The
TeamFolderTeamSharedDropboxErrorvalue associated with this instance ifisTeamSharedDropboxError()istrue. - Throws:
java.lang.IllegalStateException- IfisTeamSharedDropboxError()isfalse.
-
isOther
public boolean isOther()
Returnstrueif this instance has the tagTeamFolderPermanentlyDeleteError.Tag.OTHER,falseotherwise.- Returns:
trueif this instance is tagged asTeamFolderPermanentlyDeleteError.Tag.OTHER,falseotherwise.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public 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
-
-