Package com.yahoo.search.federation
Class FederationConfig.Target.Builder
- java.lang.Object
-
- com.yahoo.search.federation.FederationConfig.Target.Builder
-
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
- Enclosing class:
- FederationConfig.Target
public static class FederationConfig.Target.Builder extends Object implements com.yahoo.config.ConfigBuilder
-
-
Field Summary
Fields Modifier and Type Field Description List<FederationConfig.Target.SearchChain.Builder>
searchChain
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(FederationConfig.Target config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FederationConfig.Target
build()
FederationConfig.Target.Builder
id(String __value)
FederationConfig.Target.Builder
searchChain(FederationConfig.Target.SearchChain.Builder __builder)
Add the given builder to this builder's list of SearchChain buildersFederationConfig.Target.Builder
searchChain(Consumer<FederationConfig.Target.SearchChain.Builder> __func)
Make a new builder and run the supplied function on it before adding it to the listFederationConfig.Target.Builder
searchChain(List<FederationConfig.Target.SearchChain.Builder> __builders)
Set the given list as this builder's list of SearchChain buildersFederationConfig.Target.Builder
useByDefault(boolean __value)
-
-
-
Field Detail
-
searchChain
public List<FederationConfig.Target.SearchChain.Builder> searchChain
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(FederationConfig.Target config)
-
-
Method Detail
-
id
public FederationConfig.Target.Builder id(String __value)
-
useByDefault
public FederationConfig.Target.Builder useByDefault(boolean __value)
-
searchChain
public FederationConfig.Target.Builder searchChain(FederationConfig.Target.SearchChain.Builder __builder)
Add the given builder to this builder's list of SearchChain builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
searchChain
public FederationConfig.Target.Builder searchChain(Consumer<FederationConfig.Target.SearchChain.Builder> __func)
Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
searchChain
public FederationConfig.Target.Builder searchChain(List<FederationConfig.Target.SearchChain.Builder> __builders)
Set the given list as this builder's list of SearchChain builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
build
public FederationConfig.Target build()
-
-