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.
  • Field Details

  • Constructor Details

    • SetKillswitchSwitchRequest

      public SetKillswitchSwitchRequest()
  • Method Details

    • env

      public SetKillswitchSwitchRequest env(@Nonnull Env env)
    • getEnv

      @Nonnull public Env getEnv()
      Get env
      Returns:
      env
    • setEnv

      public void setEnv(@Nonnull Env env)
    • switchKey

      public SetKillswitchSwitchRequest switchKey(@Nonnull String switchKey)
    • getSwitchKey

      @Nonnull public String getSwitchKey()
      Switch key to set.
      Returns:
      switchKey
    • setSwitchKey

      public void setSwitchKey(@Nonnull String switchKey)
    • value

      public SetKillswitchSwitchRequest value(@Nonnull Boolean value)
    • getValue

      @Nonnull public Boolean getValue()
      New boolean value for this `switchKey` on this `env`.
      Returns:
      value
    • setValue

      public void setValue(@Nonnull Boolean value)
    • 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 SetKillswitchSwitchRequest
    • fromJson

      public static SetKillswitchSwitchRequest fromJson(String jsonString) throws IOException
      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

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