Class SuggestTokenizerBuilder

java.lang.Object
com.commercetools.history.models.common.SuggestTokenizerBuilder
All Implemented Interfaces:
Builder<SuggestTokenizer>

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

     SuggestTokenizer suggestTokenizer = SuggestTokenizer.builder()
             .type("{type}")
             .build()
 
  • Constructor Details

    • SuggestTokenizerBuilder

      public SuggestTokenizerBuilder()
  • Method Details

    • type

      public SuggestTokenizerBuilder type(String type)
      set the value to the type
      Parameters:
      type - value to be set
      Returns:
      Builder
    • getType

      public String getType()
      value of type}
      Returns:
      type
    • build

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

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

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

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