Class SearchQueryBuilder

java.lang.Object
com.commercetools.api.models.search.SearchQueryBuilder
All Implemented Interfaces:
Builder<SearchQuery>

public class SearchQueryBuilder extends Object implements Builder<SearchQuery>
SearchQueryBuilder
Example to create an instance using the builder pattern

     SearchQuery searchQuery = SearchQuery.builder()
             .build()
 
  • Constructor Details

    • SearchQueryBuilder

      public SearchQueryBuilder()
  • Method Details

    • build

      public SearchQuery build()
      builds SearchQuery with checking for non-null required values
      Specified by:
      build in interface Builder<SearchQuery>
      Returns:
      SearchQuery
    • buildUnchecked

      public SearchQuery buildUnchecked()
      builds SearchQuery without checking for non-null required values
      Returns:
      SearchQuery
    • of

      public static SearchQueryBuilder of()
      factory method for an instance of SearchQueryBuilder
      Returns:
      builder
    • of

      public static SearchQueryBuilder of(SearchQuery template)
      create builder for SearchQuery instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder