Package ai.shipeasy.admin.model
Class SetKillswitchSwitchRequest
java.lang.Object
ai.shipeasy.admin.model.SetKillswitchSwitchRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SetKillswitchSwitchRequest
extends Object
Body for `PUT /api/admin/killswitches/{id}/switch`. Sets or updates one switch entry on one env.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SetKillswitchSwitchRequestCreate an instance of SetKillswitchSwitchRequest given an JSON stringgetEnv()Get envSwitch key to set.getValue()New boolean value for this `switchKey` on this `env`.inthashCode()voidvoidsetSwitchKey(String switchKey) voidtoJson()Convert an instance of SetKillswitchSwitchRequest 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_ENV
- See Also:
-
SERIALIZED_NAME_SWITCH_KEY
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SetKillswitchSwitchRequest
public SetKillswitchSwitchRequest()
-
-
Method Details
-
env
-
getEnv
Get env- Returns:
- env
-
setEnv
-
switchKey
-
getSwitchKey
Switch key to set.- Returns:
- switchKey
-
setSwitchKey
-
value
-
getValue
New boolean value for this `switchKey` on this `env`.- Returns:
- value
-
setValue
-
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 SetKillswitchSwitchRequest
-
fromJson
Create an instance of SetKillswitchSwitchRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SetKillswitchSwitchRequest
- Throws:
IOException- if the JSON string is invalid with respect to SetKillswitchSwitchRequest
-
toJson
Convert an instance of SetKillswitchSwitchRequest to an JSON string- Returns:
- JSON string
-