Package ai.shipeasy.admin.model
Class CreateUniverseRequest
java.lang.Object
ai.shipeasy.admin.model.CreateUniverseRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateUniverseRequest
extends Object
Body for `POST /api/admin/universes`. Only `name` is required.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHoldoutRangeItem(Integer holdoutRangeItem) booleanstatic CreateUniverseRequestCreate an instance of CreateUniverseRequest 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.getName()Stable universe key.Unit of randomisation.inthashCode()holdoutRange(List<Integer> holdoutRange) voidvoidsetHoldoutRange(List<Integer> holdoutRange) voidvoidsetUnitType(String unitType) toJson()Convert an instance of CreateUniverseRequest 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_NAME
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_UNIT_TYPE
- See Also:
-
SERIALIZED_NAME_HOLDOUT_RANGE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateUniverseRequest
public CreateUniverseRequest()
-
-
Method Details
-
name
-
getName
Stable universe key. Single segment or `folder.name`. Lowercase letters, digits, `_` or `-`; max 128 chars. Immutable after create.- Returns:
- name
-
setName
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
unitType
-
getUnitType
Unit of randomisation. Typically `user_id`. Use `account_id` to keep whole accounts in the same group across an experiment.- Returns:
- unitType
-
setUnitType
-
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 CreateUniverseRequest
-
fromJson
Create an instance of CreateUniverseRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateUniverseRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateUniverseRequest
-
toJson
Convert an instance of CreateUniverseRequest to an JSON string- Returns:
- JSON string
-