Class OrderSearchAnyValueBuilder

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

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

     OrderSearchAnyValue orderSearchAnyValue = OrderSearchAnyValue.builder()
             .field("{field}")
             .build()
 
  • Constructor Details

    • OrderSearchAnyValueBuilder

      public OrderSearchAnyValueBuilder()
  • Method Details

    • field

      public OrderSearchAnyValueBuilder 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
    • customType

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

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

      public OrderSearchAnyValueBuilder value(Object value)
      set the value to the value
      Parameters:
      value - value to be set
      Returns:
      Builder
    • language

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

      public OrderSearchAnyValueBuilder 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 Integer getBoost()
      value of boost}
      Returns:
      boost
    • getCustomType

      @Nullable public OrderSearchCustomType getCustomType()

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

      Returns:
      customType
    • getValue

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

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

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

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

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

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

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