Class GetSynonymRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetSynonymRequest.Builder>
co.elastic.clients.elasticsearch.synonyms.GetSynonymRequest.Builder
- All Implemented Interfaces:
WithJson<GetSynonymRequest.Builder>
,ObjectBuilder<GetSynonymRequest>
- Enclosing class:
- GetSynonymRequest
public static class GetSynonymRequest.Builder
extends RequestBase.AbstractBuilder<GetSynonymRequest.Builder>
implements ObjectBuilder<GetSynonymRequest>
Builder for
GetSynonymRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetSynonymRequest
.The starting offset for query rules to retrieve.Required - The synonyms set identifier to retrieve.protected GetSynonymRequest.Builder
self()
The max number of query rules to retrieve.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
-
from
The starting offset for query rules to retrieve.API name:
from
-
id
Required - The synonyms set identifier to retrieve.API name:
id
-
size
The max number of query rules to retrieve.API name:
size
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetSynonymRequest.Builder>
-
build
Builds aGetSynonymRequest
.- Specified by:
build
in interfaceObjectBuilder<GetSynonymRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-