Class EmailAttachment
java.lang.Object
co.elastic.clients.elasticsearch.watcher.EmailAttachment
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<EmailAttachment.Kind,Object>
@JsonpDeserializable
public class EmailAttachment
extends Object
implements TaggedUnion<EmailAttachment.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final EmailAttachment.Kind_kind()Get the of the kind of variant held by this object.data()Get thedatavariant value.http()Get thehttpvariant value.booleanisData()Is this variant instance of kinddata?booleanisHttp()Is this variant instance of kindhttp?booleanIs this variant instance of kindreporting?static EmailAttachmentGet thereportingvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
EmailAttachment
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<EmailAttachment.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<EmailAttachment.Kind,Object>
-
of
public static EmailAttachment of(Function<EmailAttachment.Builder, ObjectBuilder<EmailAttachment>> fn) -
isHttp
public boolean isHttp()Is this variant instance of kindhttp? -
http
Get thehttpvariant value.- Throws:
IllegalStateException- if the current variant is not of thehttpkind.
-
isReporting
public boolean isReporting()Is this variant instance of kindreporting? -
reporting
Get thereportingvariant value.- Throws:
IllegalStateException- if the current variant is not of thereportingkind.
-
isData
public boolean isData()Is this variant instance of kinddata? -
data
Get thedatavariant value.- Throws:
IllegalStateException- if the current variant is not of thedatakind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupEmailAttachmentDeserializer
protected static void setupEmailAttachmentDeserializer(ObjectDeserializer<EmailAttachment.Builder> op)
-