Class ListResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ListResponse.Builder>
co.elastic.clients.elasticsearch.search_application.ListResponse.Builder
- All Implemented Interfaces:
WithJson<ListResponse.Builder>
,ObjectBuilder<ListResponse>
- Enclosing class:
- ListResponse
public static class ListResponse.Builder
extends WithJsonObjectBuilderBase<ListResponse.Builder>
implements ObjectBuilder<ListResponse>
Builder for
ListResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aListResponse
.final ListResponse.Builder
count
(long value) Required - API name:count
final ListResponse.Builder
results
(SearchApplicationListItem value, SearchApplicationListItem... values) Required - API name:results
final ListResponse.Builder
Required - API name:results
final ListResponse.Builder
results
(List<SearchApplicationListItem> list) Required - API name:results
protected ListResponse.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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Required - API name:count
-
results
Required - API name:results
Adds all elements of
list
toresults
. -
results
public final ListResponse.Builder results(SearchApplicationListItem value, SearchApplicationListItem... values) Required - API name:results
Adds one or more values to
results
. -
results
public final ListResponse.Builder results(Function<SearchApplicationListItem.Builder, ObjectBuilder<SearchApplicationListItem>> fn) Required - API name:results
Adds a value to
results
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ListResponse.Builder>
-
build
Builds aListResponse
.- Specified by:
build
in interfaceObjectBuilder<ListResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-