Class CommentResponse

java.lang.Object
ai.reveng.model.CommentResponse

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CommentResponse extends Object
CommentResponse
  • Field Details

  • Constructor Details

    • CommentResponse

      public CommentResponse()
  • Method Details

    • content

      public CommentResponse content(@Nonnull String content)
    • getContent

      @Nonnull public String getContent()
      Comment text content
      Returns:
      content
    • setContent

      public void setContent(@Nonnull String content)
    • id

      public CommentResponse id(@Nonnull Integer id)
    • getId

      @Nonnull public Integer getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nonnull Integer id)
    • userId

      public CommentResponse userId(@Nonnull Integer userId)
    • getUserId

      @Nonnull public Integer getUserId()
      Get userId
      Returns:
      userId
    • setUserId

      public void setUserId(@Nonnull Integer userId)
    • resourceType

      public CommentResponse resourceType(@Nonnull String resourceType)
    • getResourceType

      @Nonnull public String getResourceType()
      Get resourceType
      Returns:
      resourceType
    • setResourceType

      public void setResourceType(@Nonnull String resourceType)
    • resourceId

      public CommentResponse resourceId(@Nonnull String resourceId)
    • getResourceId

      @Nonnull public String getResourceId()
      Get resourceId
      Returns:
      resourceId
    • setResourceId

      public void setResourceId(@Nonnull String resourceId)
    • context

      public CommentResponse context(@Nullable Context context)
    • getContext

      @Nullable public Context getContext()
      Get context
      Returns:
      context
    • setContext

      public void setContext(@Nullable Context context)
    • createdAt

      public CommentResponse createdAt(@Nonnull OffsetDateTime createdAt)
    • getCreatedAt

      @Nonnull public OffsetDateTime getCreatedAt()
      Get createdAt
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nonnull OffsetDateTime createdAt)
    • updatedAt

      public CommentResponse updatedAt(@Nonnull OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nonnull public OffsetDateTime getUpdatedAt()
      Get updatedAt
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nonnull OffsetDateTime 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 CommentResponse
    • fromJson

      public static CommentResponse fromJson(String jsonString) throws IOException
      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

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