Class SlackMessage
java.lang.Object
co.elastic.clients.elasticsearch.watcher.SlackMessage
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class SlackMessage extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlackMessage.BuilderBuilder forSlackMessage. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SlackMessage>_DESERIALIZERJson deserializer forSlackMessage -
Method Summary
Modifier and Type Method Description java.util.List<SlackAttachment>attachments()Required - API name:attachmentsSlackDynamicAttachmentdynamicAttachments()API name:dynamic_attachmentsjava.lang.Stringfrom()Required - API name:fromjava.lang.Stringicon()API name:iconstatic SlackMessageof(java.util.function.Function<SlackMessage.Builder,ObjectBuilder<SlackMessage>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSlackMessageDeserializer(ObjectDeserializer<SlackMessage.Builder> op)java.lang.Stringtext()Required - API name:textjava.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 forSlackMessage
-
-
Method Details
-
of
public static SlackMessage of(java.util.function.Function<SlackMessage.Builder,ObjectBuilder<SlackMessage>> fn) -
attachments
Required - API name:attachments -
dynamicAttachments
API name:dynamic_attachments -
from
public final java.lang.String from()Required - API name:from -
icon
@Nullable public final java.lang.String icon()API name:icon -
text
public final java.lang.String text()Required - API name:text -
to
public final java.util.List<java.lang.String> to()Required - API name:to -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupSlackMessageDeserializer
-