All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.history.models.common.SuggestTokenizerBuilder Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version

package com.commercetools.history.models.common;

import java.util.*;

import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;

/**
 * SuggestTokenizerBuilder
 * 
* Example to create an instance using the builder pattern *
*

 *     SuggestTokenizer suggestTokenizer = SuggestTokenizer.builder()
 *             .type("{type}")
 *             .build()
 * 
*
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class SuggestTokenizerBuilder implements Builder { private String type; /** * set the value to the type * @param type value to be set * @return Builder */ public SuggestTokenizerBuilder type(final String type) { this.type = type; return this; } /** * value of type} * @return type */ public String getType() { return this.type; } /** * builds SuggestTokenizer with checking for non-null required values * @return SuggestTokenizer */ public SuggestTokenizer build() { Objects.requireNonNull(type, SuggestTokenizer.class + ": type is missing"); return new SuggestTokenizerImpl(type); } /** * builds SuggestTokenizer without checking for non-null required values * @return SuggestTokenizer */ public SuggestTokenizer buildUnchecked() { return new SuggestTokenizerImpl(type); } /** * factory method for an instance of SuggestTokenizerBuilder * @return builder */ public static SuggestTokenizerBuilder of() { return new SuggestTokenizerBuilder(); } /** * create builder for SuggestTokenizer instance * @param template instance with prefilled values for the builder * @return builder */ public static SuggestTokenizerBuilder of(final SuggestTokenizer template) { SuggestTokenizerBuilder builder = new SuggestTokenizerBuilder(); builder.type = template.getType(); return builder; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy