Class SearchResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class SearchResponse extends Object
Flat, ranked-by-type list of search hits the command palette groups for display. Capped per resource family so one noisy type can't crowd out the rest.
  • Field Details

  • Constructor Details

    • SearchResponse

      public SearchResponse()
  • Method Details

    • hits

      public SearchResponse hits(@Nonnull List<SearchHit> hits)
    • addHitsItem

      public SearchResponse addHitsItem(SearchHit hitsItem)
    • getHits

      @Nonnull public List<SearchHit> getHits()
      Get hits
      Returns:
      hits
    • setHits

      public void setHits(@Nonnull List<SearchHit> hits)
    • 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 SearchResponse
    • fromJson

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

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