Class BulkResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BulkResponse.Builder>
co.elastic.clients.elasticsearch.monitoring.BulkResponse.Builder
- All Implemented Interfaces:
WithJson<BulkResponse.Builder>
,ObjectBuilder<BulkResponse>
- Enclosing class:
- BulkResponse
public static class BulkResponse.Builder
extends WithJsonObjectBuilderBase<BulkResponse.Builder>
implements ObjectBuilder<BulkResponse>
Builder for
BulkResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aBulkResponse
.final BulkResponse.Builder
error
(ErrorCause value) API name:error
final BulkResponse.Builder
API name:error
final BulkResponse.Builder
errors
(boolean value) Required - True if there is was an errorfinal BulkResponse.Builder
ignored
(boolean value) Required - Was collection disabled?protected BulkResponse.Builder
self()
final BulkResponse.Builder
took
(long value) Required - API name:took
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
-
error
API name:error
-
error
API name:error
-
errors
Required - True if there is was an errorAPI name:
errors
-
ignored
Required - Was collection disabled?API name:
ignored
-
took
Required - API name:took
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<BulkResponse.Builder>
-
build
Builds aBulkResponse
.- Specified by:
build
in interfaceObjectBuilder<BulkResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-