public final class CreateSharedLinkWithSettingsError
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 |
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
LookupError |
getPathValue()
This instance must be tagged as
CreateSharedLinkWithSettingsError.Tag.PATH . |
SharedLinkSettingsError |
getSettingsErrorValue()
There is an error with the given settings.
|
SharedLinkAlreadyExistsMetadata |
getSharedLinkAlreadyExistsValue()
The shared link already exists.
|
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 . |
static CreateSharedLinkWithSettingsError |
sharedLinkAlreadyExists()
Returns an instance of
CreateSharedLinkWithSettingsError that has
its tag set to CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS . |
static CreateSharedLinkWithSettingsError |
sharedLinkAlreadyExists(SharedLinkAlreadyExistsMetadata value)
Returns an instance of
CreateSharedLinkWithSettingsError that has
its tag set to CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS . |
CreateSharedLinkWithSettingsError.Tag |
tag()
Returns the tag for this instance.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final CreateSharedLinkWithSettingsError EMAIL_NOT_VERIFIED
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
.java.lang.IllegalArgumentException
- if value
is null
.public LookupError getPathValue()
CreateSharedLinkWithSettingsError.Tag.PATH
.LookupError
value associated with this instance if
isPath()
is true
.java.lang.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 static CreateSharedLinkWithSettingsError sharedLinkAlreadyExists(SharedLinkAlreadyExistsMetadata value)
CreateSharedLinkWithSettingsError
that has
its tag set to CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS
.
The shared link already exists. You can call DbxUserSharingRequests.listSharedLinks(com.dropbox.core.v2.sharing.ListSharedLinksArg)
to get the existing link, or use
the provided metadata if it is returned.
value
- value to assign to this instance.CreateSharedLinkWithSettingsError
with its
tag set to CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS
.public static CreateSharedLinkWithSettingsError sharedLinkAlreadyExists()
CreateSharedLinkWithSettingsError
that has
its tag set to CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS
.
The shared link already exists. You can call DbxUserSharingRequests.listSharedLinks(com.dropbox.core.v2.sharing.ListSharedLinksArg)
to get the existing link, or use
the provided metadata if it is returned.
CreateSharedLinkWithSettingsError
with its
tag set to CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS
.public SharedLinkAlreadyExistsMetadata getSharedLinkAlreadyExistsValue()
DbxUserSharingRequests.listSharedLinks(com.dropbox.core.v2.sharing.ListSharedLinksArg)
to get the existing link, or use
the provided metadata if it is returned.
This instance must be tagged as CreateSharedLinkWithSettingsError.Tag.SHARED_LINK_ALREADY_EXISTS
.
SharedLinkAlreadyExistsMetadata
value associated with
this instance if isSharedLinkAlreadyExists()
is true
.java.lang.IllegalStateException
- If isSharedLinkAlreadyExists()
is
false
.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
.java.lang.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
.java.lang.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 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.