| Modifier and Type | Class and Description |
|---|---|
static class |
RemovePropertiesError.Tag
Discriminating tag type for
RemovePropertiesError. |
| Modifier and Type | Field and Description |
|---|---|
static RemovePropertiesError |
OTHER
An unspecified error.
|
static RemovePropertiesError |
RESTRICTED_CONTENT
You do not have the permissions to modify this property template.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LookupError |
getPathValue()
This instance must be tagged as
RemovePropertiesError.Tag.PATH. |
LookUpPropertiesError |
getPropertyGroupLookupValue()
This instance must be tagged as
RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP. |
String |
getTemplateNotFoundValue()
Property template does not exist for given identifier.
|
int |
hashCode() |
boolean |
isOther()
|
boolean |
isPath()
|
boolean |
isPropertyGroupLookup()
Returns
true if this instance has the tag RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP, false otherwise. |
boolean |
isRestrictedContent()
Returns
true if this instance has the tag RemovePropertiesError.Tag.RESTRICTED_CONTENT, false otherwise. |
boolean |
isTemplateNotFound()
Returns
true if this instance has the tag RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND, false otherwise. |
static RemovePropertiesError |
path(LookupError value)
Returns an instance of
RemovePropertiesError that has its tag set
to RemovePropertiesError.Tag.PATH. |
static RemovePropertiesError |
propertyGroupLookup(LookUpPropertiesError value)
Returns an instance of
RemovePropertiesError that has its tag set
to RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP. |
RemovePropertiesError.Tag |
tag()
Returns the tag for this instance.
|
static RemovePropertiesError |
templateNotFound(String value)
Returns an instance of
RemovePropertiesError that has its tag set
to RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND. |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final RemovePropertiesError RESTRICTED_CONTENT
public static final RemovePropertiesError OTHER
public RemovePropertiesError.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 RemovePropertiesError.
public boolean isTemplateNotFound()
true if this instance has the tag RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND, false otherwise.true if this instance is tagged as RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND, false otherwise.public static RemovePropertiesError templateNotFound(String value)
RemovePropertiesError that has its tag set
to RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND.
Property template does not exist for given identifier.
value - value to assign to this instance.RemovePropertiesError with its tag set to
RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND.IllegalArgumentException - if value is shorter than 1,
does not match pattern "(/|ptid:).*", or is null.public String getTemplateNotFoundValue()
This instance must be tagged as RemovePropertiesError.Tag.TEMPLATE_NOT_FOUND.
templateNotFound(java.lang.String) value
associated with this instance if isTemplateNotFound() is
true.IllegalStateException - If isTemplateNotFound() is false.public boolean isRestrictedContent()
true if this instance has the tag RemovePropertiesError.Tag.RESTRICTED_CONTENT, false otherwise.true if this instance is tagged as RemovePropertiesError.Tag.RESTRICTED_CONTENT, false otherwise.public boolean isOther()
true if this instance is tagged as RemovePropertiesError.Tag.OTHER,
false otherwise.public boolean isPath()
true if this instance is tagged as RemovePropertiesError.Tag.PATH,
false otherwise.public static RemovePropertiesError path(LookupError value)
RemovePropertiesError that has its tag set
to RemovePropertiesError.Tag.PATH.value - value to assign to this instance.RemovePropertiesError with its tag set to
RemovePropertiesError.Tag.PATH.IllegalArgumentException - if value is null.public LookupError getPathValue()
RemovePropertiesError.Tag.PATH.path(com.dropbox.core.v2.files.LookupError) value associated with this
instance if isPath() is true.IllegalStateException - If isPath() is false.public boolean isPropertyGroupLookup()
true if this instance has the tag RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP, false otherwise.true if this instance is tagged as RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP, false otherwise.public static RemovePropertiesError propertyGroupLookup(LookUpPropertiesError value)
RemovePropertiesError that has its tag set
to RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.value - value to assign to this instance.RemovePropertiesError with its tag set to
RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.IllegalArgumentException - if value is null.public LookUpPropertiesError getPropertyGroupLookupValue()
RemovePropertiesError.Tag.PROPERTY_GROUP_LOOKUP.propertyGroupLookup(com.dropbox.core.v2.files.LookUpPropertiesError) value
associated with this instance if isPropertyGroupLookup() is
true.IllegalStateException - If isPropertyGroupLookup() is
false.public String toStringMultiline()
The returned String may contain newlines.