Class PutCalendarRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class PutCalendarRequest extends ActionRequest implements org.elasticsearch.xcontent.ToXContentObject
Request to create a new Machine Learning calendar
  • Constructor Details

    • PutCalendarRequest

      public PutCalendarRequest(Calendar calendar)
  • Method Details

    • getCalendar

      public Calendar getCalendar()
    • validate

      Specified by:
      validate in class ActionRequest
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

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

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