Class UpdateI18nDraftRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class UpdateI18nDraftRequest extends Object
Body for `PATCH /api/admin/i18n/drafts/{draftId}`. Transitions the draft's lifecycle state.
  • Field Details

  • Constructor Details

    • UpdateI18nDraftRequest

      public UpdateI18nDraftRequest()
  • Method Details

    • status

    • getStatus

      @Nullable public UpdateI18nDraftRequest.StatusEnum getStatus()
      New lifecycle state for the draft.
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable UpdateI18nDraftRequest.StatusEnum status)
    • 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 UpdateI18nDraftRequest
    • fromJson

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

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