Class FieldCapsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FieldCapsResponse.Builder>
co.elastic.clients.elasticsearch.core.FieldCapsResponse.Builder
- All Implemented Interfaces:
WithJson<FieldCapsResponse.Builder>
,ObjectBuilder<FieldCapsResponse>
- Enclosing class:
- FieldCapsResponse
public static class FieldCapsResponse.Builder
extends WithJsonObjectBuilderBase<FieldCapsResponse.Builder>
implements ObjectBuilder<FieldCapsResponse>
Builder for
FieldCapsResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aFieldCapsResponse
.fields
(String key, Map<String, FieldCapability> value) Required - API name:fields
Required - API name:fields
Required - The list of indices where this field has the same type family, or null if all indices have the same type family for the field.Required - The list of indices where this field has the same type family, or null if all indices have the same type family for the field.protected FieldCapsResponse.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
-
indices
Required - The list of indices where this field has the same type family, or null if all indices have the same type family for the field.API name:
indices
Adds all elements of
list
toindices
. -
indices
Required - The list of indices where this field has the same type family, or null if all indices have the same type family for the field.API name:
indices
Adds one or more values to
indices
. -
fields
Required - API name:fields
Adds all entries of
map
tofields
. -
fields
Required - API name:fields
Adds an entry to
fields
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<FieldCapsResponse.Builder>
-
build
Builds aFieldCapsResponse
.- Specified by:
build
in interfaceObjectBuilder<FieldCapsResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-