Package ai.shipeasy.admin.model
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).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanstatic UpdateKillswitchRequestCreate an instance of UpdateKillswitchRequest given an JSON stringNew description, or `null` to clear it.Optional folder name grouping items in the dashboard.Replace the switches map wholesale on every env.getValue()Flat value applied to every env.inthashCode()putSwitchesItem(String key, Boolean switchesItem) voidsetDescription(String description) voidvoidsetSwitches(Map<String, Boolean> switches) voidtoJson()Convert an instance of UpdateKillswitchRequest 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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_SWITCHES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateKillswitchRequest
public UpdateKillswitchRequest()
-
-
Method Details
-
description
-
getDescription
New description, or `null` to clear it. Max 512 chars.- Returns:
- description
-
setDescription
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
value
-
getValue
Flat value applied to every env. Publishes a new version per env when set. Omit to leave values unchanged.- Returns:
- value
-
setValue
-
switches
-
putSwitchesItem
-
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
-
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 UpdateKillswitchRequest
-
fromJson
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
Convert an instance of UpdateKillswitchRequest to an JSON string- Returns:
- JSON string
-