Class PublishI18nProfileRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class PublishI18nProfileRequest extends Object
Body for `POST /api/admin/i18n/profiles/{profileId}/publish`. The `chunk` is an audit label only.
  • Field Details

  • Constructor Details

    • PublishI18nProfileRequest

      public PublishI18nProfileRequest()
  • Method Details

    • chunk

      public PublishI18nProfileRequest chunk(@Nullable String chunk)
    • getChunk

      @Nullable public String getChunk()
      Optional chunk label to stamp on the audit log. Publishing is profile-wide regardless — the whole profile is snapshotted into one KV blob.
      Returns:
      chunk
    • setChunk

      public void setChunk(@Nullable String chunk)
    • 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 PublishI18nProfileRequest
    • fromJson

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

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