Class Http.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.Http.Builder
- All Implemented Interfaces:
ObjectBuilder<Http>
- Enclosing class:
- Http
public static class Http.Builder extends ObjectBuilderBase implements ObjectBuilder<Http>
Builder for
Http
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Http
build()
Builds aHttp
.Http.Builder
clients(Client value, Client... values)
API name:clients
Http.Builder
clients(java.util.function.Function<Client.Builder,ObjectBuilder<Client>> fn)
API name:clients
Http.Builder
clients(java.util.List<Client> list)
API name:clients
Http.Builder
currentOpen(java.lang.Integer value)
API name:current_open
Http.Builder
totalOpened(java.lang.Long value)
API name:total_opened
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
-
currentOpen
API name:current_open
-
totalOpened
API name:total_opened
-
clients
API name:clients
Adds all elements of
list
toclients
. -
clients
API name:clients
Adds one or more values to
clients
. -
clients
public final Http.Builder clients(java.util.function.Function<Client.Builder,ObjectBuilder<Client>> fn)API name:clients
Adds a value to
clients
using a builder lambda. -
build
Builds aHttp
.- Specified by:
build
in interfaceObjectBuilder<Http>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-