Modifier and Type | Class and Description |
---|---|
static class |
CreateSharedLinkWithSettingsError.Tag
Discriminating tag type for
CreateSharedLinkWithSettingsError . |
Modifier and Type | Field and Description |
---|---|
static CreateSharedLinkWithSettingsError |
ACCESS_DENIED
Access to the requested path is forbidden
|
static CreateSharedLinkWithSettingsError |
EMAIL_NOT_VERIFIED
User's email should be verified
|
static CreateSharedLinkWithSettingsError |
SHARED_LINK_ALREADY_EXISTS
The shared link already exists
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
LookupError |
getPathValue()
This instance must be tagged as
CreateSharedLinkWithSettingsError.Tag.PATH . |
SharedLinkSettingsError |
getSettingsErrorValue()
There is an error with the given settings
|
int |
hashCode() |
boolean |
isAccessDenied()
Returns
true if this instance has the tag CreateSharedLinkWithSettingsError.Tag.ACCESS_DENIED , false otherwise. |
boolean |
isEmailNotVerified()
Returns
true if this instance has the tag CreateSharedLinkWithSettingsError.Tag.EMAIL_NOT_VERIFIED , false otherwise. |
boolean |
isPath()
Returns
true if this instance has the tag CreateSharedLinkWithSettingsError.Tag.PATH ,
false otherwise. |
boolean |
isSettingsError()
Returns
true if this instance has the tag CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR , false otherwise. |
boolean |
isSharedLinkAlreadyExists()
Returns
true if this instance has the tag CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS , false otherwise. |
static CreateSharedLinkWithSettingsError |
path(LookupError value)
Returns an instance of
CreateSharedLinkWithSettingsError that has
its tag set to CreateSharedLinkWithSettingsError.Tag.PATH . |
static CreateSharedLinkWithSettingsError |
settingsError(SharedLinkSettingsError value)
Returns an instance of
CreateSharedLinkWithSettingsError that has
its tag set to CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR . |
CreateSharedLinkWithSettingsError.Tag |
tag()
Returns the tag for this instance.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final CreateSharedLinkWithSettingsError EMAIL_NOT_VERIFIED
public static final CreateSharedLinkWithSettingsError SHARED_LINK_ALREADY_EXISTS
public static final CreateSharedLinkWithSettingsError ACCESS_DENIED
public CreateSharedLinkWithSettingsError.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 CreateSharedLinkWithSettingsError
.
public boolean isPath()
true
if this instance has the tag CreateSharedLinkWithSettingsError.Tag.PATH
,
false
otherwise.true
if this instance is tagged as CreateSharedLinkWithSettingsError.Tag.PATH
,
false
otherwise.public static CreateSharedLinkWithSettingsError path(LookupError value)
CreateSharedLinkWithSettingsError
that has
its tag set to CreateSharedLinkWithSettingsError.Tag.PATH
.
None
value
- value to assign to this instance.CreateSharedLinkWithSettingsError
with its
tag set to CreateSharedLinkWithSettingsError.Tag.PATH
.IllegalArgumentException
- if value
is null
.public LookupError getPathValue()
CreateSharedLinkWithSettingsError.Tag.PATH
.LookupError
value associated with this instance if
isPath()
is true
.IllegalStateException
- If isPath()
is false
.public boolean isEmailNotVerified()
true
if this instance has the tag CreateSharedLinkWithSettingsError.Tag.EMAIL_NOT_VERIFIED
, false
otherwise.true
if this instance is tagged as CreateSharedLinkWithSettingsError.Tag.EMAIL_NOT_VERIFIED
, false
otherwise.public boolean isSharedLinkAlreadyExists()
true
if this instance has the tag CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS
, false
otherwise.true
if this instance is tagged as CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS
, false
otherwise.public boolean isSettingsError()
true
if this instance has the tag CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR
, false
otherwise.true
if this instance is tagged as CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR
, false
otherwise.public static CreateSharedLinkWithSettingsError settingsError(SharedLinkSettingsError value)
CreateSharedLinkWithSettingsError
that has
its tag set to CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR
.
There is an error with the given settings
value
- value to assign to this instance.CreateSharedLinkWithSettingsError
with its
tag set to CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR
.IllegalArgumentException
- if value
is null
.public SharedLinkSettingsError getSettingsErrorValue()
This instance must be tagged as CreateSharedLinkWithSettingsError.Tag.SETTINGS_ERROR
.
SharedLinkSettingsError
value associated with this
instance if isSettingsError()
is true
.IllegalStateException
- If isSettingsError()
is false
.public boolean isAccessDenied()
true
if this instance has the tag CreateSharedLinkWithSettingsError.Tag.ACCESS_DENIED
, false
otherwise.true
if this instance is tagged as CreateSharedLinkWithSettingsError.Tag.ACCESS_DENIED
, false
otherwise.public String toStringMultiline()
The returned String may contain newlines.