Class CreateI18nProfileRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class CreateI18nProfileRequest extends Object
Body for `POST /api/admin/i18n/profiles`. Only `name` is accepted.
  • Field Details

  • Constructor Details

    • CreateI18nProfileRequest

      public CreateI18nProfileRequest()
  • Method Details

    • name

      public CreateI18nProfileRequest name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Profile handle to create, e.g. `en:prod` or `fr:prod`. Lowercase alphanumeric start, then letters/digits/`_`/`:`/`.`/`-`; max 64 chars. The locale is encoded in the handle, so no separate locale fields are accepted.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • 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 CreateI18nProfileRequest
    • fromJson

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

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