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 class
SlackMessage.Builder
Builder forSlackMessage
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SlackMessage>
_DESERIALIZER
Json deserializer forSlackMessage
-
Method Summary
Modifier and Type Method Description java.util.List<SlackAttachment>
attachments()
Required - API name:attachments
SlackDynamicAttachment
dynamicAttachments()
API name:dynamic_attachments
java.lang.String
from()
Required - API name:from
java.lang.String
icon()
API name:icon
static SlackMessage
of(java.util.function.Function<SlackMessage.Builder,ObjectBuilder<SlackMessage>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupSlackMessageDeserializer(ObjectDeserializer<SlackMessage.Builder> op)
java.lang.String
text()
Required - API name:text
java.util.List<java.lang.String>
to()
Required - API name:to
java.lang.String
toString()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupSlackMessageDeserializer
-