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 GetCalendarEventsRequest
build()
Builds aGetCalendarEventsRequest
.GetCalendarEventsRequest.Builder
calendarId(java.lang.String value)
Required - A string that uniquely identifies a calendar.GetCalendarEventsRequest.Builder
end(DateTime value)
Specifies to get events with timestamps earlier than this time.GetCalendarEventsRequest.Builder
from(java.lang.Integer value)
Skips the specified number of events.GetCalendarEventsRequest.Builder
jobId(java.lang.String value)
Specifies to get events for a specific anomaly detection job identifier or job group.GetCalendarEventsRequest.Builder
size(java.lang.Integer value)
Specifies the maximum number of events to obtain.GetCalendarEventsRequest.Builder
start(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, _mapPutAll
Methods 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_all
or*
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_all
or*
.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:
build
in interfaceObjectBuilder<GetCalendarEventsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-