public final class ModifyTemplateError
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 |
ModifyTemplateError.Serializer
For internal use only.
|
static class |
ModifyTemplateError.Tag
Discriminating tag type for
ModifyTemplateError . |
Modifier and Type | Field and Description |
---|---|
static ModifyTemplateError |
CONFLICTING_PROPERTY_NAMES
A property field key with that name already exists in the template.
|
static ModifyTemplateError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
static ModifyTemplateError |
RESTRICTED_CONTENT
You do not have permission to modify this template.
|
static ModifyTemplateError |
TEMPLATE_ATTRIBUTE_TOO_LARGE
The template name, description or one or more of the property field keys
is too large.
|
static ModifyTemplateError |
TOO_MANY_PROPERTIES
There are too many properties in the changed template.
|
static ModifyTemplateError |
TOO_MANY_TEMPLATES
There are too many templates for the team.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getTemplateNotFoundValue()
Template does not exist for the given identifier.
|
int |
hashCode() |
boolean |
isConflictingPropertyNames()
Returns
true if this instance has the tag ModifyTemplateError.Tag.CONFLICTING_PROPERTY_NAMES , false otherwise. |
boolean |
isOther()
|
boolean |
isRestrictedContent()
Returns
true if this instance has the tag ModifyTemplateError.Tag.RESTRICTED_CONTENT , false otherwise. |
boolean |
isTemplateAttributeTooLarge()
Returns
true if this instance has the tag ModifyTemplateError.Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE , false otherwise. |
boolean |
isTemplateNotFound()
Returns
true if this instance has the tag ModifyTemplateError.Tag.TEMPLATE_NOT_FOUND , false otherwise. |
boolean |
isTooManyProperties()
Returns
true if this instance has the tag ModifyTemplateError.Tag.TOO_MANY_PROPERTIES , false otherwise. |
boolean |
isTooManyTemplates()
Returns
true if this instance has the tag ModifyTemplateError.Tag.TOO_MANY_TEMPLATES , false otherwise. |
ModifyTemplateError.Tag |
tag()
Returns the tag for this instance.
|
static ModifyTemplateError |
templateNotFound(java.lang.String value)
Returns an instance of
ModifyTemplateError that has its tag set
to ModifyTemplateError.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 ModifyTemplateError RESTRICTED_CONTENT
public static final ModifyTemplateError 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 ModifyTemplateError CONFLICTING_PROPERTY_NAMES
public static final ModifyTemplateError TOO_MANY_PROPERTIES
public static final ModifyTemplateError TOO_MANY_TEMPLATES
public static final ModifyTemplateError TEMPLATE_ATTRIBUTE_TOO_LARGE
public ModifyTemplateError.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 ModifyTemplateError
.
public boolean isTemplateNotFound()
true
if this instance has the tag ModifyTemplateError.Tag.TEMPLATE_NOT_FOUND
, false
otherwise.true
if this instance is tagged as ModifyTemplateError.Tag.TEMPLATE_NOT_FOUND
, false
otherwise.public static ModifyTemplateError templateNotFound(java.lang.String value)
ModifyTemplateError
that has its tag set
to ModifyTemplateError.Tag.TEMPLATE_NOT_FOUND
.
Template does not exist for the given identifier.
value
- value to assign to this instance.ModifyTemplateError
with its tag set to
ModifyTemplateError.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 ModifyTemplateError.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 ModifyTemplateError.Tag.RESTRICTED_CONTENT
, false
otherwise.true
if this instance is tagged as ModifyTemplateError.Tag.RESTRICTED_CONTENT
, false
otherwise.public boolean isOther()
true
if this instance is tagged as ModifyTemplateError.Tag.OTHER
,
false
otherwise.public boolean isConflictingPropertyNames()
true
if this instance has the tag ModifyTemplateError.Tag.CONFLICTING_PROPERTY_NAMES
, false
otherwise.true
if this instance is tagged as ModifyTemplateError.Tag.CONFLICTING_PROPERTY_NAMES
, false
otherwise.public boolean isTooManyProperties()
true
if this instance has the tag ModifyTemplateError.Tag.TOO_MANY_PROPERTIES
, false
otherwise.true
if this instance is tagged as ModifyTemplateError.Tag.TOO_MANY_PROPERTIES
, false
otherwise.public boolean isTooManyTemplates()
true
if this instance has the tag ModifyTemplateError.Tag.TOO_MANY_TEMPLATES
, false
otherwise.true
if this instance is tagged as ModifyTemplateError.Tag.TOO_MANY_TEMPLATES
, false
otherwise.public boolean isTemplateAttributeTooLarge()
true
if this instance has the tag ModifyTemplateError.Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE
, false
otherwise.true
if this instance is tagged as ModifyTemplateError.Tag.TEMPLATE_ATTRIBUTE_TOO_LARGE
, false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.