Class RevertModelSnapshotRequest

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

public class RevertModelSnapshotRequest extends ActionRequest implements org.elasticsearch.xcontent.ToXContentObject
A request to revert to a specific model snapshot for a given job
  • Field Details

    • DELETE_INTERVENING

      public static final org.elasticsearch.xcontent.ParseField DELETE_INTERVENING
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<RevertModelSnapshotRequest,Void> PARSER
  • Constructor Details

    • RevertModelSnapshotRequest

      public RevertModelSnapshotRequest(String jobId, String snapshotId)
      Constructs a request to revert to a given model snapshot
      Parameters:
      jobId - id of the job for which to revert the model snapshot
      snapshotId - id of the snapshot to which to revert
  • Method Details

    • getJobId

      public String getJobId()
    • getSnapshotId

      public String getSnapshotId()
    • getDeleteInterveningResults

      public Boolean getDeleteInterveningResults()
    • setDeleteInterveningResults

      public void setDeleteInterveningResults(Boolean deleteInterveningResults)
      Sets the request flag that indicates whether or not intervening results should be deleted.
      Parameters:
      deleteInterveningResults - Flag that indicates whether or not intervening results should be deleted.
    • 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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object