Class GetCategoriesResponse
java.lang.Object
co.elastic.clients.elasticsearch.ml.GetCategoriesResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GetCategoriesResponse extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetCategoriesResponse.Builder
Builder forGetCategoriesResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GetCategoriesResponse>
_DESERIALIZER
Json deserializer forGetCategoriesResponse
-
Method Summary
Modifier and Type Method Description java.util.List<Category>
categories()
Required - API name:categories
long
count()
Required - API name:count
static GetCategoriesResponse
of(java.util.function.Function<GetCategoriesResponse.Builder,ObjectBuilder<GetCategoriesResponse>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupGetCategoriesResponseDeserializer(ObjectDeserializer<GetCategoriesResponse.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forGetCategoriesResponse
-
-
Method Details
-
of
public static GetCategoriesResponse of(java.util.function.Function<GetCategoriesResponse.Builder,ObjectBuilder<GetCategoriesResponse>> fn) -
categories
Required - API name:categories
-
count
public final long count()Required - API name:count
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupGetCategoriesResponseDeserializer
protected static void setupGetCategoriesResponseDeserializer(ObjectDeserializer<GetCategoriesResponse.Builder> op)
-