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:fieldsRequired - API name:fieldsRequired - 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.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
indicesAdds all elements of
listtoindices. -
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:
indicesAdds one or more values to
indices. -
fields
Required - API name:fieldsAdds all entries of
maptofields. -
fields
Required - API name:fieldsAdds an entry to
fields. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FieldCapsResponse.Builder>
-
build
Builds aFieldCapsResponse.- Specified by:
buildin interfaceObjectBuilder<FieldCapsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-