Class SearchFullTextPrefixValueBuilder

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

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

     SearchFullTextPrefixValue searchFullTextPrefixValue = SearchFullTextPrefixValue.builder()
             .field("{field}")
             .build()
 
  • Constructor Details

    • SearchFullTextPrefixValueBuilder

      public SearchFullTextPrefixValueBuilder()
  • Method Details

    • field

      set the value to the field
      Parameters:
      field - value to be set
      Returns:
      Builder
    • boost

      set the value to the boost
      Parameters:
      boost - value to be set
      Returns:
      Builder
    • fieldType

      Possible values for the fieldType property on query expressions indicating the data type of the field.

      Parameters:
      fieldType - value to be set
      Returns:
      Builder
    • value

      set the value to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • language

      String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

      Parameters:
      language - value to be set
      Returns:
      Builder
    • mustMatch

      set the value to the mustMatch
      Parameters:
      mustMatch - value to be set
      Returns:
      Builder
    • getField

      public String getField()
      value of field}
      Returns:
      field
    • getBoost

      @Nullable public Double getBoost()
      value of boost}
      Returns:
      boost
    • getFieldType

      @Nullable public SearchFieldType getFieldType()

      Possible values for the fieldType property on query expressions indicating the data type of the field.

      Returns:
      fieldType
    • getValue

      public Object getValue()
      value of value}
      Returns:
      value
    • getLanguage

      @Nullable public String getLanguage()

      String value specifying linguistic and regional preferences using the IETF language tag format, as described in BCP 47. The format combines language, script, and region using hyphen-separated subtags. For example: en, en-US, zh-Hans-SG.

      Returns:
      language
    • getMustMatch

      @Nullable public SearchMatchType getMustMatch()
      value of mustMatch}
      Returns:
      mustMatch
    • build

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

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

      factory method for an instance of SearchFullTextPrefixValueBuilder
      Returns:
      builder
    • of

      create builder for SearchFullTextPrefixValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder