Class GetCategoriesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.GetCategoriesRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class GetCategoriesRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetCategoriesRequest.BuilderBuilder forGetCategoriesRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GetCategoriesRequest>_DESERIALIZERJson deserializer forGetCategoriesRequeststatic Endpoint<GetCategoriesRequest,GetCategoriesResponse,ElasticsearchError>ENDPOINTEndpoint "ml.get_categories". -
Constructor Summary
Constructors Constructor Description GetCategoriesRequest(GetCategoriesRequest.Builder builder)GetCategoriesRequest(java.util.function.Function<GetCategoriesRequest.Builder,GetCategoriesRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.StringcategoryId()Identifier for the category, which is unique in the job.java.lang.Integerfrom()skips a number of categoriesjava.lang.StringjobId()Required - Identifier for the anomaly detection job.Pagepage()API name:pagejava.lang.StringpartitionFieldValue()Only return categories for the specified partition.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGetCategoriesRequestDeserializer(DelegatingDeserializer<GetCategoriesRequest.Builder> op)java.lang.Integersize()specifies a max number of categories to getMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forGetCategoriesRequest -
ENDPOINT
public static final Endpoint<GetCategoriesRequest,GetCategoriesResponse,ElasticsearchError> ENDPOINTEndpoint "ml.get_categories".
-
-
Constructor Details
-
GetCategoriesRequest
-
GetCategoriesRequest
public GetCategoriesRequest(java.util.function.Function<GetCategoriesRequest.Builder,GetCategoriesRequest.Builder> fn)
-
-
Method Details
-
jobId
public java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id -
categoryId
@Nullable public java.lang.String categoryId()Identifier for the category, which is unique in the job. If you specify neither the category ID nor the partition_field_value, the API returns information about all categories. If you specify only the partition_field_value, it returns information about all categories for the specified partition.API name:
category_id -
from
@Nullable public java.lang.Integer from()skips a number of categoriesAPI name:
from -
size
@Nullable public java.lang.Integer size()specifies a max number of categories to getAPI name:
size -
partitionFieldValue
@Nullable public java.lang.String partitionFieldValue()Only return categories for the specified partition.API name:
partition_field_value -
page
API name:page -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupGetCategoriesRequestDeserializer
protected static void setupGetCategoriesRequestDeserializer(DelegatingDeserializer<GetCategoriesRequest.Builder> op)
-