Class HttpInput.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HttpInput.Builder>
co.elastic.clients.elasticsearch.watcher.HttpInput.Builder
- All Implemented Interfaces:
WithJson<HttpInput.Builder>
,ObjectBuilder<HttpInput>
- Enclosing class:
- HttpInput
public static class HttpInput.Builder extends WithJsonObjectBuilderBase<HttpInput.Builder> implements ObjectBuilder<HttpInput>
Builder for
HttpInput
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HttpInput
build()
Builds aHttpInput
.HttpInput.Builder
extract(java.lang.String value, java.lang.String... values)
API name:extract
HttpInput.Builder
extract(java.util.List<java.lang.String> list)
API name:extract
HttpInput.Builder
request(HttpInputRequestDefinition value)
API name:request
HttpInput.Builder
request(java.util.function.Function<HttpInputRequestDefinition.Builder,ObjectBuilder<HttpInputRequestDefinition>> fn)
API name:request
HttpInput.Builder
responseContentType(ResponseContentType value)
API name:response_content_type
protected HttpInput.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
extract
API name:extract
Adds all elements of
list
toextract
. -
extract
API name:extract
Adds one or more values to
extract
. -
request
API name:request
-
request
public final HttpInput.Builder request(java.util.function.Function<HttpInputRequestDefinition.Builder,ObjectBuilder<HttpInputRequestDefinition>> fn)API name:request
-
responseContentType
API name:response_content_type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<HttpInput.Builder>
-
build
Builds aHttpInput
.- Specified by:
build
in interfaceObjectBuilder<HttpInput>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-