Package ai.shipeasy.admin.model
Class I18nDraft
java.lang.Object
ai.shipeasy.admin.model.I18nDraft
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class I18nDraft
extends Object
One staged translation draft.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumLifecycle state of the draft. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic I18nDraftCreate an instance of I18nDraft given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.ISO-8601 timestamp of creation.Actor email that created the draft.getId()Stable opaque draft id.getName()Draft name, e.g.Profile the draft targets.ISO-8601 merge/publish timestamp, or `null`.Profile the draft was seeded from, or `null`.Lifecycle state of the draft.inthashCode()publishedAt(String publishedAt) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(String createdAt) voidsetCreatedBy(String createdBy) voidvoidvoidsetProfileId(String profileId) voidsetPublishedAt(String publishedAt) voidsetSourceProfileId(String sourceProfileId) voidsetStatus(I18nDraft.StatusEnum status) sourceProfileId(String sourceProfileId) status(I18nDraft.StatusEnum status) toJson()Convert an instance of I18nDraft 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_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PROFILE_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_PROFILE_ID
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_CREATED_BY
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_PUBLISHED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
I18nDraft
public I18nDraft()
-
-
Method Details
-
id
-
getId
Stable opaque draft id.- Returns:
- id
-
setId
-
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
Profile the draft was seeded from, or `null`.- Returns:
- sourceProfileId
-
setSourceProfileId
-
status
-
getStatus
Lifecycle state of the draft.- Returns:
- status
-
setStatus
-
createdBy
-
getCreatedBy
Actor email that created the draft.- Returns:
- createdBy
-
setCreatedBy
-
createdAt
-
getCreatedAt
ISO-8601 timestamp of creation.- Returns:
- createdAt
-
setCreatedAt
-
publishedAt
-
getPublishedAt
ISO-8601 merge/publish timestamp, or `null`.- Returns:
- publishedAt
-
setPublishedAt
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the I18nDraft instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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 I18nDraft
-
fromJson
Create an instance of I18nDraft given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of I18nDraft
- Throws:
IOException- if the JSON string is invalid with respect to I18nDraft
-
toJson
Convert an instance of I18nDraft to an JSON string- Returns:
- JSON string
-