Class CreateI18nDraftRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class CreateI18nDraftRequest extends Object
Body for `POST /api/admin/i18n/drafts`. Stages a new translation draft against a target profile, optionally seeding from a source profile.
  • Field Details

  • Constructor Details

    • CreateI18nDraftRequest

      public CreateI18nDraftRequest()
  • Method Details

    • name

      public CreateI18nDraftRequest name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Draft name, e.g. the target locale being staged.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • profileId

      public CreateI18nDraftRequest profileId(@Nonnull UUID profileId)
    • getProfileId

      @Nonnull public UUID getProfileId()
      Profile the draft targets.
      Returns:
      profileId
    • setProfileId

      public void setProfileId(@Nonnull UUID profileId)
    • sourceProfileId

      public CreateI18nDraftRequest sourceProfileId(@Nullable UUID sourceProfileId)
    • getSourceProfileId

      @Nullable public UUID getSourceProfileId()
      Optional profile to seed the draft's keys from.
      Returns:
      sourceProfileId
    • setSourceProfileId

      public void setSourceProfileId(@Nullable UUID sourceProfileId)
    • 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 CreateI18nDraftRequest
    • fromJson

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

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