Package org.elasticsearch.client.ml
Class PostCalendarEventResponse
- java.lang.Object
-
- org.elasticsearch.client.ml.PostCalendarEventResponse
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class PostCalendarEventResponse extends Object implements ToXContentObject
Response to adding ScheduledEvent(s) to a Machine Learning calendar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldEVENTSstatic ConstructingObjectParser<PostCalendarEventResponse,Void>PARSER-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description PostCalendarEventResponse(List<ScheduledEvent> scheduledEvents)Create a new PostCalendarEventResponse containing the scheduled Events
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static PostCalendarEventResponsefromXContent(XContentParser parser)List<ScheduledEvent>getScheduledEvents()inthashCode()XContentBuildertoXContent(XContentBuilder builder, 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
-
-
-
-
Field Detail
-
EVENTS
public static final ParseField EVENTS
-
PARSER
public static final ConstructingObjectParser<PostCalendarEventResponse,Void> PARSER
-
-
Constructor Detail
-
PostCalendarEventResponse
public PostCalendarEventResponse(List<ScheduledEvent> scheduledEvents)
Create a new PostCalendarEventResponse containing the scheduled Events- Parameters:
scheduledEvents- The list ofScheduledEventobjects
-
-
Method Detail
-
fromXContent
public static PostCalendarEventResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
getScheduledEvents
public List<ScheduledEvent> getScheduledEvents()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-