public enum SharedLinkSettingsError extends java.lang.Enum<SharedLinkSettingsError>
Enum Constant and Description |
---|
INVALID_SETTINGS
The given settings are invalid (for example, all attributes of the
SharedLinkSettings are empty, the requested visibility is RequestedVisibility.PASSWORD but the SharedLinkSettings.getLinkPassword() is missing, SharedLinkSettings.getExpires() is set to the past, etc.). |
NOT_AUTHORIZED
User is not allowed to modify the settings of this link.
|
Modifier and Type | Method and Description |
---|---|
static SharedLinkSettingsError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SharedLinkSettingsError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SharedLinkSettingsError INVALID_SETTINGS
SharedLinkSettings
are empty, the requested visibility is RequestedVisibility.PASSWORD
but the SharedLinkSettings.getLinkPassword()
is missing, SharedLinkSettings.getExpires()
is set to the past, etc.).public static final SharedLinkSettingsError NOT_AUTHORIZED
RequestedVisibility.PUBLIC
as the SharedLinkSettings.getRequestedVisibility()
and cannot set SharedLinkSettings.getExpires()
.public static SharedLinkSettingsError[] values()
for (SharedLinkSettingsError c : SharedLinkSettingsError.values()) System.out.println(c);
public static SharedLinkSettingsError valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null