Class SetUpgradeModeRequest

java.lang.Object
org.elasticsearch.client.ml.SetUpgradeModeRequest
All Implemented Interfaces:
Validatable

public class SetUpgradeModeRequest extends Object implements Validatable
Sets ML into upgrade_mode
  • Field Details

    • ENABLED

      public static final org.elasticsearch.common.xcontent.ParseField ENABLED
    • TIMEOUT

      public static final org.elasticsearch.common.xcontent.ParseField TIMEOUT
  • Constructor Details

    • SetUpgradeModeRequest

      public SetUpgradeModeRequest(boolean enabled)
      Create a new request
      Parameters:
      enabled - whether to enable `upgrade_mode` or not
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getTimeout

      public org.elasticsearch.core.TimeValue getTimeout()
    • setTimeout

      public void setTimeout(org.elasticsearch.core.TimeValue timeout)
      How long to wait for the request to be completed
      Parameters:
      timeout - default value of 30 seconds
    • hashCode

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

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