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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    PostCalendarEventRequest​(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 Type
    Method
    Description
    boolean
    equals​(Object obj)
     
     
     
    int
     
    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

      public static final String 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

      public PostCalendarEventRequest(String calendarId, List<ScheduledEvent> scheduledEvents)
      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-null
      scheduledEvents - The non-null, non-empty, list of ScheduledEvent objects to add to the calendar
  • Method Details

    • getCalendarId

      public String getCalendarId()
    • getScheduledEvents

      public List<ScheduledEvent> 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 interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object