Class ListOpsCommentsResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ListOpsCommentsResponse extends Object
Response for `GET /api/admin/ops/{handle}/comments` — the thread, oldest first.
  • Field Details

  • Constructor Details

    • ListOpsCommentsResponse

      public ListOpsCommentsResponse()
  • Method Details

    • comments

      public ListOpsCommentsResponse comments(@Nonnull List<OpsComment> comments)
    • addCommentsItem

      public ListOpsCommentsResponse addCommentsItem(OpsComment commentsItem)
    • getComments

      @Nonnull public List<OpsComment> getComments()
      Get comments
      Returns:
      comments
    • setComments

      public void setComments(@Nonnull List<OpsComment> comments)
    • 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 ListOpsCommentsResponse
    • fromJson

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

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