Package org.elasticsearch.client.ml
Class PostCalendarEventRequest
java.lang.Object
org.elasticsearch.client.ml.PostCalendarEventRequest
- All Implemented Interfaces:
Validatable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class PostCalendarEventRequest
extends Object
implements Validatable, org.elasticsearch.common.xcontent.ToXContentObject
Request to add a ScheduledEvent to a Machine Learning calendar
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ToXContent.MapParams
static String
static org.elasticsearch.common.xcontent.ConstructingObjectParser<PostCalendarEventRequest,Void>
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
Constructor Summary
ConstructorDescriptionPostCalendarEventRequest(String calendarId, List<ScheduledEvent> scheduledEvents)
Create a new PostCalendarEventRequest with an existing non-null calendarId and a list of Scheduled events -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
Field Details
-
INCLUDE_CALENDAR_ID_KEY
- See Also:
- Constant Field Values
-
EVENTS
public static final org.elasticsearch.common.xcontent.ParseField EVENTS -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<PostCalendarEventRequest,Void> PARSER -
EXCLUDE_CALENDAR_ID_PARAMS
public static final org.elasticsearch.common.xcontent.ToXContent.MapParams EXCLUDE_CALENDAR_ID_PARAMS
-
-
Constructor Details
-
PostCalendarEventRequest
Create a new PostCalendarEventRequest with an existing non-null calendarId and a list of Scheduled events- Parameters:
calendarId
- The ID of the calendar, must be non-nullscheduledEvents
- The non-null, non-empty, list ofScheduledEvent
objects to add to the calendar
-
-
Method Details
-
getCalendarId
-
getScheduledEvents
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-