Class CalendarEvent.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CalendarEvent.Builder>
co.elastic.clients.elasticsearch.ml.CalendarEvent.Builder
- All Implemented Interfaces:
WithJson<CalendarEvent.Builder>
,ObjectBuilder<CalendarEvent>
- Enclosing class:
- CalendarEvent
public static class CalendarEvent.Builder
extends WithJsonObjectBuilderBase<CalendarEvent.Builder>
implements ObjectBuilder<CalendarEvent>
Builder for
CalendarEvent
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCalendarEvent
.final CalendarEvent.Builder
calendarId
(String value) A string that uniquely identifies a calendar.final CalendarEvent.Builder
description
(String value) Required - A description of the scheduled event.final CalendarEvent.Builder
Required - The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.final CalendarEvent.Builder
API name:event_id
final CalendarEvent.Builder
forceTimeShift
(Integer value) Shift time by this many seconds.protected CalendarEvent.Builder
self()
final CalendarEvent.Builder
skipModelUpdate
(Boolean value) When true the model will not be updated for this calendar period.final CalendarEvent.Builder
skipResult
(Boolean value) When true the model will not create results for this calendar period.final CalendarEvent.Builder
Required - The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
calendarId
A string that uniquely identifies a calendar.API name:
calendar_id
-
eventId
API name:event_id
-
description
Required - A description of the scheduled event.API name:
description
-
endTime
Required - The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.API name:
end_time
-
startTime
Required - The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.API name:
start_time
-
skipResult
When true the model will not create results for this calendar period.API name:
skip_result
-
skipModelUpdate
When true the model will not be updated for this calendar period.API name:
skip_model_update
-
forceTimeShift
Shift time by this many seconds. For example adjust time for daylight savings changesAPI name:
force_time_shift
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CalendarEvent.Builder>
-
build
Builds aCalendarEvent
.- Specified by:
build
in interfaceObjectBuilder<CalendarEvent>
- Throws:
NullPointerException
- if some of the required fields are null.
-