Class RemovePropertiesError
- java.lang.Object
- 
- com.dropbox.core.v2.fileproperties.RemovePropertiesError
 
- 
 public final class RemovePropertiesError 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 classRemovePropertiesError.SerializerFor internal use only.static classRemovePropertiesError.TagDiscriminating tag type forRemovePropertiesError.
 - 
Field SummaryFields Modifier and Type Field Description static RemovePropertiesErrorOTHERCatch-all used for unknown tag values returned by the Dropbox servers.static RemovePropertiesErrorRESTRICTED_CONTENTYou do not have permission to modify this template.static RemovePropertiesErrorUNSUPPORTED_FOLDERThis folder cannot be tagged.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)LookupErrorgetPathValue()This instance must be tagged asRemovePropertiesError.Tag.PATH.LookUpPropertiesErrorgetPropertyGroupLookupValue()This instance must be tagged asRemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.java.lang.StringgetTemplateNotFoundValue()Template does not exist for the given identifier.inthashCode()booleanisOther()booleanisPath()booleanisPropertyGroupLookup()Returnstrueif this instance has the tagRemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP,falseotherwise.booleanisRestrictedContent()Returnstrueif this instance has the tagRemovePropertiesError.Tag.RESTRICTED_CONTENT,falseotherwise.booleanisTemplateNotFound()Returnstrueif this instance has the tagRemovePropertiesError.Tag.TEMPLATE_NOT_FOUND,falseotherwise.booleanisUnsupportedFolder()Returnstrueif this instance has the tagRemovePropertiesError.Tag.UNSUPPORTED_FOLDER,falseotherwise.static RemovePropertiesErrorpath(LookupError value)Returns an instance ofRemovePropertiesErrorthat has its tag set toRemovePropertiesError.Tag.PATH.static RemovePropertiesErrorpropertyGroupLookup(LookUpPropertiesError value)Returns an instance ofRemovePropertiesErrorthat has its tag set toRemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.RemovePropertiesError.Tagtag()Returns the tag for this instance.static RemovePropertiesErrortemplateNotFound(java.lang.String value)Returns an instance ofRemovePropertiesErrorthat has its tag set toRemovePropertiesError.Tag.TEMPLATE_NOT_FOUND.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
RESTRICTED_CONTENTpublic static final RemovePropertiesError RESTRICTED_CONTENT You do not have permission to modify this template.
 - 
OTHERpublic static final RemovePropertiesError 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. 
 - 
UNSUPPORTED_FOLDERpublic static final RemovePropertiesError UNSUPPORTED_FOLDER This folder cannot be tagged. Tagging folders is not supported for team-owned templates.
 
- 
 - 
Method Detail- 
tagpublic RemovePropertiesError.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 thisRemovePropertiesError.- Returns:
- the tag for this instance.
 
 - 
isTemplateNotFoundpublic boolean isTemplateNotFound() Returnstrueif this instance has the tagRemovePropertiesError.Tag.TEMPLATE_NOT_FOUND,falseotherwise.- Returns:
- trueif this instance is tagged as- RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND,- falseotherwise.
 
 - 
templateNotFoundpublic static RemovePropertiesError templateNotFound(java.lang.String value) Returns an instance ofRemovePropertiesErrorthat has its tag set toRemovePropertiesError.Tag.TEMPLATE_NOT_FOUND.Template does not exist for the given identifier. - Parameters:
- value- value to assign to this instance.
- Returns:
- Instance of RemovePropertiesErrorwith its tag set toRemovePropertiesError.Tag.TEMPLATE_NOT_FOUND.
- Throws:
- java.lang.IllegalArgumentException- if- valueis shorter than 1, does not match pattern "- (/|ptid:).*", or is- null.
 
 - 
getTemplateNotFoundValuepublic java.lang.String getTemplateNotFoundValue() Template does not exist for the given identifier.This instance must be tagged as RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND.- Returns:
- The Stringvalue associated with this instance ifisTemplateNotFound()istrue.
- Throws:
- java.lang.IllegalStateException- If- isTemplateNotFound()is- false.
 
 - 
isRestrictedContentpublic boolean isRestrictedContent() Returnstrueif this instance has the tagRemovePropertiesError.Tag.RESTRICTED_CONTENT,falseotherwise.- Returns:
- trueif this instance is tagged as- RemovePropertiesError.Tag.RESTRICTED_CONTENT,- falseotherwise.
 
 - 
isOtherpublic boolean isOther() - Returns:
- trueif this instance is tagged as- RemovePropertiesError.Tag.OTHER,- falseotherwise.
 
 - 
isPathpublic boolean isPath() - Returns:
- trueif this instance is tagged as- RemovePropertiesError.Tag.PATH,- falseotherwise.
 
 - 
pathpublic static RemovePropertiesError path(LookupError value) Returns an instance ofRemovePropertiesErrorthat has its tag set toRemovePropertiesError.Tag.PATH.None - Parameters:
- value- value to assign to this instance.
- Returns:
- Instance of RemovePropertiesErrorwith its tag set toRemovePropertiesError.Tag.PATH.
- Throws:
- java.lang.IllegalArgumentException- if- valueis- null.
 
 - 
getPathValuepublic LookupError getPathValue() This instance must be tagged asRemovePropertiesError.Tag.PATH.- Returns:
- The LookupErrorvalue associated with this instance ifisPath()istrue.
- Throws:
- java.lang.IllegalStateException- If- isPath()is- false.
 
 - 
isUnsupportedFolderpublic boolean isUnsupportedFolder() Returnstrueif this instance has the tagRemovePropertiesError.Tag.UNSUPPORTED_FOLDER,falseotherwise.- Returns:
- trueif this instance is tagged as- RemovePropertiesError.Tag.UNSUPPORTED_FOLDER,- falseotherwise.
 
 - 
isPropertyGroupLookuppublic boolean isPropertyGroupLookup() Returnstrueif this instance has the tagRemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP,falseotherwise.- Returns:
- trueif this instance is tagged as- RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP,- falseotherwise.
 
 - 
propertyGroupLookuppublic static RemovePropertiesError propertyGroupLookup(LookUpPropertiesError value) Returns an instance ofRemovePropertiesErrorthat has its tag set toRemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.None - Parameters:
- value- value to assign to this instance.
- Returns:
- Instance of RemovePropertiesErrorwith its tag set toRemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.
- Throws:
- java.lang.IllegalArgumentException- if- valueis- null.
 
 - 
getPropertyGroupLookupValuepublic LookUpPropertiesError getPropertyGroupLookupValue() This instance must be tagged asRemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.- Returns:
- The LookUpPropertiesErrorvalue associated with this instance ifisPropertyGroupLookup()istrue.
- Throws:
- java.lang.IllegalStateException- If- isPropertyGroupLookup()is- false.
 
 - 
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
 
 
- 
 
-