com.evernote.edam.type
Enum SharedNotebookInstanceRestrictions

java.lang.Object
  extended by java.lang.Enum<SharedNotebookInstanceRestrictions>
      extended by com.evernote.edam.type.SharedNotebookInstanceRestrictions
All Implemented Interfaces:
com.evernote.thrift.TEnum, java.io.Serializable, java.lang.Comparable<SharedNotebookInstanceRestrictions>

public enum SharedNotebookInstanceRestrictions
extends java.lang.Enum<SharedNotebookInstanceRestrictions>
implements com.evernote.thrift.TEnum

An enumeration describing restrictions on the domain of shared notebook instances that are valid for a given operation, as used, for example, in NotebookRestrictions. ONLY_JOINED_OR_PREVIEW: The domain consists of shared notebooks that "belong" to the recipient or still available for preview by any recipient. Shared notebooks that the recipient has joined (the username has already been assigned to our user) are in the domain. Additionally, shared notebooks that allow preview and have not yet been joined are in the domain. NO_SHARED_NOTEBOOKS: No shared notebooks are applicable to the operation.


Enum Constant Summary
NO_SHARED_NOTEBOOKS
           
ONLY_JOINED_OR_PREVIEW
           
 
Method Summary
static SharedNotebookInstanceRestrictions findByValue(int value)
          Find a the enum type by its integer value, as defined in the Thrift IDL.
 int getValue()
          Get the integer value of this enum value, as defined in the Thrift IDL.
static SharedNotebookInstanceRestrictions valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SharedNotebookInstanceRestrictions[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ONLY_JOINED_OR_PREVIEW

public static final SharedNotebookInstanceRestrictions ONLY_JOINED_OR_PREVIEW

NO_SHARED_NOTEBOOKS

public static final SharedNotebookInstanceRestrictions NO_SHARED_NOTEBOOKS
Method Detail

values

public static SharedNotebookInstanceRestrictions[] 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 (SharedNotebookInstanceRestrictions c : SharedNotebookInstanceRestrictions.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SharedNotebookInstanceRestrictions 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 name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.

Specified by:
getValue in interface com.evernote.thrift.TEnum

findByValue

public static SharedNotebookInstanceRestrictions findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.

Returns:
null if the value is not found.