Class SearchExactValueBuilder

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

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

     SearchExactValue searchExactValue = SearchExactValue.builder()
             .field("{field}")
             .build()
 
  • Constructor Details

    • SearchExactValueBuilder

      public SearchExactValueBuilder()
  • Method Details

    • field

      public SearchExactValueBuilder field(String 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

      public SearchExactValueBuilder fieldType(@Nullable SearchFieldType 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
    • values

      public SearchExactValueBuilder values(@Nullable Object... values)
      set values to the values
      Parameters:
      values - value to be set
      Returns:
      Builder
    • values

      public SearchExactValueBuilder values(@Nullable List<Object> values)
      set value to the values
      Parameters:
      values - value to be set
      Returns:
      Builder
    • plusValues

      public SearchExactValueBuilder plusValues(@Nullable Object... values)
      add values to the values
      Parameters:
      values - value to be set
      Returns:
      Builder
    • language

      public SearchExactValueBuilder language(@Nullable String 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
    • caseInsensitive

      public SearchExactValueBuilder caseInsensitive(@Nullable Boolean caseInsensitive)
      set the value to the caseInsensitive
      Parameters:
      caseInsensitive - 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

      @Nullable public Object getValue()
      value of value}
      Returns:
      value
    • getValues

      @Nullable public List<Object> getValues()
      value of values}
      Returns:
      values
    • 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
    • getCaseInsensitive

      @Nullable public Boolean getCaseInsensitive()
      value of caseInsensitive}
      Returns:
      caseInsensitive
    • build

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

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

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

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