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

  • Constructor Details

    • UpdateUniverseRequest

      public UpdateUniverseRequest()
  • Method Details

    • folder

      public UpdateUniverseRequest 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)
    • holdoutRange

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

      public UpdateUniverseRequest 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 UpdateUniverseRequest
    • fromJson

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

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