com.evernote.edam.type
Class BusinessUserInfo

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

public class BusinessUserInfo
extends java.lang.Object
implements com.evernote.thrift.TBase<BusinessUserInfo>, java.io.Serializable, java.lang.Cloneable

This structure is used to provide information about an Evernote Business membership, for members who are part of a business.

businessId
The ID of the Evernote Business account that the user is a member of.
businessName
The human-readable name of the Evernote Business account that the user is a member of.
role
The role of the user within the Evernote Business account that they are a member of.
email
An e-mail address that will be used by the service in the context of your Evernote Business activities. For example, this e-mail address will be used when you e-mail a business note, when you update notes in the account of your business, etc. The business e-mail cannot be used for identification purposes such as for logging into the service.

See Also:
Serialized Form

Constructor Summary
BusinessUserInfo()
           
BusinessUserInfo(BusinessUserInfo other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(BusinessUserInfo other)
           
 BusinessUserInfo deepCopy()
          Creates a deep copy of the object.
 boolean equals(BusinessUserInfo that)
           
 boolean equals(java.lang.Object that)
           
 int getBusinessId()
           
 java.lang.String getBusinessName()
           
 java.lang.String getEmail()
           
 BusinessUserRole getRole()
           
 int hashCode()
           
 boolean isSetBusinessId()
          Returns true if field businessId is set (has been asigned a value) and false otherwise
 boolean isSetBusinessName()
          Returns true if field businessName is set (has been asigned a value) and false otherwise
 boolean isSetEmail()
          Returns true if field email is set (has been asigned a value) and false otherwise
 boolean isSetRole()
          Returns true if field role is set (has been asigned a value) and false otherwise
 void read(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 void setBusinessId(int businessId)
           
 void setBusinessIdIsSet(boolean value)
           
 void setBusinessName(java.lang.String businessName)
           
 void setBusinessNameIsSet(boolean value)
           
 void setEmail(java.lang.String email)
           
 void setEmailIsSet(boolean value)
           
 void setRole(BusinessUserRole role)
           
 void setRoleIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetBusinessId()
           
 void unsetBusinessName()
           
 void unsetEmail()
           
 void unsetRole()
           
 void validate()
           
 void write(com.evernote.thrift.protocol.TProtocol oprot)
          Writes the object to the given protocol.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusinessUserInfo

public BusinessUserInfo()

BusinessUserInfo

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

Method Detail

deepCopy

public BusinessUserInfo deepCopy()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<BusinessUserInfo>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<BusinessUserInfo>

getBusinessId

public int getBusinessId()

setBusinessId

public void setBusinessId(int businessId)

unsetBusinessId

public void unsetBusinessId()

isSetBusinessId

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


setBusinessIdIsSet

public void setBusinessIdIsSet(boolean value)

getBusinessName

public java.lang.String getBusinessName()

setBusinessName

public void setBusinessName(java.lang.String businessName)

unsetBusinessName

public void unsetBusinessName()

isSetBusinessName

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


setBusinessNameIsSet

public void setBusinessNameIsSet(boolean value)

getRole

public BusinessUserRole getRole()
See Also:
BusinessUserRole

setRole

public void setRole(BusinessUserRole role)
See Also:
BusinessUserRole

unsetRole

public void unsetRole()

isSetRole

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


setRoleIsSet

public void setRoleIsSet(boolean value)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

unsetEmail

public void unsetEmail()

isSetEmail

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


setEmailIsSet

public void setEmailIsSet(boolean value)

equals

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

equals

public boolean equals(BusinessUserInfo that)

hashCode

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

compareTo

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

read

public void read(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<BusinessUserInfo>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<BusinessUserInfo>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

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

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException