Class SetI18nLabelRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class SetI18nLabelRequest extends Object
Body for `POST /api/admin/i18n/set`. Upserts one key's value and publishes the profile live.
  • Field Details

  • Constructor Details

    • SetI18nLabelRequest

      public SetI18nLabelRequest()
  • Method Details

    • key

      public SetI18nLabelRequest key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      Dotted key path to set, e.g. `home.cta`.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • value

      public SetI18nLabelRequest value(@Nonnull String value)
    • getValue

      @Nonnull public String getValue()
      New value for the key. Inserted when the key is new, overwritten when it exists.
      Returns:
      value
    • setValue

      public void setValue(@Nonnull String value)
    • profile

      public SetI18nLabelRequest profile(@Nullable String profile)
    • getProfile

      @Nullable public String getProfile()
      Profile name to target, e.g. `en:prod`. Omit to target the project's default-marked profile.
      Returns:
      profile
    • setProfile

      public void setProfile(@Nullable String profile)
    • description

      public SetI18nLabelRequest 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)
    • 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 SetI18nLabelRequest
    • fromJson

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

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