java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.requests.openprices.PriceRequest

public record PriceRequest(String categoryTag, LocalDateTime createdGte, LocalDateTime createdLte, String currency, LocalDate date, LocalDate dateGt, LocalDate dateGte, LocalDate dateLt, LocalDate dateLte, Integer dateMonth, Integer dateYear, String discountType, String labelsTagsContains, Integer locationId, Boolean locationIdIsNull, Long locationOsmId, String locationOsmType, String orderBy, String originsTagsContains, String owner, Integer page, Double price, Double priceGt, Double priceGte, Double priceLt, Double priceLte, Boolean priceIsDiscounted, String productCategoriesTagsContains, String productCode, Integer productId, Boolean productIdIsNull, Integer proofId, Boolean proofIdIsNull, Integer size, String type) extends Record
  • Constructor Details

    • PriceRequest

      public PriceRequest(String categoryTag, LocalDateTime createdGte, LocalDateTime createdLte, String currency, LocalDate date, LocalDate dateGt, LocalDate dateGte, LocalDate dateLt, LocalDate dateLte, Integer dateMonth, Integer dateYear, String discountType, String labelsTagsContains, Integer locationId, Boolean locationIdIsNull, Long locationOsmId, String locationOsmType, String orderBy, String originsTagsContains, String owner, Integer page, Double price, Double priceGt, Double priceGte, Double priceLt, Double priceLte, Boolean priceIsDiscounted, String productCategoriesTagsContains, String productCode, Integer productId, Boolean productIdIsNull, Integer proofId, Boolean proofIdIsNull, Integer size, String type)
      Creates an instance of a PriceRequest record class.
      Parameters:
      categoryTag - the value for the categoryTag record component
      createdGte - the value for the createdGte record component
      createdLte - the value for the createdLte record component
      currency - the value for the currency record component
      date - the value for the date record component
      dateGt - the value for the dateGt record component
      dateGte - the value for the dateGte record component
      dateLt - the value for the dateLt record component
      dateLte - the value for the dateLte record component
      dateMonth - the value for the dateMonth record component
      dateYear - the value for the dateYear record component
      discountType - the value for the discountType record component
      labelsTagsContains - the value for the labelsTagsContains record component
      locationId - the value for the locationId record component
      locationIdIsNull - the value for the locationIdIsNull record component
      locationOsmId - the value for the locationOsmId record component
      locationOsmType - the value for the locationOsmType record component
      orderBy - the value for the orderBy record component
      originsTagsContains - the value for the originsTagsContains record component
      owner - the value for the owner record component
      page - the value for the page record component
      price - the value for the price record component
      priceGt - the value for the priceGt record component
      priceGte - the value for the priceGte record component
      priceLt - the value for the priceLt record component
      priceLte - the value for the priceLte record component
      priceIsDiscounted - the value for the priceIsDiscounted record component
      productCategoriesTagsContains - the value for the productCategoriesTagsContains record component
      productCode - the value for the productCode record component
      productId - the value for the productId record component
      productIdIsNull - the value for the productIdIsNull record component
      proofId - the value for the proofId record component
      proofIdIsNull - the value for the proofIdIsNull record component
      size - the value for the size record component
      type - the value for the type record component
  • Method Details

    • builder

      public static PriceRequest.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.
    • categoryTag

      public String categoryTag()
      Returns the value of the categoryTag record component.
      Returns:
      the value of the categoryTag record component
    • createdGte

      public LocalDateTime createdGte()
      Returns the value of the createdGte record component.
      Returns:
      the value of the createdGte record component
    • createdLte

      public LocalDateTime createdLte()
      Returns the value of the createdLte record component.
      Returns:
      the value of the createdLte record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • date

      public LocalDate date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • dateGt

      public LocalDate dateGt()
      Returns the value of the dateGt record component.
      Returns:
      the value of the dateGt record component
    • dateGte

      public LocalDate dateGte()
      Returns the value of the dateGte record component.
      Returns:
      the value of the dateGte record component
    • dateLt

      public LocalDate dateLt()
      Returns the value of the dateLt record component.
      Returns:
      the value of the dateLt record component
    • dateLte

      public LocalDate dateLte()
      Returns the value of the dateLte record component.
      Returns:
      the value of the dateLte record component
    • dateMonth

      public Integer dateMonth()
      Returns the value of the dateMonth record component.
      Returns:
      the value of the dateMonth record component
    • dateYear

      public Integer dateYear()
      Returns the value of the dateYear record component.
      Returns:
      the value of the dateYear record component
    • discountType

      public String discountType()
      Returns the value of the discountType record component.
      Returns:
      the value of the discountType record component
    • labelsTagsContains

      public String labelsTagsContains()
      Returns the value of the labelsTagsContains record component.
      Returns:
      the value of the labelsTagsContains record component
    • locationId

      public Integer locationId()
      Returns the value of the locationId record component.
      Returns:
      the value of the locationId record component
    • locationIdIsNull

      public Boolean locationIdIsNull()
      Returns the value of the locationIdIsNull record component.
      Returns:
      the value of the locationIdIsNull record component
    • locationOsmId

      public Long locationOsmId()
      Returns the value of the locationOsmId record component.
      Returns:
      the value of the locationOsmId record component
    • locationOsmType

      public String locationOsmType()
      Returns the value of the locationOsmType record component.
      Returns:
      the value of the locationOsmType record component
    • orderBy

      public String orderBy()
      Returns the value of the orderBy record component.
      Returns:
      the value of the orderBy record component
    • originsTagsContains

      public String originsTagsContains()
      Returns the value of the originsTagsContains record component.
      Returns:
      the value of the originsTagsContains record component
    • owner

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

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

      public Double price()
      Returns the value of the price record component.
      Returns:
      the value of the price record component
    • priceGt

      public Double priceGt()
      Returns the value of the priceGt record component.
      Returns:
      the value of the priceGt record component
    • priceGte

      public Double priceGte()
      Returns the value of the priceGte record component.
      Returns:
      the value of the priceGte record component
    • priceLt

      public Double priceLt()
      Returns the value of the priceLt record component.
      Returns:
      the value of the priceLt record component
    • priceLte

      public Double priceLte()
      Returns the value of the priceLte record component.
      Returns:
      the value of the priceLte record component
    • priceIsDiscounted

      public Boolean priceIsDiscounted()
      Returns the value of the priceIsDiscounted record component.
      Returns:
      the value of the priceIsDiscounted record component
    • productCategoriesTagsContains

      public String productCategoriesTagsContains()
      Returns the value of the productCategoriesTagsContains record component.
      Returns:
      the value of the productCategoriesTagsContains record component
    • productCode

      public String productCode()
      Returns the value of the productCode record component.
      Returns:
      the value of the productCode record component
    • productId

      public Integer productId()
      Returns the value of the productId record component.
      Returns:
      the value of the productId record component
    • productIdIsNull

      public Boolean productIdIsNull()
      Returns the value of the productIdIsNull record component.
      Returns:
      the value of the productIdIsNull record component
    • proofId

      public Integer proofId()
      Returns the value of the proofId record component.
      Returns:
      the value of the proofId record component
    • proofIdIsNull

      public Boolean proofIdIsNull()
      Returns the value of the proofIdIsNull record component.
      Returns:
      the value of the proofIdIsNull record component
    • size

      public Integer size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component