Class CreateOpsCommentRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class CreateOpsCommentRequest extends Object
Body for `POST /api/admin/ops/{handle}/comments`.
  • Field Details

  • Constructor Details

    • CreateOpsCommentRequest

      public CreateOpsCommentRequest()
  • Method Details

    • body

      public CreateOpsCommentRequest body(@Nonnull String body)
    • getBody

      @Nonnull public String getBody()
      The comment body as markdown. Mentions (`@teammate`, `@shipeasy`) are parsed from it.
      Returns:
      body
    • setBody

      public void setBody(@Nonnull String body)
    • parentId

      public CreateOpsCommentRequest parentId(@Nullable String parentId)
    • getParentId

      @Nullable public String getParentId()
      Reply under this top-level comment. Omit / `null` for a top-level comment. Replying to a reply attaches to the same top-level parent (threading is one level deep).
      Returns:
      parentId
    • setParentId

      public void setParentId(@Nullable String parentId)
    • 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 CreateOpsCommentRequest
    • fromJson

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

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