Package ai.shipeasy.admin.model
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`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateOpsCommentRequestCreate an instance of CreateOpsCommentRequest given an JSON stringgetBody()The comment body as markdown.Reply under this top-level comment.inthashCode()voidvoidsetParentId(String parentId) toJson()Convert an instance of CreateOpsCommentRequest 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_BODY
- See Also:
-
SERIALIZED_NAME_PARENT_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateOpsCommentRequest
public CreateOpsCommentRequest()
-
-
Method Details
-
body
-
getBody
The comment body as markdown. Mentions (`@teammate`, `@shipeasy`) are parsed from it.- Returns:
- body
-
setBody
-
parentId
-
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
-
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 CreateOpsCommentRequest
-
fromJson
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
Convert an instance of CreateOpsCommentRequest to an JSON string- Returns:
- JSON string
-