Class UpdateFilterRequest

All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject, TaskAwareRequest

public class UpdateFilterRequest
extends ActionRequest
implements ToXContentObject
Updates an existing MlFilter configuration
  • Field Details

  • Constructor Details

    • UpdateFilterRequest

      public UpdateFilterRequest​(java.lang.String filterId)
      Construct a new request referencing a non-null, existing filter_id
      Parameters:
      filterId - Id referencing the filter to update
  • Method Details

    • getFilterId

      public java.lang.String getFilterId()
    • getDescription

      public java.lang.String getDescription()
      Specified by:
      getDescription in interface TaskAwareRequest
    • setDescription

      public void setDescription​(java.lang.String description)
      The new description of the filter
      Parameters:
      description - the updated filter description
    • getAddItems

      public java.util.SortedSet<java.lang.String> getAddItems()
    • setAddItems

      public void setAddItems​(java.util.Collection<java.lang.String> addItems)
      The collection of items to add to the filter
      Parameters:
      addItems - non-null items to add to the filter, defaults to empty array
    • getRemoveItems

      public java.util.SortedSet<java.lang.String> getRemoveItems()
    • setRemoveItems

      public void setRemoveItems​(java.util.Collection<java.lang.String> removeItems)
      The collection of items to remove from the filter
      Parameters:
      removeItems - non-null items to remove from the filter, defaults to empty array
    • toXContent

      public XContentBuilder toXContent​(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface ToXContent
      Throws:
      java.io.IOException
    • hashCode

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

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      public final java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • validate

      Specified by:
      validate in class ActionRequest