Class ContestListDTO

java.lang.Object
org.openapitools.client.model.ContestListDTO

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-04T04:53:25.428492722Z[Etc/UTC]", comments="Generator version: 7.8.0") public class ContestListDTO extends Object
This class represents a page of contests.
  • Field Details

  • Constructor Details

    • ContestListDTO

      public ContestListDTO()
  • Method Details

    • offset

      public ContestListDTO offset(Integer offset)
    • getOffset

      @Nullable public Integer getOffset()
      Offset from the beginning of the collection of contests on the server.
      Returns:
      offset
    • setOffset

      public void setOffset(Integer offset)
    • limit

      public ContestListDTO limit(Integer limit)
    • getLimit

      @Nullable public Integer getLimit()
      Maximum number of elements the page was originally requested to have.
      Returns:
      limit
    • setLimit

      public void setLimit(Integer limit)
    • total

      public ContestListDTO total(Integer total)
    • getTotal

      @Nullable public Integer getTotal()
      Total number of contests that are available, that matched the original query but may not have been returned because of paging limits set.
      Returns:
      total
    • setTotal

      public void setTotal(Integer total)
    • keywords

      public ContestListDTO keywords(String keywords)
    • getKeywords

      @Nullable public String getKeywords()
      Used as a description of the query used to obtain the contests.
      Returns:
      keywords
    • setKeywords

      public void setKeywords(String keywords)
    • contests

      public ContestListDTO contests(List<ContestDTO> contests)
    • addContestsItem

      public ContestListDTO addContestsItem(ContestDTO contestsItem)
    • getContests

      @Nullable public List<ContestDTO> getContests()
      ${api.model.ContestListDTO.contests}
      Returns:
      contests
    • setContests

      public void setContests(List<ContestDTO> contests)
    • count

      public ContestListDTO count(Integer count)
    • getCount

      @Nullable public Integer getCount()
      The number of elements in the contest field.
      Returns:
      count
    • setCount

      public void setCount(Integer count)
    • 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
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).
    • 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 ContestListDTO
    • fromJson

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

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