Interface ProductSearchResult


public interface ProductSearchResult
ProductSearchResult
Example to create an instance using the builder pattern

     ProductSearchResult productSearchResult = ProductSearchResult.builder()
             .id("{id}")
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the Product.

      Returns:
      id
    • getProductProjection

      @Valid @Valid ProductProjection getProductProjection()

      Contains Product Projection data for Products matching the projection field in the Search Products request.

      Returns:
      productProjection
    • getMatchingVariants

      @Valid @Valid ProductSearchMatchingVariants getMatchingVariants()

      Describes the variants that matched the search criteria.

      Returns:
      matchingVariants
    • setId

      void setId(String id)

      Unique identifier of the Product.

      Parameters:
      id - value to be set
    • setProductProjection

      void setProductProjection(ProductProjection productProjection)

      Contains Product Projection data for Products matching the projection field in the Search Products request.

      Parameters:
      productProjection - value to be set
    • setMatchingVariants

      void setMatchingVariants(ProductSearchMatchingVariants matchingVariants)

      Describes the variants that matched the search criteria.

      Parameters:
      matchingVariants - value to be set
    • of

      static ProductSearchResult of()
      factory method
      Returns:
      instance of ProductSearchResult
    • of

      factory method to create a shallow copy ProductSearchResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ProductSearchResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ProductSearchResultBuilder builder()
      builder factory method for ProductSearchResult
      Returns:
      builder
    • builder

      create builder for ProductSearchResult instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductSearchResult

      default <T> T withProductSearchResult(Function<ProductSearchResult,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ProductSearchResult> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference