Package ai.shipeasy.admin.model
Class UpdateUniverseRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateUniverseRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateUniverseRequest
extends Object
Body for `PATCH /api/admin/universes/{id}`. Only `holdout_range` is mutable — name and unit_type are immutable after create.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHoldoutRangeItem(Integer holdoutRangeItem) booleanstatic UpdateUniverseRequestCreate an instance of UpdateUniverseRequest given an JSON stringOptional folder name grouping items in the dashboard.Inclusive `[lo, hi]` bucket range (0–9999) reserved as the **holdout** — callers hashed into this slice are excluded from every experiment in the universe.inthashCode()holdoutRange(List<Integer> holdoutRange) voidvoidsetHoldoutRange(List<Integer> holdoutRange) toJson()Convert an instance of UpdateUniverseRequest 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_FOLDER
- See Also:
-
SERIALIZED_NAME_HOLDOUT_RANGE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateUniverseRequest
public UpdateUniverseRequest()
-
-
Method Details
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
holdoutRange
-
addHoldoutRangeItem
-
getHoldoutRange
Inclusive `[lo, hi]` bucket range (0–9999) reserved as the **holdout** — callers hashed into this slice are excluded from every experiment in the universe. `null` disables the holdout. Pro plan or higher required.- Returns:
- holdoutRange
-
setHoldoutRange
-
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 UpdateUniverseRequest
-
fromJson
Create an instance of UpdateUniverseRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateUniverseRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateUniverseRequest
-
toJson
Convert an instance of UpdateUniverseRequest to an JSON string- Returns:
- JSON string
-