Class OpsComment

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class OpsComment extends Object
A single comment on a queue item.
  • Field Details

  • Constructor Details

    • OpsComment

      public OpsComment()
  • Method Details

    • id

      public OpsComment id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Comment id.
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • feedbackId

      public OpsComment feedbackId(@Nonnull String feedbackId)
    • getFeedbackId

      @Nonnull public String getFeedbackId()
      The queue item this comment hangs off.
      Returns:
      feedbackId
    • setFeedbackId

      public void setFeedbackId(@Nonnull String feedbackId)
    • parentId

      public OpsComment parentId(@Nullable String parentId)
    • getParentId

      @Nullable public String getParentId()
      The top-level comment this is a reply to, or `null` for a top-level comment.
      Returns:
      parentId
    • setParentId

      public void setParentId(@Nullable String parentId)
    • authorType

      public OpsComment authorType(@Nonnull OpsCommentAuthorType authorType)
    • getAuthorType

      @Nonnull public OpsCommentAuthorType getAuthorType()
      Get authorType
      Returns:
      authorType
    • setAuthorType

      public void setAuthorType(@Nonnull OpsCommentAuthorType authorType)
    • authorEmail

      public OpsComment authorEmail(@Nullable String authorEmail)
    • getAuthorEmail

      @Nullable public String getAuthorEmail()
      The teammate who wrote it, or `null` for a `system` (Jarvis) comment.
      Returns:
      authorEmail
    • setAuthorEmail

      public void setAuthorEmail(@Nullable String authorEmail)
    • body

      public OpsComment body(@Nonnull String body)
    • getBody

      @Nonnull public String getBody()
      Comment body as markdown (may contain sanitised inline image/video embeds).
      Returns:
      body
    • setBody

      public void setBody(@Nonnull String body)
    • createdAt

      public OpsComment createdAt(@Nonnull String createdAt)
    • getCreatedAt

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

      public void setCreatedAt(@Nonnull String createdAt)
    • updatedAt

      public OpsComment updatedAt(@Nonnull String updatedAt)
    • getUpdatedAt

      @Nonnull public String getUpdatedAt()
      ISO-8601 last-edit timestamp.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nonnull String updatedAt)
    • 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 OpsComment
    • fromJson

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

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