Class OrderSearchFullTextValueBuilder

java.lang.Object
com.commercetools.api.models.order.OrderSearchFullTextValueBuilder
All Implemented Interfaces:
Builder<OrderSearchFullTextValue>

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

     OrderSearchFullTextValue orderSearchFullTextValue = OrderSearchFullTextValue.builder()
             .field("{field}")
             .value("{value}")
             .build()
 
  • Constructor Details

    • OrderSearchFullTextValueBuilder

      public OrderSearchFullTextValueBuilder()
  • Method Details

    • field

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

      public OrderSearchFullTextValueBuilder boost(@Nullable Integer boost)
      set the value to the boost
      Parameters:
      boost - value to be set
      Returns:
      Builder
    • customType

      public OrderSearchFullTextValueBuilder customType(@Nullable OrderSearchCustomType customType)

      Possible values for the customType property on simple expressions indicating the data type of the field.

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

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

      public OrderSearchFullTextValueBuilder language(@Nullable String language)
      set the value to the language
      Parameters:
      language - value to be set
      Returns:
      Builder
    • mustMatch

      public OrderSearchFullTextValueBuilder mustMatch(@Nullable OrderSearchMatchType 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 Integer getBoost()
      value of boost}
      Returns:
      boost
    • getCustomType

      @Nullable public OrderSearchCustomType getCustomType()

      Possible values for the customType property on simple expressions indicating the data type of the field.

      Returns:
      customType
    • getValue

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

      @Nullable public String getLanguage()
      value of language}
      Returns:
      language
    • getMustMatch

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

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

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

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

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