Class AddMemberSelectorError
isAbc()
methods will return true. You can use tag() to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER value
will be used.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AddMemberSelectorErrorAutomatically created groups can only be added to team folders.static final AddMemberSelectorErrorAt least one of the specified groups inAddFolderMemberArg.getMembers()is deleted.static final AddMemberSelectorErrorSharing to a group that is not on the current user's team.static final AddMemberSelectorErrorProvided group is invalid.static final AddMemberSelectorErrorCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe value is the ID that could not be identified.The value is the e-email address that is malformed.The value is the ID of the Dropbox user with an unverified email address.inthashCode()static AddMemberSelectorErrorinvalidDropboxId(String value) Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.INVALID_DROPBOX_ID.static AddMemberSelectorErrorinvalidEmail(String value) Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.INVALID_EMAIL.booleanReturnstrueif this instance has the tagAddMemberSelectorError.Tag.AUTOMATIC_GROUP,falseotherwise.booleanReturnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_DELETED,falseotherwise.booleanReturnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_NOT_ON_TEAM,falseotherwise.booleanReturnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_DROPBOX_ID,falseotherwise.booleanReturnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_EMAIL,falseotherwise.booleanReturnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_GROUP,falseotherwise.booleanisOther()booleanReturnstrueif this instance has the tagAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID,falseotherwise.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.static AddMemberSelectorErrorunverifiedDropboxId(String value) Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID.
-
Field Details
-
AUTOMATIC_GROUP
Automatically created groups can only be added to team folders. -
INVALID_GROUP
Provided group is invalid. -
GROUP_DELETED
At least one of the specified groups inAddFolderMemberArg.getMembers()is deleted. -
GROUP_NOT_ON_TEAM
Sharing to a group that is not on the current user's team. -
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 thisAddMemberSelectorError.If a tag returned by the server is unrecognized by this SDK, the
AddMemberSelectorError.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isAutomaticGroup
public boolean isAutomaticGroup()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.AUTOMATIC_GROUP,falseotherwise.- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.AUTOMATIC_GROUP,falseotherwise.
-
isInvalidDropboxId
public boolean isInvalidDropboxId()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_DROPBOX_ID,falseotherwise.- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.INVALID_DROPBOX_ID,falseotherwise.
-
invalidDropboxId
Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.INVALID_DROPBOX_ID.The value is the ID that could not be identified.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AddMemberSelectorErrorwith its tag set toAddMemberSelectorError.Tag.INVALID_DROPBOX_ID. - Throws:
IllegalArgumentException- ifvalueis shorter than 1 or isnull.
-
getInvalidDropboxIdValue
The value is the ID that could not be identified.This instance must be tagged as
AddMemberSelectorError.Tag.INVALID_DROPBOX_ID.- Returns:
- The
Stringvalue associated with this instance ifisInvalidDropboxId()istrue. - Throws:
IllegalStateException- IfisInvalidDropboxId()isfalse.
-
isInvalidEmail
public boolean isInvalidEmail()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_EMAIL,falseotherwise.- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.INVALID_EMAIL,falseotherwise.
-
invalidEmail
Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.INVALID_EMAIL.The value is the e-email address that is malformed.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AddMemberSelectorErrorwith its tag set toAddMemberSelectorError.Tag.INVALID_EMAIL. - Throws:
IllegalArgumentException- ifvalueis longer than 255, does not match pattern "^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$", or isnull.
-
getInvalidEmailValue
The value is the e-email address that is malformed.This instance must be tagged as
AddMemberSelectorError.Tag.INVALID_EMAIL.- Returns:
- The
Stringvalue associated with this instance ifisInvalidEmail()istrue. - Throws:
IllegalStateException- IfisInvalidEmail()isfalse.
-
isInvalidGroup
public boolean isInvalidGroup()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_GROUP,falseotherwise.- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.INVALID_GROUP,falseotherwise.
-
isUnverifiedDropboxId
public boolean isUnverifiedDropboxId()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID,falseotherwise.- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID,falseotherwise.
-
unverifiedDropboxId
Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID.The value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
AddMemberSelectorErrorwith its tag set toAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID. - Throws:
IllegalArgumentException- ifvalueis shorter than 1 or isnull.
-
getUnverifiedDropboxIdValue
The value is the ID of the Dropbox user with an unverified email address. Invite unverified users by email address instead of by their Dropbox ID.This instance must be tagged as
AddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID.- Returns:
- The
Stringvalue associated with this instance ifisUnverifiedDropboxId()istrue. - Throws:
IllegalStateException- IfisUnverifiedDropboxId()isfalse.
-
isGroupDeleted
public boolean isGroupDeleted()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_DELETED,falseotherwise.- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.GROUP_DELETED,falseotherwise.
-
isGroupNotOnTeam
public boolean isGroupNotOnTeam()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_NOT_ON_TEAM,falseotherwise.- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.GROUP_NOT_ON_TEAM,falseotherwise.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asAddMemberSelectorError.Tag.OTHER,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
-