com.evernote.edam.type
Class LinkedNotebook

java.lang.Object
  extended by com.evernote.edam.type.LinkedNotebook
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<LinkedNotebook>, org.apache.thrift.TBase<LinkedNotebook._Fields>

public class LinkedNotebook
extends java.lang.Object
implements org.apache.thrift.TBase<LinkedNotebook._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<LinkedNotebook>

A link in an users account that refers them to a public or individual share in another user's account.

id
the primary identify of a linked notebook only used for deleting.
shareName
the display name of the shared notebook. The link owner can change this.
username
the username of the user who owns the shared or public notebook
shardId
the shard ID of the notebook if the notebook is not public
shareKey
the secret key that provides access to the shared notebook
uri
the identifier of the public notebook

See Also:
Serialized Form

Nested Class Summary
static class LinkedNotebook._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<LinkedNotebook._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
LinkedNotebook()
           
LinkedNotebook(LinkedNotebook other)
          Performs a deep copy on other.
 
Method Summary
 LinkedNotebook clone()
          Deprecated. 
 int compareTo(LinkedNotebook other)
           
 LinkedNotebook deepCopy()
           
 boolean equals(LinkedNotebook that)
           
 boolean equals(java.lang.Object that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(LinkedNotebook._Fields field)
           
 long getId()
           
 java.lang.String getShardId()
           
 java.lang.String getShareKey()
           
 java.lang.String getShareName()
           
 java.lang.String getUri()
           
 java.lang.String getUsername()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(LinkedNotebook._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetId()
          Returns true if field id is set (has been asigned a value) and false otherwise
 boolean isSetShardId()
          Returns true if field shardId is set (has been asigned a value) and false otherwise
 boolean isSetShareKey()
          Returns true if field shareKey is set (has been asigned a value) and false otherwise
 boolean isSetShareName()
          Returns true if field shareName is set (has been asigned a value) and false otherwise
 boolean isSetUri()
          Returns true if field uri is set (has been asigned a value) and false otherwise
 boolean isSetUsername()
          Returns true if field username is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(LinkedNotebook._Fields field, java.lang.Object value)
           
 void setId(long id)
           
 void setIdIsSet(boolean value)
           
 void setShardId(java.lang.String shardId)
           
 void setShardIdIsSet(boolean value)
           
 void setShareKey(java.lang.String shareKey)
           
 void setShareKeyIsSet(boolean value)
           
 void setShareName(java.lang.String shareName)
           
 void setShareNameIsSet(boolean value)
           
 void setUri(java.lang.String uri)
           
 void setUriIsSet(boolean value)
           
 void setUsername(java.lang.String username)
           
 void setUsernameIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetId()
           
 void unsetShardId()
           
 void unsetShareKey()
           
 void unsetShareName()
           
 void unsetUri()
           
 void unsetUsername()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<LinkedNotebook._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

LinkedNotebook

public LinkedNotebook()

LinkedNotebook

public LinkedNotebook(LinkedNotebook other)
Performs a deep copy on other.

Method Detail

deepCopy

public LinkedNotebook deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<LinkedNotebook._Fields>

clone

@Deprecated
public LinkedNotebook clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getId

public long getId()

setId

public void setId(long id)

unsetId

public void unsetId()

isSetId

public boolean isSetId()
Returns true if field id is set (has been asigned a value) and false otherwise


setIdIsSet

public void setIdIsSet(boolean value)

getShareName

public java.lang.String getShareName()

setShareName

public void setShareName(java.lang.String shareName)

unsetShareName

public void unsetShareName()

isSetShareName

public boolean isSetShareName()
Returns true if field shareName is set (has been asigned a value) and false otherwise


setShareNameIsSet

public void setShareNameIsSet(boolean value)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

unsetUsername

public void unsetUsername()

isSetUsername

public boolean isSetUsername()
Returns true if field username is set (has been asigned a value) and false otherwise


setUsernameIsSet

public void setUsernameIsSet(boolean value)

getShardId

public java.lang.String getShardId()

setShardId

public void setShardId(java.lang.String shardId)

unsetShardId

public void unsetShardId()

isSetShardId

public boolean isSetShardId()
Returns true if field shardId is set (has been asigned a value) and false otherwise


setShardIdIsSet

public void setShardIdIsSet(boolean value)

getShareKey

public java.lang.String getShareKey()

setShareKey

public void setShareKey(java.lang.String shareKey)

unsetShareKey

public void unsetShareKey()

isSetShareKey

public boolean isSetShareKey()
Returns true if field shareKey is set (has been asigned a value) and false otherwise


setShareKeyIsSet

public void setShareKeyIsSet(boolean value)

getUri

public java.lang.String getUri()

setUri

public void setUri(java.lang.String uri)

unsetUri

public void unsetUri()

isSetUri

public boolean isSetUri()
Returns true if field uri is set (has been asigned a value) and false otherwise


setUriIsSet

public void setUriIsSet(boolean value)

setFieldValue

public void setFieldValue(LinkedNotebook._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<LinkedNotebook._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<LinkedNotebook._Fields>

getFieldValue

public java.lang.Object getFieldValue(LinkedNotebook._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<LinkedNotebook._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<LinkedNotebook._Fields>

isSet

public boolean isSet(LinkedNotebook._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<LinkedNotebook._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<LinkedNotebook._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(LinkedNotebook that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(LinkedNotebook other)
Specified by:
compareTo in interface java.lang.Comparable<LinkedNotebook>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<LinkedNotebook._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<LinkedNotebook._Fields>
Throws:
org.apache.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException