Class GetCategoriesRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.GetCategoriesRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetCategoriesRequest>
- Enclosing class:
- GetCategoriesRequest
public static class GetCategoriesRequest.Builder extends java.lang.Object implements ObjectBuilder<GetCategoriesRequest>
Builder for
GetCategoriesRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetCategoriesRequestbuild()Builds aGetCategoriesRequest.GetCategoriesRequest.BuildercategoryId(java.lang.String value)Identifier for the category, which is unique in the job.GetCategoriesRequest.Builderfrom(java.lang.Integer value)skips a number of categoriesGetCategoriesRequest.BuilderjobId(java.lang.String value)Required - Identifier for the anomaly detection job.GetCategoriesRequest.Builderpage(Page value)API name:pageGetCategoriesRequest.Builderpage(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:pageGetCategoriesRequest.BuilderpartitionFieldValue(java.lang.String value)Only return categories for the specified partition.GetCategoriesRequest.Buildersize(java.lang.Integer value)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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id -
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
skips a number of categoriesAPI name:
from -
size
specifies a max number of categories to getAPI name:
size -
partitionFieldValue
Only return categories for the specified partition.API name:
partition_field_value -
page
API name:page -
page
public GetCategoriesRequest.Builder page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:page -
build
Builds aGetCategoriesRequest.- Specified by:
buildin interfaceObjectBuilder<GetCategoriesRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-