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