Class ListI18nDraftsResponseInner

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ListI18nDraftsResponseInner extends Object
One staged translation draft.
  • Field Details

  • Constructor Details

    • ListI18nDraftsResponseInner

      public ListI18nDraftsResponseInner()
  • Method Details

    • id

      public ListI18nDraftsResponseInner id(@Nonnull String id)
    • getId

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

      public void setId(@Nonnull String id)
    • name

      public ListI18nDraftsResponseInner 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 ListI18nDraftsResponseInner profileId(@Nullable String profileId)
    • getProfileId

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

      public void setProfileId(@Nullable String profileId)
    • sourceProfileId

      public ListI18nDraftsResponseInner 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

    • getStatus

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

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

      public ListI18nDraftsResponseInner 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 ListI18nDraftsResponseInner 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 ListI18nDraftsResponseInner 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 ListI18nDraftsResponseInner 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 ListI18nDraftsResponseInner 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 ListI18nDraftsResponseInner
    • fromJson

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

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