Package ai.shipeasy.admin.model
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`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumTarget status. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SetExperimentStatusRequestCreate an instance of SetExperimentStatusRequest given an JSON stringTarget status.inthashCode()voidtoJson()Convert an instance of SetExperimentStatusRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SetExperimentStatusRequest
public SetExperimentStatusRequest()
-
-
Method Details
-
status
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of SetExperimentStatusRequest to an JSON string- Returns:
- JSON string
-