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.19.0)",
date="2024-08-02")
public class MessageMail
extends Object
implements org.apache.thrift.TBase<MessageMail,MessageMail._Fields>, Serializable, Cloneable, Comparable<MessageMail>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<MessageMail._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionMessageMail(MailBody mail_body, String from_email, List<String> to_emails) MessageMail(MessageMail other) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddToToEmails(String elem) voidclear()intcompareTo(MessageMail other) deepCopy()booleanequals(MessageMail that) booleanfieldForId(int fieldId) intMap<MessageMail._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldValue(MessageMail._Fields field) intinthashCode()booleanisSet(MessageMail._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field attachments is set (has been assigned a value) and false otherwisebooleanReturns true if field from_email is set (has been assigned a value) and false otherwisebooleanReturns true if field mail_body is set (has been assigned a value) and false otherwisebooleanReturns true if field subject is set (has been assigned a value) and false otherwisebooleanReturns true if field to_emails is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setAttachments(List<MessageAttachment> attachments) voidsetAttachmentsIsSet(boolean value) voidsetFieldValue(MessageMail._Fields field, Object value) setFromEmail(String from_email) voidsetFromEmailIsSet(boolean value) setMailBody(MailBody mail_body) voidsetMailBodyIsSet(boolean value) setSubject(String subject) voidsetSubjectIsSet(boolean value) setToEmails(List<String> to_emails) voidsetToEmailsIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvalidate()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
-