Package ai.shipeasy.admin.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumNew lifecycle state for the draft. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UpdateI18nDraftRequestCreate an instance of UpdateI18nDraftRequest given an JSON stringNew lifecycle state for the draft.inthashCode()voidtoJson()Convert an instance of UpdateI18nDraftRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateI18nDraftRequest
public UpdateI18nDraftRequest()
-
-
Method Details
-
status
-
getStatus
New lifecycle state for the draft.- Returns:
- status
-
setStatus
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of UpdateI18nDraftRequest to an JSON string- Returns:
- JSON string
-