Class Email
java.lang.Object
co.elastic.clients.elasticsearch.watcher.Email
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
EmailAction
@JsonpDeserializable public class Email extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classEmail.AbstractBuilder<BuilderT extends Email.AbstractBuilder<BuilderT>>static classEmail.BuilderBuilder forEmail. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Email>_DESERIALIZERJson deserializer forEmail -
Constructor Summary
Constructors Modifier Constructor Description protectedEmail(Email.AbstractBuilder<?> builder) -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,EmailAttachment>attachments()API name:attachmentsjava.util.List<java.lang.String>bcc()API name:bccEmailBodybody()API name:bodyjava.util.List<java.lang.String>cc()API name:ccstatic EmailemailOf(java.util.function.Function<Email.Builder,ObjectBuilder<Email>> fn)java.lang.Stringfrom()API name:fromjava.lang.Stringid()API name:idEmailPrioritypriority()API name:priorityjava.util.List<java.lang.String>replyTo()API name:reply_toDateTimesentDate()API name:sent_datevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <BuilderT extends Email.AbstractBuilder<BuilderT>>
voidsetupEmailDeserializer(ObjectDeserializer<BuilderT> op)java.lang.Stringsubject()Required - API name:subjectjava.util.List<java.lang.String>to()Required - API name:tojava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forEmail
-
-
Constructor Details
-
Email
-
-
Method Details
-
emailOf
-
id
@Nullable public final java.lang.String id()API name:id -
bcc
public final java.util.List<java.lang.String> bcc()API name:bcc -
body
API name:body -
cc
public final java.util.List<java.lang.String> cc()API name:cc -
from
@Nullable public final java.lang.String from()API name:from -
priority
API name:priority -
replyTo
public final java.util.List<java.lang.String> replyTo()API name:reply_to -
sentDate
API name:sent_date -
subject
public final java.lang.String subject()Required - API name:subject -
to
public final java.util.List<java.lang.String> to()Required - API name:to -
attachments
API name:attachments -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupEmailDeserializer
protected static <BuilderT extends Email.AbstractBuilder<BuilderT>> void setupEmailDeserializer(ObjectDeserializer<BuilderT> op)
-