Package com.dropbox.core.v2.sharing
Enum SharedLinkSettingsError
- java.lang.Object
-
- java.lang.Enum<SharedLinkSettingsError>
-
- com.dropbox.core.v2.sharing.SharedLinkSettingsError
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SharedLinkSettingsError>
public enum SharedLinkSettingsError extends java.lang.Enum<SharedLinkSettingsError>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_SETTINGS
The given settings are invalid (for example, all attributes of theSharedLinkSettings
are empty, the requested visibility isRequestedVisibility.PASSWORD
but theSharedLinkSettings.getLinkPassword()
is missing,SharedLinkSettings.getExpires()
is set to the past, etc.).NOT_AUTHORIZED
User is not allowed to modify the settings of this link.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
INVALID_SETTINGS
public static final SharedLinkSettingsError INVALID_SETTINGS
The given settings are invalid (for example, all attributes of theSharedLinkSettings
are empty, the requested visibility isRequestedVisibility.PASSWORD
but theSharedLinkSettings.getLinkPassword()
is missing,SharedLinkSettings.getExpires()
is set to the past, etc.).
-
NOT_AUTHORIZED
public static final SharedLinkSettingsError NOT_AUTHORIZED
User is not allowed to modify the settings of this link. Note that basic users can only setRequestedVisibility.PUBLIC
as theSharedLinkSettings.getRequestedVisibility()
and cannot setSharedLinkSettings.getExpires()
.
-
-
Method Detail
-
values
public static SharedLinkSettingsError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SharedLinkSettingsError c : SharedLinkSettingsError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SharedLinkSettingsError valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-