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

public class LinkedNotebook
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

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

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
guid
The unique identifier of this linked notebook. Will be set whenever a resource is retrieved from the service, but may be null when a client is creating a resource.
Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
Regex: EDAM_GUID_REGEX
updateSequenceNum
A number identifying the last transaction to modify the state of this object. The USN values are sequential within an account, and can be used to compare the order of modifications within the service.

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,FieldMetaData> metaDataMap
           
 
Constructor Summary
LinkedNotebook()
           
LinkedNotebook(LinkedNotebook other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(LinkedNotebook other)
           
 LinkedNotebook deepCopy()
           
 boolean equals(LinkedNotebook that)
           
 boolean equals(java.lang.Object that)
           
 LinkedNotebook._Fields fieldForId(int fieldId)
           
 java.lang.Object getFieldValue(LinkedNotebook._Fields field)
           
 java.lang.String getGuid()
           
 java.lang.String getShardId()
           
 java.lang.String getShareKey()
           
 java.lang.String getShareName()
           
 int getUpdateSequenceNum()
           
 java.lang.String getUri()
           
 java.lang.String getUsername()
           
 int hashCode()
           
 boolean isSet(LinkedNotebook._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetGuid()
          Returns true if field guid 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 isSetUpdateSequenceNum()
          Returns true if field updateSequenceNum 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(TProtocol iprot)
           
 void setFieldValue(LinkedNotebook._Fields field, java.lang.Object value)
           
 void setGuid(java.lang.String guid)
           
 void setGuidIsSet(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 setUpdateSequenceNum(int updateSequenceNum)
           
 void setUpdateSequenceNumIsSet(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 unsetGuid()
           
 void unsetShardId()
           
 void unsetShareKey()
           
 void unsetShareName()
           
 void unsetUpdateSequenceNum()
           
 void unsetUri()
           
 void unsetUsername()
           
 void validate()
           
 void write(TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

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

LinkedNotebook

public LinkedNotebook()

LinkedNotebook

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

Method Detail

deepCopy

public LinkedNotebook deepCopy()

clear

public void clear()

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)

getGuid

public java.lang.String getGuid()

setGuid

public void setGuid(java.lang.String guid)

unsetGuid

public void unsetGuid()

isSetGuid

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


setGuidIsSet

public void setGuidIsSet(boolean value)

getUpdateSequenceNum

public int getUpdateSequenceNum()

setUpdateSequenceNum

public void setUpdateSequenceNum(int updateSequenceNum)

unsetUpdateSequenceNum

public void unsetUpdateSequenceNum()

isSetUpdateSequenceNum

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


setUpdateSequenceNumIsSet

public void setUpdateSequenceNumIsSet(boolean value)

setFieldValue

public void setFieldValue(LinkedNotebook._Fields field,
                          java.lang.Object value)

getFieldValue

public java.lang.Object getFieldValue(LinkedNotebook._Fields field)

isSet

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


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)

fieldForId

public LinkedNotebook._Fields fieldForId(int fieldId)

read

public void read(TProtocol iprot)
          throws TException
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Throws:
TException

toString

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

validate

public void validate()
              throws TException
Throws:
TException