Class SearchExistsValueBuilder

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

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

     SearchExistsValue searchExistsValue = SearchExistsValue.builder()
             .field("{field}")
             .build()
 
  • Constructor Details

    • SearchExistsValueBuilder

      public SearchExistsValueBuilder()
  • Method Details

    • field

      public SearchExistsValueBuilder 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 SearchExistsValueBuilder 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
    • language

      public SearchExistsValueBuilder 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
    • 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
    • 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
    • build

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

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

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

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