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.
  • Field Details

  • Constructor Details

    • CreateUniverseRequest

      public CreateUniverseRequest()
  • Method Details

    • name

      public CreateUniverseRequest name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Stable universe key. Single segment or `folder.name`. Lowercase letters, digits, `_` or `-`; max 128 chars. Immutable after create.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • folder

      public CreateUniverseRequest folder(@Nullable String folder)
    • getFolder

      @Nullable public String getFolder()
      Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).
      Returns:
      folder
    • setFolder

      public void setFolder(@Nullable String folder)
    • unitType

      public CreateUniverseRequest unitType(@Nullable String unitType)
    • getUnitType

      @Nullable public String getUnitType()
      Unit of randomisation. Typically `user_id`. Use `account_id` to keep whole accounts in the same group across an experiment.
      Returns:
      unitType
    • setUnitType

      public void setUnitType(@Nullable String unitType)
    • holdoutRange

      public CreateUniverseRequest holdoutRange(@Nullable List<Integer> holdoutRange)
    • addHoldoutRangeItem

      public CreateUniverseRequest addHoldoutRangeItem(Integer holdoutRangeItem)
    • getHoldoutRange

      @Nullable public List<Integer> 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

      public void setHoldoutRange(@Nullable List<Integer> holdoutRange)
    • 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 CreateUniverseRequest
    • fromJson

      public static CreateUniverseRequest fromJson(String jsonString) throws IOException
      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

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