Class SlackAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SlackAction.Builder>
co.elastic.clients.elasticsearch.watcher.SlackAction.Builder
- All Implemented Interfaces:
WithJson<SlackAction.Builder>,ObjectBuilder<SlackAction>
- Enclosing class:
- SlackAction
public static class SlackAction.Builder extends WithJsonObjectBuilderBase<SlackAction.Builder> implements ObjectBuilder<SlackAction>
Builder for
SlackAction.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SlackAction.Builderaccount(java.lang.String value)API name:accountSlackActionbuild()Builds aSlackAction.SlackAction.Buildermessage(SlackMessage value)Required - API name:messageSlackAction.Buildermessage(java.util.function.Function<SlackMessage.Builder,ObjectBuilder<SlackMessage>> fn)Required - API name:messageprotected SlackAction.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
account
API name:account -
message
Required - API name:message -
message
public final SlackAction.Builder message(java.util.function.Function<SlackMessage.Builder,ObjectBuilder<SlackMessage>> fn)Required - API name:message -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SlackAction.Builder>
-
build
Builds aSlackAction.- Specified by:
buildin interfaceObjectBuilder<SlackAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-