Class ActionWebhook.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ActionWebhook.Builder>
co.elastic.clients.elasticsearch.watcher.ActionWebhook.Builder
- All Implemented Interfaces:
WithJson<ActionWebhook.Builder>,ObjectBuilder<ActionWebhook>
- Enclosing class:
- ActionWebhook
public static class ActionWebhook.Builder extends WithJsonObjectBuilderBase<ActionWebhook.Builder> implements ObjectBuilder<ActionWebhook>
Builder for
ActionWebhook.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ActionWebhookbuild()Builds aActionWebhook.ActionWebhook.Builderhost(java.lang.String value)Required - API name:hostActionWebhook.Builderport(int value)Required - API name:portprotected ActionWebhook.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
-
host
Required - API name:host -
port
Required - API name:port -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ActionWebhook.Builder>
-
build
Builds aActionWebhook.- Specified by:
buildin interfaceObjectBuilder<ActionWebhook>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-