Class KillswitchValue

java.lang.Object
ai.shipeasy.admin.model.KillswitchValue

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class KillswitchValue extends Object
Runtime killswitch payload returned to SDKs.
  • Field Details

  • Constructor Details

    • KillswitchValue

      public KillswitchValue()
  • Method Details

    • value

      public KillswitchValue value(@Nonnull Boolean value)
    • getValue

      @Nonnull public Boolean getValue()
      Default boolean delivered when no `switches` entry matches.
      Returns:
      value
    • setValue

      public void setValue(@Nonnull Boolean value)
    • switches

      public KillswitchValue switches(@Nullable Map<String,Boolean> switches)
    • putSwitchesItem

      public KillswitchValue putSwitchesItem(String key, Boolean switchesItem)
    • getSwitches

      @Nullable public Map<String,Boolean> getSwitches()
      Per-switch overrides; a matching key takes precedence over `value`.
      Returns:
      switches
    • setSwitches

      public void setSwitches(@Nullable Map<String,Boolean> switches)
    • 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 KillswitchValue
    • fromJson

      public static KillswitchValue fromJson(String jsonString) throws IOException
      Create an instance of KillswitchValue given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of KillswitchValue
      Throws:
      IOException - if the JSON string is invalid with respect to KillswitchValue
    • toJson

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