Package dev.vality.damsel.message_sender
Class MessageMail
java.lang.Object
dev.vality.damsel.message_sender.MessageMail
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<MessageMail>,org.apache.thrift.TBase<MessageMail,MessageMail._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-10-25")
public class MessageMail
extends Object
implements org.apache.thrift.TBase<MessageMail,MessageMail._Fields>, Serializable, Cloneable, Comparable<MessageMail>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageMail._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description List<MessageAttachment>attachmentsStringfrom_emailMailBodymail_bodystatic Map<MessageMail._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringsubjectList<String>to_emails -
Constructor Summary
Constructors Constructor Description MessageMail()MessageMail(MailBody mail_body, String from_email, List<String> to_emails)MessageMail(MessageMail other)Performs a deep copy on other. -
Method Summary
Modifier and Type Method Description voidaddToAttachments(MessageAttachment elem)voidaddToToEmails(String elem)voidclear()intcompareTo(MessageMail other)MessageMaildeepCopy()booleanequals(MessageMail that)booleanequals(Object that)MessageMail._FieldsfieldForId(int fieldId)List<MessageAttachment>getAttachments()Iterator<MessageAttachment>getAttachmentsIterator()intgetAttachmentsSize()Map<MessageMail._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()MessageMail._Fields[]getFields()ObjectgetFieldValue(MessageMail._Fields field)StringgetFromEmail()MailBodygetMailBody()StringgetSubject()List<String>getToEmails()Iterator<String>getToEmailsIterator()intgetToEmailsSize()inthashCode()booleanisSet(MessageMail._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAttachments()Returns true if field attachments is set (has been assigned a value) and false otherwisebooleanisSetFromEmail()Returns true if field from_email is set (has been assigned a value) and false otherwisebooleanisSetMailBody()Returns true if field mail_body is set (has been assigned a value) and false otherwisebooleanisSetSubject()Returns true if field subject is set (has been assigned a value) and false otherwisebooleanisSetToEmails()Returns true if field to_emails is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)MessageMailsetAttachments(List<MessageAttachment> attachments)voidsetAttachmentsIsSet(boolean value)voidsetFieldValue(MessageMail._Fields field, Object value)MessageMailsetFromEmail(String from_email)voidsetFromEmailIsSet(boolean value)MessageMailsetMailBody(MailBody mail_body)voidsetMailBodyIsSet(boolean value)MessageMailsetSubject(String subject)voidsetSubjectIsSet(boolean value)MessageMailsetToEmails(List<String> to_emails)voidsetToEmailsIsSet(boolean value)StringtoString()voidunsetAttachments()voidunsetFromEmail()voidunsetMailBody()voidunsetSubject()voidunsetToEmails()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
mail_body
-
subject
-
from_email
-
to_emails
-
attachments
-
metaDataMap
-
-
Constructor Details
-
MessageMail
public MessageMail() -
MessageMail
-
MessageMail
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
getMailBody
-
setMailBody
-
unsetMailBody
public void unsetMailBody() -
isSetMailBody
public boolean isSetMailBody()Returns true if field mail_body is set (has been assigned a value) and false otherwise -
setMailBodyIsSet
public void setMailBodyIsSet(boolean value) -
getSubject
-
setSubject
-
unsetSubject
public void unsetSubject() -
isSetSubject
public boolean isSetSubject()Returns true if field subject is set (has been assigned a value) and false otherwise -
setSubjectIsSet
public void setSubjectIsSet(boolean value) -
getFromEmail
-
setFromEmail
-
unsetFromEmail
public void unsetFromEmail() -
isSetFromEmail
public boolean isSetFromEmail()Returns true if field from_email is set (has been assigned a value) and false otherwise -
setFromEmailIsSet
public void setFromEmailIsSet(boolean value) -
getToEmailsSize
public int getToEmailsSize() -
getToEmailsIterator
-
addToToEmails
-
getToEmails
-
setToEmails
-
unsetToEmails
public void unsetToEmails() -
isSetToEmails
public boolean isSetToEmails()Returns true if field to_emails is set (has been assigned a value) and false otherwise -
setToEmailsIsSet
public void setToEmailsIsSet(boolean value) -
getAttachmentsSize
public int getAttachmentsSize() -
getAttachmentsIterator
-
addToAttachments
-
getAttachments
-
setAttachments
-
unsetAttachments
public void unsetAttachments() -
isSetAttachments
public boolean isSetAttachments()Returns true if field attachments is set (has been assigned a value) and false otherwise -
setAttachmentsIsSet
public void setAttachmentsIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<MessageMail>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<MessageMail,MessageMail._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-