Class GetCalendarEventsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.GetCalendarEventsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetCalendarEventsRequest>
- Enclosing class:
- GetCalendarEventsRequest
public static class GetCalendarEventsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<GetCalendarEventsRequest>
Builder for
GetCalendarEventsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetCalendarEventsRequestbuild()Builds aGetCalendarEventsRequest.GetCalendarEventsRequest.BuildercalendarId(java.lang.String value)Required - A string that uniquely identifies a calendar.GetCalendarEventsRequest.Builderend(java.lang.String value)Specifies to get events with timestamps earlier than this time.GetCalendarEventsRequest.Builderfrom(java.lang.Integer value)Skips the specified number of events.GetCalendarEventsRequest.BuilderjobId(java.lang.String value)Specifies to get events for a specific anomaly detection job identifier or job group.GetCalendarEventsRequest.Buildersize(java.lang.Integer value)Specifies the maximum number of events to obtain.GetCalendarEventsRequest.Builderstart(java.lang.String value)Specifies to get events with timestamps after this time.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
calendarId
Required - A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using_allor*or by omitting the calendar identifier.API name:
calendar_id -
end
Specifies to get events with timestamps earlier than this time.API name:
end -
from
Skips the specified number of events.API name:
from -
jobId
Specifies to get events for a specific anomaly detection job identifier or job group. It must be used with a calendar identifier of_allor*.API name:
job_id -
size
Specifies the maximum number of events to obtain.API name:
size -
start
Specifies to get events with timestamps after this time.API name:
start -
build
Builds aGetCalendarEventsRequest.- Specified by:
buildin interfaceObjectBuilder<GetCalendarEventsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-