Package ai.shipeasy.admin.model
Class CreateKillswitchRequest
java.lang.Object
ai.shipeasy.admin.model.CreateKillswitchRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateKillswitchRequest
extends Object
Body for `POST /api/admin/killswitches`. Only `name` is required.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanstatic CreateKillswitchRequestCreate an instance of CreateKillswitchRequest given an JSON stringOptional free-form description shown in the dashboard.Optional folder name grouping items in the dashboard.getName()Stable config/killswitch key in `folder.name` form (two lowercase segments separated by a dot, e.g.Initial per-switch overrides applied to every env.getValue()Default value applied to every env at creation.inthashCode()putSwitchesItem(String key, Boolean switchesItem) voidsetDescription(String description) voidvoidvoidsetSwitches(Map<String, Boolean> switches) voidtoJson()Convert an instance of CreateKillswitchRequest 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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_SWITCHES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateKillswitchRequest
public CreateKillswitchRequest()
-
-
Method Details
-
name
-
getName
Stable config/killswitch key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Immutable after create.- Returns:
- name
-
setName
-
description
-
getDescription
Optional free-form description shown in the dashboard. 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
Default value applied to every env at creation. Defaults to `false`. Use `true` to ship the killswitch pre-tripped.- Returns:
- value
-
setValue
-
switches
-
putSwitchesItem
-
getSwitches
Initial per-switch overrides applied to every env. Empty/omitted leaves the killswitch with only the flat `value`.- 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 CreateKillswitchRequest
-
fromJson
Create an instance of CreateKillswitchRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateKillswitchRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateKillswitchRequest
-
toJson
Convert an instance of CreateKillswitchRequest to an JSON string- Returns:
- JSON string
-