public final class UpdatePropertiesError
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 |
UpdatePropertiesError.Serializer
For internal use only.
|
static class |
UpdatePropertiesError.Tag
Discriminating tag type for
UpdatePropertiesError. |
| Modifier and Type | Field and Description |
|---|---|
static UpdatePropertiesError |
DOES_NOT_FIT_TEMPLATE
One or more of the supplied property fields does not conform to the
template specifications.
|
static UpdatePropertiesError |
DUPLICATE_PROPERTY_GROUPS
There are 2 or more property groups referring to the same templates in
the input.
|
static UpdatePropertiesError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
static UpdatePropertiesError |
PROPERTY_FIELD_TOO_LARGE
One or more of the supplied property field values is too large.
|
static UpdatePropertiesError |
RESTRICTED_CONTENT
You do not have permission to modify this template.
|
static UpdatePropertiesError |
UNSUPPORTED_FOLDER
This folder cannot be tagged.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
LookupError |
getPathValue()
This instance must be tagged as
UpdatePropertiesError.Tag.PATH. |
LookUpPropertiesError |
getPropertyGroupLookupValue()
This instance must be tagged as
UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP. |
java.lang.String |
getTemplateNotFoundValue()
Template does not exist for the given identifier.
|
int |
hashCode() |
boolean |
isDoesNotFitTemplate()
Returns
true if this instance has the tag UpdatePropertiesError.Tag.DOES_NOT_FIT_TEMPLATE, false otherwise. |
boolean |
isDuplicatePropertyGroups()
Returns
true if this instance has the tag UpdatePropertiesError.Tag.DUPLICATE_PROPERTY_GROUPS, false otherwise. |
boolean |
isOther()
|
boolean |
isPath()
|
boolean |
isPropertyFieldTooLarge()
Returns
true if this instance has the tag UpdatePropertiesError.Tag.PROPERTY_FIELD_TOO_LARGE, false otherwise. |
boolean |
isPropertyGroupLookup()
Returns
true if this instance has the tag UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP, false otherwise. |
boolean |
isRestrictedContent()
Returns
true if this instance has the tag UpdatePropertiesError.Tag.RESTRICTED_CONTENT, false otherwise. |
boolean |
isTemplateNotFound()
Returns
true if this instance has the tag UpdatePropertiesError.Tag.TEMPLATE_NOT_FOUND, false otherwise. |
boolean |
isUnsupportedFolder()
Returns
true if this instance has the tag UpdatePropertiesError.Tag.UNSUPPORTED_FOLDER, false otherwise. |
static UpdatePropertiesError |
path(LookupError value)
Returns an instance of
UpdatePropertiesError that has its tag set
to UpdatePropertiesError.Tag.PATH. |
static UpdatePropertiesError |
propertyGroupLookup(LookUpPropertiesError value)
Returns an instance of
UpdatePropertiesError that has its tag set
to UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP. |
UpdatePropertiesError.Tag |
tag()
Returns the tag for this instance.
|
static UpdatePropertiesError |
templateNotFound(java.lang.String value)
Returns an instance of
UpdatePropertiesError that has its tag set
to UpdatePropertiesError.Tag.TEMPLATE_NOT_FOUND. |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final UpdatePropertiesError RESTRICTED_CONTENT
public static final UpdatePropertiesError 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 UpdatePropertiesError UNSUPPORTED_FOLDER
public static final UpdatePropertiesError PROPERTY_FIELD_TOO_LARGE
public static final UpdatePropertiesError DOES_NOT_FIT_TEMPLATE
public static final UpdatePropertiesError DUPLICATE_PROPERTY_GROUPS
public UpdatePropertiesError.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 UpdatePropertiesError.
public boolean isTemplateNotFound()
true if this instance has the tag UpdatePropertiesError.Tag.TEMPLATE_NOT_FOUND, false otherwise.true if this instance is tagged as UpdatePropertiesError.Tag.TEMPLATE_NOT_FOUND, false otherwise.public static UpdatePropertiesError templateNotFound(java.lang.String value)
UpdatePropertiesError that has its tag set
to UpdatePropertiesError.Tag.TEMPLATE_NOT_FOUND.
Template does not exist for the given identifier.
value - value to assign to this instance.UpdatePropertiesError with its tag set to
UpdatePropertiesError.Tag.TEMPLATE_NOT_FOUND.java.lang.IllegalArgumentException - if value is shorter than 1,
does not match pattern "(/|ptid:).*", or is null.public java.lang.String getTemplateNotFoundValue()
This instance must be tagged as UpdatePropertiesError.Tag.TEMPLATE_NOT_FOUND.
String value associated with this instance if isTemplateNotFound() is true.java.lang.IllegalStateException - If isTemplateNotFound() is false.public boolean isRestrictedContent()
true if this instance has the tag UpdatePropertiesError.Tag.RESTRICTED_CONTENT, false otherwise.true if this instance is tagged as UpdatePropertiesError.Tag.RESTRICTED_CONTENT, false otherwise.public boolean isOther()
true if this instance is tagged as UpdatePropertiesError.Tag.OTHER,
false otherwise.public boolean isPath()
true if this instance is tagged as UpdatePropertiesError.Tag.PATH,
false otherwise.public static UpdatePropertiesError path(LookupError value)
UpdatePropertiesError that has its tag set
to UpdatePropertiesError.Tag.PATH.
None
value - value to assign to this instance.UpdatePropertiesError with its tag set to
UpdatePropertiesError.Tag.PATH.java.lang.IllegalArgumentException - if value is null.public LookupError getPathValue()
UpdatePropertiesError.Tag.PATH.LookupError value associated with this instance if
isPath() is true.java.lang.IllegalStateException - If isPath() is false.public boolean isUnsupportedFolder()
true if this instance has the tag UpdatePropertiesError.Tag.UNSUPPORTED_FOLDER, false otherwise.true if this instance is tagged as UpdatePropertiesError.Tag.UNSUPPORTED_FOLDER, false otherwise.public boolean isPropertyFieldTooLarge()
true if this instance has the tag UpdatePropertiesError.Tag.PROPERTY_FIELD_TOO_LARGE, false otherwise.true if this instance is tagged as UpdatePropertiesError.Tag.PROPERTY_FIELD_TOO_LARGE, false otherwise.public boolean isDoesNotFitTemplate()
true if this instance has the tag UpdatePropertiesError.Tag.DOES_NOT_FIT_TEMPLATE, false otherwise.true if this instance is tagged as UpdatePropertiesError.Tag.DOES_NOT_FIT_TEMPLATE, false otherwise.public boolean isDuplicatePropertyGroups()
true if this instance has the tag UpdatePropertiesError.Tag.DUPLICATE_PROPERTY_GROUPS, false otherwise.true if this instance is tagged as UpdatePropertiesError.Tag.DUPLICATE_PROPERTY_GROUPS, false otherwise.public boolean isPropertyGroupLookup()
true if this instance has the tag UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP, false otherwise.true if this instance is tagged as UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP, false otherwise.public static UpdatePropertiesError propertyGroupLookup(LookUpPropertiesError value)
UpdatePropertiesError that has its tag set
to UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.
None
value - value to assign to this instance.UpdatePropertiesError with its tag set to
UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.java.lang.IllegalArgumentException - if value is null.public LookUpPropertiesError getPropertyGroupLookupValue()
UpdatePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.LookUpPropertiesError value associated with this
instance if isPropertyGroupLookup() is true.java.lang.IllegalStateException - If isPropertyGroupLookup() is
false.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.