Class SetExperimentStatusRequest

java.lang.Object
ai.shipeasy.admin.model.SetExperimentStatusRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class SetExperimentStatusRequest extends Object
Body for `POST /api/admin/experiments/{id}/status`.
  • Field Details

  • Constructor Details

    • SetExperimentStatusRequest

      public SetExperimentStatusRequest()
  • Method Details

    • status

    • getStatus

      @Nonnull public SetExperimentStatusRequest.StatusEnum getStatus()
      Target status. Allowed transitions: `draft → running`, `running → stopped`, `stopped → archived`, `draft → archived`, and `archived → draft` (restore — only if the experiment never started). Restarting an archived experiment directly is not allowed; restore it to draft first, then start.
      Returns:
      status
    • setStatus

      public void setStatus(@Nonnull SetExperimentStatusRequest.StatusEnum status)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to SetExperimentStatusRequest
    • fromJson

      public static SetExperimentStatusRequest fromJson(String jsonString) throws IOException
      Create an instance of SetExperimentStatusRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of SetExperimentStatusRequest
      Throws:
      IOException - if the JSON string is invalid with respect to SetExperimentStatusRequest
    • toJson

      public String toJson()
      Convert an instance of SetExperimentStatusRequest to an JSON string
      Returns:
      JSON string