Class GetAliasResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetAliasResponse.Builder>
co.elastic.clients.elasticsearch.indices.GetAliasResponse.Builder
- All Implemented Interfaces:
WithJson<GetAliasResponse.Builder>
,ObjectBuilder<GetAliasResponse>
- Enclosing class:
- GetAliasResponse
public static class GetAliasResponse.Builder
extends WithJsonObjectBuilderBase<GetAliasResponse.Builder>
implements ObjectBuilder<GetAliasResponse>
Builder for
GetAliasResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetAliasResponse
.final GetAliasResponse.Builder
result
(String key, IndexAliases value) Required - Response value.final GetAliasResponse.Builder
Required - Response value.final GetAliasResponse.Builder
result
(Map<String, IndexAliases> map) Required - Response value.protected GetAliasResponse.Builder
self()
withJson
(jakarta.json.stream.JsonParser parser, JsonpMapper mapper) Sets additional properties values on this object by reading from a JSON input.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
result
Required - Response value.Adds all entries of
map
toresult
. -
result
Required - Response value.Adds an entry to
result
. -
result
public final GetAliasResponse.Builder result(String key, Function<IndexAliases.Builder, ObjectBuilder<IndexAliases>> fn) Required - Response value.Adds an entry to
result
using a builder lambda. -
withJson
Description copied from interface:WithJson
Sets additional properties values on this object by reading from a JSON input.This is a "partial deserialization": properties that were already set keep their value if they're not present in the JSON input, and properties can also be set after having called this method, including overriding those read from the JSON input.
This low level variant of
withJson
gives full control on the json parser and object mapper. Most of the time usingWithJson.withJson(Reader)
andWithJson.withJson(InputStream)
will be more convenient.- Specified by:
withJson
in interfaceWithJson<GetAliasResponse.Builder>
- Overrides:
withJson
in classWithJsonObjectBuilderBase<GetAliasResponse.Builder>
- Parameters:
parser
- the JSONP parsermapper
- the JSONP mapper used to deserialize values and nested objects- Returns:
- this object
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<GetAliasResponse.Builder>
-
build
Builds aGetAliasResponse
.- Specified by:
build
in interfaceObjectBuilder<GetAliasResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-