Package co.elastic.clients.base
Class DictionaryResponse<TKey,TValue>
java.lang.Object
co.elastic.clients.base.DictionaryResponse<TKey,TValue>
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
DeletePrivilegesResponse,FlushSyncedResponse,GetAliasResponse,GetFieldMappingResponse,GetLifecycleResponse,GetLifecycleResponse,GetMappingResponse,GetPipelineResponse,GetPrivilegesResponse,GetRepositoryResponse,GetResponse,GetRoleMappingResponse,GetRoleResponse,GetRollupCapsResponse,GetRollupIndexCapsResponse,GetServiceAccountsResponse,GetSettingsResponse,GetTemplateResponse,GetUserResponse,PutPrivilegesResponse,RecoveryResponse,RemoteInfoResponse
public abstract class DictionaryResponse<TKey,TValue> extends java.lang.Object implements JsonpSerializable
Base class for dictionary responses, i.e. a series of key/value pairs.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDictionaryResponse.AbstractBuilder<TKey,TValue,BuilderT extends DictionaryResponse.AbstractBuilder<TKey,TValue,BuilderT>> -
Constructor Summary
Constructors Modifier Constructor Description protectedDictionaryResponse(DictionaryResponse.AbstractBuilder<TKey,TValue,?> builder) -
Method Summary
Modifier and Type Method Description TValueget(java.lang.String key)java.util.Map<java.lang.String,TValue>result()Returns the response as a map.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this value to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <TKey, TValue, BuilderT extends DictionaryResponse.AbstractBuilder<TKey, TValue, BuilderT>>
voidsetupDictionaryResponseDeserializer(DelegatingDeserializer<BuilderT> op, JsonpDeserializer<TKey> tKeyParser, JsonpDeserializer<TValue> tValueParser)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DictionaryResponse
-
-
Method Details
-
result
Returns the response as a map. -
get
-
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupDictionaryResponseDeserializer
protected static <TKey, TValue, BuilderT extends DictionaryResponse.AbstractBuilder<TKey, TValue, BuilderT>> void setupDictionaryResponseDeserializer(DelegatingDeserializer<BuilderT> op, JsonpDeserializer<TKey> tKeyParser, JsonpDeserializer<TValue> tValueParser)
-