Class UpdateI18nKeyRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class UpdateI18nKeyRequest extends Object
Body for `PUT /api/admin/i18n/keys/{id}`. Updates one existing key's value.
  • Field Details

  • Constructor Details

    • UpdateI18nKeyRequest

      public UpdateI18nKeyRequest()
  • Method Details

    • value

      public UpdateI18nKeyRequest value(@Nonnull String value)
    • getValue

      @Nonnull public String getValue()
      New value for the key (the only overwrite path).
      Returns:
      value
    • setValue

      public void setValue(@Nonnull String value)
    • description

      public UpdateI18nKeyRequest description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Optional human note to store with the key.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • variables

      public UpdateI18nKeyRequest variables(@Nullable List<String> variables)
    • addVariablesItem

      public UpdateI18nKeyRequest addVariablesItem(String variablesItem)
    • getVariables

      @Nullable public List<String> getVariables()
      Explicit `{{var}}` placeholder names in the value. Omit to auto-derive them from the value.
      Returns:
      variables
    • setVariables

      public void setVariables(@Nullable List<String> variables)
    • 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 UpdateI18nKeyRequest
    • fromJson

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

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