Class UpdateKillswitchRequest

java.lang.Object
ai.shipeasy.admin.model.UpdateKillswitchRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class UpdateKillswitchRequest extends Object
Body for `PATCH /api/admin/killswitches/{id}`. Partial — only supplied fields change. `switches` replaces wholesale (no merge).
  • Field Details

  • Constructor Details

    • UpdateKillswitchRequest

      public UpdateKillswitchRequest()
  • Method Details

    • description

      public UpdateKillswitchRequest description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      New description, or `null` to clear it. Max 512 chars.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • folder

      public UpdateKillswitchRequest 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)
    • value

      public UpdateKillswitchRequest value(@Nullable Boolean value)
    • getValue

      @Nullable public Boolean getValue()
      Flat value applied to every env. Publishes a new version per env when set. Omit to leave values unchanged.
      Returns:
      value
    • setValue

      public void setValue(@Nullable Boolean value)
    • switches

      public UpdateKillswitchRequest switches(@Nullable Map<String,Boolean> switches)
    • putSwitchesItem

      public UpdateKillswitchRequest putSwitchesItem(String key, Boolean switchesItem)
    • getSwitches

      @Nullable public Map<String,Boolean> getSwitches()
      Replace the switches map wholesale on every env. To edit a single entry on a single env use `PUT /{id}/switch` instead.
      Returns:
      switches
    • setSwitches

      public void setSwitches(@Nullable Map<String,Boolean> switches)
    • 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 UpdateKillswitchRequest
    • fromJson

      public static UpdateKillswitchRequest fromJson(String jsonString) throws IOException
      Create an instance of UpdateKillswitchRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of UpdateKillswitchRequest
      Throws:
      IOException - if the JSON string is invalid with respect to UpdateKillswitchRequest
    • toJson

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