Package ai.shipeasy.admin.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateI18nDraftRequestCreate an instance of CreateI18nDraftRequest given an JSON stringgetName()Draft name, e.g.Profile the draft targets.Optional profile to seed the draft's keys from.inthashCode()voidvoidsetProfileId(UUID profileId) voidsetSourceProfileId(UUID sourceProfileId) sourceProfileId(UUID sourceProfileId) toJson()Convert an instance of CreateI18nDraftRequest 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_NAME
- See Also:
-
SERIALIZED_NAME_PROFILE_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_PROFILE_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateI18nDraftRequest
public CreateI18nDraftRequest()
-
-
Method Details
-
name
-
getName
Draft name, e.g. the target locale being staged.- Returns:
- name
-
setName
-
profileId
-
getProfileId
Profile the draft targets.- Returns:
- profileId
-
setProfileId
-
sourceProfileId
-
getSourceProfileId
Optional profile to seed the draft's keys from.- Returns:
- sourceProfileId
-
setSourceProfileId
-
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 CreateI18nDraftRequest
-
fromJson
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
Convert an instance of CreateI18nDraftRequest to an JSON string- Returns:
- JSON string
-