Record Class ProductSearchRequest

java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.requests.ProductSearchRequest

public record ProductSearchRequest(String additivesTags, String allergensTags, String brandsTags, String categoriesTags, String countriesTagsEn, String embCodesTags, String labelsTags, String manufacturingPlacesTags, String nutritionGradesTags, String originsTags, String packagingTagsDe, String purchasePlacesTags, String statesTags, String storesTags, String tracesTags, String fields, String sortBy, Integer page, Integer pageSize) extends Record
  • Constructor Details

    • ProductSearchRequest

      public ProductSearchRequest(String additivesTags, String allergensTags, String brandsTags, String categoriesTags, String countriesTagsEn, String embCodesTags, String labelsTags, String manufacturingPlacesTags, String nutritionGradesTags, String originsTags, String packagingTagsDe, String purchasePlacesTags, String statesTags, String storesTags, String tracesTags, String fields, String sortBy, Integer page, Integer pageSize)
      Creates an instance of a ProductSearchRequest record class.
      Parameters:
      additivesTags - the value for the additivesTags record component
      allergensTags - the value for the allergensTags record component
      brandsTags - the value for the brandsTags record component
      categoriesTags - the value for the categoriesTags record component
      countriesTagsEn - the value for the countriesTagsEn record component
      embCodesTags - the value for the embCodesTags record component
      labelsTags - the value for the labelsTags record component
      manufacturingPlacesTags - the value for the manufacturingPlacesTags record component
      nutritionGradesTags - the value for the nutritionGradesTags record component
      originsTags - the value for the originsTags record component
      packagingTagsDe - the value for the packagingTagsDe record component
      purchasePlacesTags - the value for the purchasePlacesTags record component
      statesTags - the value for the statesTags record component
      storesTags - the value for the storesTags record component
      tracesTags - the value for the tracesTags record component
      fields - the value for the fields record component
      sortBy - the value for the sortBy record component
      page - the value for the page record component
      pageSize - the value for the pageSize record component
  • Method Details

    • builder

      public static ProductSearchRequest.Builder builder()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • additivesTags

      public String additivesTags()
      Returns the value of the additivesTags record component.
      Returns:
      the value of the additivesTags record component
    • allergensTags

      public String allergensTags()
      Returns the value of the allergensTags record component.
      Returns:
      the value of the allergensTags record component
    • brandsTags

      public String brandsTags()
      Returns the value of the brandsTags record component.
      Returns:
      the value of the brandsTags record component
    • categoriesTags

      public String categoriesTags()
      Returns the value of the categoriesTags record component.
      Returns:
      the value of the categoriesTags record component
    • countriesTagsEn

      public String countriesTagsEn()
      Returns the value of the countriesTagsEn record component.
      Returns:
      the value of the countriesTagsEn record component
    • embCodesTags

      public String embCodesTags()
      Returns the value of the embCodesTags record component.
      Returns:
      the value of the embCodesTags record component
    • labelsTags

      public String labelsTags()
      Returns the value of the labelsTags record component.
      Returns:
      the value of the labelsTags record component
    • manufacturingPlacesTags

      public String manufacturingPlacesTags()
      Returns the value of the manufacturingPlacesTags record component.
      Returns:
      the value of the manufacturingPlacesTags record component
    • nutritionGradesTags

      public String nutritionGradesTags()
      Returns the value of the nutritionGradesTags record component.
      Returns:
      the value of the nutritionGradesTags record component
    • originsTags

      public String originsTags()
      Returns the value of the originsTags record component.
      Returns:
      the value of the originsTags record component
    • packagingTagsDe

      public String packagingTagsDe()
      Returns the value of the packagingTagsDe record component.
      Returns:
      the value of the packagingTagsDe record component
    • purchasePlacesTags

      public String purchasePlacesTags()
      Returns the value of the purchasePlacesTags record component.
      Returns:
      the value of the purchasePlacesTags record component
    • statesTags

      public String statesTags()
      Returns the value of the statesTags record component.
      Returns:
      the value of the statesTags record component
    • storesTags

      public String storesTags()
      Returns the value of the storesTags record component.
      Returns:
      the value of the storesTags record component
    • tracesTags

      public String tracesTags()
      Returns the value of the tracesTags record component.
      Returns:
      the value of the tracesTags record component
    • fields

      public String fields()
      Returns the value of the fields record component.
      Returns:
      the value of the fields record component
    • sortBy

      public String sortBy()
      Returns the value of the sortBy record component.
      Returns:
      the value of the sortBy record component
    • page

      public Integer page()
      Returns the value of the page record component.
      Returns:
      the value of the page record component
    • pageSize

      public Integer pageSize()
      Returns the value of the pageSize record component.
      Returns:
      the value of the pageSize record component