Class AddMemberSelectorError
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.AddMemberSelectorError
 
- 
 public final class AddMemberSelectorError extends java.lang.ObjectThis class is an open 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.Open unions may be extended in the future with additional tags. If a new tag is introduced that this SDK does not recognized, the OTHERvalue will be used.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAddMemberSelectorError.TagDiscriminating tag type forAddMemberSelectorError.
 - 
Field SummaryFields Modifier and Type Field Description static AddMemberSelectorErrorAUTOMATIC_GROUPAutomatically created groups can only be added to team folders.static AddMemberSelectorErrorGROUP_DELETEDAt least one of the specified groups inAddFolderMemberArg.getMembers()is deleted.static AddMemberSelectorErrorGROUP_NOT_ON_TEAMSharing to a group that is not on the current user's team.static AddMemberSelectorErrorOTHERCatch-all used for unknown tag values returned by the Dropbox servers.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetInvalidDropboxIdValue()The value is the ID that could not be identified.java.lang.StringgetInvalidEmailValue()The value is the e-email address that is malformed.java.lang.StringgetUnverifiedDropboxIdValue()The value is the ID of the Dropbox user with an unverified email address.inthashCode()static AddMemberSelectorErrorinvalidDropboxId(java.lang.String value)Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.INVALID_DROPBOX_ID.static AddMemberSelectorErrorinvalidEmail(java.lang.String value)Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.INVALID_EMAIL.booleanisAutomaticGroup()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.AUTOMATIC_GROUP,falseotherwise.booleanisGroupDeleted()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_DELETED,falseotherwise.booleanisGroupNotOnTeam()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_NOT_ON_TEAM,falseotherwise.booleanisInvalidDropboxId()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_DROPBOX_ID,falseotherwise.booleanisInvalidEmail()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_EMAIL,falseotherwise.booleanisOther()booleanisUnverifiedDropboxId()Returnstrueif this instance has the tagAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID,falseotherwise.AddMemberSelectorError.Tagtag()Returns the tag for this instance.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.static AddMemberSelectorErrorunverifiedDropboxId(java.lang.String value)Returns an instance ofAddMemberSelectorErrorthat has its tag set toAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID.
 
- 
- 
- 
Field Detail- 
AUTOMATIC_GROUPpublic static final AddMemberSelectorError AUTOMATIC_GROUP Automatically created groups can only be added to team folders.
 - 
GROUP_DELETEDpublic static final AddMemberSelectorError GROUP_DELETED At least one of the specified groups inAddFolderMemberArg.getMembers()is deleted.
 - 
GROUP_NOT_ON_TEAMpublic static final AddMemberSelectorError GROUP_NOT_ON_TEAM Sharing to a group that is not on the current user's team.
 - 
OTHERpublic static final AddMemberSelectorError 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- 
tagpublic AddMemberSelectorError.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 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.
 
 - 
isAutomaticGrouppublic boolean isAutomaticGroup() Returnstrueif this instance has the tagAddMemberSelectorError.Tag.AUTOMATIC_GROUP,falseotherwise.- Returns:
- trueif this instance is tagged as- AddMemberSelectorError.Tag.AUTOMATIC_GROUP,- falseotherwise.
 
 - 
isInvalidDropboxIdpublic boolean isInvalidDropboxId() Returnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_DROPBOX_ID,falseotherwise.- Returns:
- trueif this instance is tagged as- AddMemberSelectorError.Tag.INVALID_DROPBOX_ID,- falseotherwise.
 
 - 
invalidDropboxIdpublic static AddMemberSelectorError invalidDropboxId(java.lang.String value) 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:
- java.lang.IllegalArgumentException- if- valueis shorter than 1 or is- null.
 
 - 
getInvalidDropboxIdValuepublic java.lang.String 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:
- java.lang.IllegalStateException- If- isInvalidDropboxId()is- false.
 
 - 
isInvalidEmailpublic boolean isInvalidEmail() Returnstrueif this instance has the tagAddMemberSelectorError.Tag.INVALID_EMAIL,falseotherwise.- Returns:
- trueif this instance is tagged as- AddMemberSelectorError.Tag.INVALID_EMAIL,- falseotherwise.
 
 - 
invalidEmailpublic static AddMemberSelectorError invalidEmail(java.lang.String value) 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:
- java.lang.IllegalArgumentException- if- valueis 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 is- null.
 
 - 
getInvalidEmailValuepublic java.lang.String 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:
- java.lang.IllegalStateException- If- isInvalidEmail()is- false.
 
 - 
isUnverifiedDropboxIdpublic boolean isUnverifiedDropboxId() Returnstrueif this instance has the tagAddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID,falseotherwise.- Returns:
- trueif this instance is tagged as- AddMemberSelectorError.Tag.UNVERIFIED_DROPBOX_ID,- falseotherwise.
 
 - 
unverifiedDropboxIdpublic static AddMemberSelectorError unverifiedDropboxId(java.lang.String value) 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:
- java.lang.IllegalArgumentException- if- valueis shorter than 1 or is- null.
 
 - 
getUnverifiedDropboxIdValuepublic java.lang.String 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:
- java.lang.IllegalStateException- If- isUnverifiedDropboxId()is- false.
 
 - 
isGroupDeletedpublic boolean isGroupDeleted() Returnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_DELETED,falseotherwise.- Returns:
- trueif this instance is tagged as- AddMemberSelectorError.Tag.GROUP_DELETED,- falseotherwise.
 
 - 
isGroupNotOnTeampublic boolean isGroupNotOnTeam() Returnstrueif this instance has the tagAddMemberSelectorError.Tag.GROUP_NOT_ON_TEAM,falseotherwise.- Returns:
- trueif this instance is tagged as- AddMemberSelectorError.Tag.GROUP_NOT_ON_TEAM,- falseotherwise.
 
 - 
isOtherpublic boolean isOther() - Returns:
- trueif this instance is tagged as- AddMemberSelectorError.Tag.OTHER,- 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
 
 
- 
 
-