Class GetCalendarEventsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.GetCalendarEventsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetCalendarEventsRequest>
- Enclosing class:
- GetCalendarEventsRequest
public static class GetCalendarEventsRequest.Builder extends java.lang.Object 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)
The ID of the calendar containing the eventsGetCalendarEventsRequest.Builder
end(java.lang.String value)
Get events before this timeGetCalendarEventsRequest.Builder
from(java.lang.Integer value)
Skips a number of eventsGetCalendarEventsRequest.Builder
jobId(java.lang.String value)
Get events for the job.GetCalendarEventsRequest.Builder
size(java.lang.Integer value)
Specifies a max number of events to getGetCalendarEventsRequest.Builder
start(java.lang.String value)
Get events after this timeMethods 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
The ID of the calendar containing the eventsAPI name:
calendar_id
-
jobId
Get events for the job. When this option is used calendar_id must be '_all'API name:
job_id
-
end
Get events before this timeAPI name:
end
-
from
Skips a number of eventsAPI name:
from
-
start
Get events after this timeAPI name:
start
-
size
Specifies a max number of events to getAPI name:
size
-
build
Builds aGetCalendarEventsRequest
.- Specified by:
build
in interfaceObjectBuilder<GetCalendarEventsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-