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