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.
  • Field Details

  • Constructor Details

    • I18nDraft

      public I18nDraft()
  • Method Details

    • id

      public I18nDraft id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Stable opaque draft id.
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • name

      public I18nDraft name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • profileId

      public I18nDraft profileId(@Nullable String profileId)
    • getProfileId

      @Nullable public String getProfileId()
      Profile the draft targets.
      Returns:
      profileId
    • setProfileId

      public void setProfileId(@Nullable String profileId)
    • sourceProfileId

      public I18nDraft sourceProfileId(@Nullable String sourceProfileId)
    • getSourceProfileId

      @Nullable public String getSourceProfileId()
      Profile the draft was seeded from, or `null`.
      Returns:
      sourceProfileId
    • setSourceProfileId

      public void setSourceProfileId(@Nullable String sourceProfileId)
    • status

      public I18nDraft status(@Nullable I18nDraft.StatusEnum status)
    • getStatus

      @Nullable public I18nDraft.StatusEnum getStatus()
      Lifecycle state of the draft.
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable I18nDraft.StatusEnum status)
    • createdBy

      public I18nDraft createdBy(@Nullable String createdBy)
    • getCreatedBy

      @Nullable public String getCreatedBy()
      Actor email that created the draft.
      Returns:
      createdBy
    • setCreatedBy

      public void setCreatedBy(@Nullable String createdBy)
    • createdAt

      public I18nDraft createdAt(@Nullable String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      ISO-8601 timestamp of creation.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable String createdAt)
    • publishedAt

      public I18nDraft publishedAt(@Nullable String publishedAt)
    • getPublishedAt

      @Nullable public String getPublishedAt()
      ISO-8601 merge/publish timestamp, or `null`.
      Returns:
      publishedAt
    • setPublishedAt

      public void setPublishedAt(@Nullable String publishedAt)
    • putAdditionalProperty

      public I18nDraft putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the I18nDraft instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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 I18nDraft
    • fromJson

      public static I18nDraft fromJson(String jsonString) throws IOException
      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

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