Package ai.reveng.model
Class CommentResponse
java.lang.Object
ai.reveng.model.CommentResponse
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CommentResponse
extends Object
CommentResponse
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic CommentResponseCreate an instance of CommentResponse given an JSON stringComment text contentGet contextGet createdAtgetId()Get idGet resourceIdGet resourceTypeGet updatedAtGet userIdinthashCode()resourceId(String resourceId) resourceType(String resourceType) voidsetContent(String content) voidsetContext(Context context) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetResourceId(String resourceId) voidsetResourceType(String resourceType) voidsetUpdatedAt(OffsetDateTime updatedAt) voidtoJson()Convert an instance of CommentResponse to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_USER_ID
- See Also:
-
SERIALIZED_NAME_RESOURCE_TYPE
- See Also:
-
SERIALIZED_NAME_RESOURCE_ID
- See Also:
-
SERIALIZED_NAME_CONTEXT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CommentResponse
public CommentResponse()
-
-
Method Details
-
content
-
getContent
Comment text content- Returns:
- content
-
setContent
-
id
-
getId
Get id- Returns:
- id
-
setId
-
userId
-
getUserId
Get userId- Returns:
- userId
-
setUserId
-
resourceType
-
getResourceType
Get resourceType- Returns:
- resourceType
-
setResourceType
-
resourceId
-
getResourceId
Get resourceId- Returns:
- resourceId
-
setResourceId
-
context
-
getContext
Get context- Returns:
- context
-
setContext
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
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 CommentResponse
-
fromJson
Create an instance of CommentResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CommentResponse
- Throws:
IOException- if the JSON string is invalid with respect to CommentResponse
-
toJson
Convert an instance of CommentResponse to an JSON string- Returns:
- JSON string
-