Package ai.shipeasy.admin.model
Class SetKillswitchValueRequest
java.lang.Object
ai.shipeasy.admin.model.SetKillswitchValueRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SetKillswitchValueRequest
extends Object
Body for `PUT /api/admin/killswitches/{id}/value`. Sets the flat `value` on one env without touching `switches` or other envs.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SetKillswitchValueRequestCreate an instance of SetKillswitchValueRequest given an JSON stringgetEnv()Get envgetValue()Flat boolean to publish on `env`.inthashCode()voidvoidtoJson()Convert an instance of SetKillswitchValueRequest 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_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SetKillswitchValueRequest
public SetKillswitchValueRequest()
-
-
Method Details
-
env
-
getEnv
Get env- Returns:
- env
-
setEnv
-
value
-
getValue
Flat boolean to publish on `env`. Publishes a new version on that env only.- 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 SetKillswitchValueRequest
-
fromJson
Create an instance of SetKillswitchValueRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SetKillswitchValueRequest
- Throws:
IOException- if the JSON string is invalid with respect to SetKillswitchValueRequest
-
toJson
Convert an instance of SetKillswitchValueRequest to an JSON string- Returns:
- JSON string
-