Class PushI18nKeysRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class PushI18nKeysRequest extends Object
Body for `POST /api/admin/i18n/keys`. Insert-only: keys that already exist are never overwritten — use `PUT /keys/{id}` to change a value.
  • Field Details

  • Constructor Details

    • PushI18nKeysRequest

      public PushI18nKeysRequest()
  • Method Details

    • profileId

      public PushI18nKeysRequest profileId(@Nonnull UUID profileId)
    • getProfileId

      @Nonnull public UUID getProfileId()
      Target profile id to add keys to.
      Returns:
      profileId
    • setProfileId

      public void setProfileId(@Nonnull UUID profileId)
    • chunk

      public PushI18nKeysRequest chunk(@Nullable String chunk)
    • getChunk

      @Nullable public String getChunk()
      Logical grouping the new keys are filed under. Defaults to `default`.
      Returns:
      chunk
    • setChunk

      public void setChunk(@Nullable String chunk)
    • keys

    • addKeysItem

      public PushI18nKeysRequest addKeysItem(PushI18nKeysRequestKeysInner keysItem)
    • getKeys

      @Nonnull public List<PushI18nKeysRequestKeysInner> getKeys()
      Keys to add. Insert-only — existing keys are reported back as `skipped`.
      Returns:
      keys
    • setKeys

      public void setKeys(@Nonnull List<PushI18nKeysRequestKeysInner> keys)
    • putAdditionalProperty

      public PushI18nKeysRequest putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the PushI18nKeysRequest instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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 PushI18nKeysRequest
    • fromJson

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

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