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 class
GetCategoriesRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forGetCategoriesRequest
static Endpoint<GetCategoriesRequest,GetCategoriesResponse,ElasticsearchError>
ENDPOINT
Endpoint "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.String
categoryId()
Identifier for the category, which is unique in the job.java.lang.Integer
from()
skips a number of categoriesjava.lang.String
jobId()
Required - Identifier for the anomaly detection job.Page
page()
API name:page
java.lang.String
partitionFieldValue()
Only return categories for the specified partition.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
setupGetCategoriesRequestDeserializer(DelegatingDeserializer<GetCategoriesRequest.Builder> op)
java.lang.Integer
size()
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupGetCategoriesRequestDeserializer
protected static void setupGetCategoriesRequestDeserializer(DelegatingDeserializer<GetCategoriesRequest.Builder> op)
-