Modifier and Type | Class and Description |
---|---|
static class |
AddPropertiesError.Tag
Discriminating tag type for
AddPropertiesError . |
Modifier and Type | Field and Description |
---|---|
static AddPropertiesError |
DOES_NOT_FIT_TEMPLATE
The property group specified does not conform to the property template.
|
static AddPropertiesError |
OTHER
An unspecified error.
|
static AddPropertiesError |
PROPERTY_FIELD_TOO_LARGE
A field value in this property group is too large.
|
static AddPropertiesError |
PROPERTY_GROUP_ALREADY_EXISTS
This property group already exists for this file.
|
static AddPropertiesError |
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
AddPropertiesError.Tag.PATH . |
String |
getTemplateNotFoundValue()
Property template does not exist for given identifier.
|
int |
hashCode() |
boolean |
isDoesNotFitTemplate()
Returns
true if this instance has the tag AddPropertiesError.Tag.DOES_NOT_FIT_TEMPLATE , false otherwise. |
boolean |
isOther()
|
boolean |
isPath()
|
boolean |
isPropertyFieldTooLarge()
Returns
true if this instance has the tag AddPropertiesError.Tag.PROPERTY_FIELD_TOO_LARGE , false otherwise. |
boolean |
isPropertyGroupAlreadyExists()
Returns
true if this instance has the tag AddPropertiesError.Tag.PROPERTY_GROUP_ALREADY_EXISTS , false otherwise. |
boolean |
isRestrictedContent()
Returns
true if this instance has the tag AddPropertiesError.Tag.RESTRICTED_CONTENT , false otherwise. |
boolean |
isTemplateNotFound()
Returns
true if this instance has the tag AddPropertiesError.Tag.TEMPLATE_NOT_FOUND , false otherwise. |
static AddPropertiesError |
path(LookupError value)
Returns an instance of
AddPropertiesError that has its tag set to
AddPropertiesError.Tag.PATH . |
AddPropertiesError.Tag |
tag()
Returns the tag for this instance.
|
static AddPropertiesError |
templateNotFound(String value)
Returns an instance of
AddPropertiesError that has its tag set to
AddPropertiesError.Tag.TEMPLATE_NOT_FOUND . |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final AddPropertiesError RESTRICTED_CONTENT
public static final AddPropertiesError OTHER
public static final AddPropertiesError PROPERTY_FIELD_TOO_LARGE
public static final AddPropertiesError DOES_NOT_FIT_TEMPLATE
public static final AddPropertiesError PROPERTY_GROUP_ALREADY_EXISTS
public AddPropertiesError.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 AddPropertiesError
.
public boolean isTemplateNotFound()
true
if this instance has the tag AddPropertiesError.Tag.TEMPLATE_NOT_FOUND
, false
otherwise.true
if this instance is tagged as AddPropertiesError.Tag.TEMPLATE_NOT_FOUND
, false
otherwise.public static AddPropertiesError templateNotFound(String value)
AddPropertiesError
that has its tag set to
AddPropertiesError.Tag.TEMPLATE_NOT_FOUND
.
Property template does not exist for given identifier.
value
- value to assign to this instance.AddPropertiesError
with its tag set to AddPropertiesError.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 AddPropertiesError.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 AddPropertiesError.Tag.RESTRICTED_CONTENT
, false
otherwise.true
if this instance is tagged as AddPropertiesError.Tag.RESTRICTED_CONTENT
, false
otherwise.public boolean isOther()
true
if this instance is tagged as AddPropertiesError.Tag.OTHER
,
false
otherwise.public boolean isPath()
true
if this instance is tagged as AddPropertiesError.Tag.PATH
,
false
otherwise.public static AddPropertiesError path(LookupError value)
AddPropertiesError
that has its tag set to
AddPropertiesError.Tag.PATH
.value
- value to assign to this instance.AddPropertiesError
with its tag set to AddPropertiesError.Tag.PATH
.IllegalArgumentException
- if value
is null
.public LookupError getPathValue()
AddPropertiesError.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 isPropertyFieldTooLarge()
true
if this instance has the tag AddPropertiesError.Tag.PROPERTY_FIELD_TOO_LARGE
, false
otherwise.true
if this instance is tagged as AddPropertiesError.Tag.PROPERTY_FIELD_TOO_LARGE
, false
otherwise.public boolean isDoesNotFitTemplate()
true
if this instance has the tag AddPropertiesError.Tag.DOES_NOT_FIT_TEMPLATE
, false
otherwise.true
if this instance is tagged as AddPropertiesError.Tag.DOES_NOT_FIT_TEMPLATE
, false
otherwise.public boolean isPropertyGroupAlreadyExists()
true
if this instance has the tag AddPropertiesError.Tag.PROPERTY_GROUP_ALREADY_EXISTS
, false
otherwise.true
if this instance is tagged as AddPropertiesError.Tag.PROPERTY_GROUP_ALREADY_EXISTS
, false
otherwise.public String toStringMultiline()
The returned String may contain newlines.