Class QueryProfilesConfig.Queryprofile.Builder
- java.lang.Object
-
- com.yahoo.search.query.profile.config.QueryProfilesConfig.Queryprofile.Builder
-
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
- Enclosing class:
- QueryProfilesConfig.Queryprofile
public static class QueryProfilesConfig.Queryprofile.Builder extends Object implements com.yahoo.config.ConfigBuilder
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
dimensions
List<String>
inherit
List<QueryProfilesConfig.Queryprofile.Property.Builder>
property
List<QueryProfilesConfig.Queryprofile.Queryprofilevariant.Builder>
queryprofilevariant
List<QueryProfilesConfig.Queryprofile.Reference.Builder>
reference
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(QueryProfilesConfig.Queryprofile config)
-
Method Summary
-
-
-
Field Detail
-
property
public List<QueryProfilesConfig.Queryprofile.Property.Builder> property
-
reference
public List<QueryProfilesConfig.Queryprofile.Reference.Builder> reference
-
queryprofilevariant
public List<QueryProfilesConfig.Queryprofile.Queryprofilevariant.Builder> queryprofilevariant
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(QueryProfilesConfig.Queryprofile config)
-
-
Method Detail
-
id
public QueryProfilesConfig.Queryprofile.Builder id(String __value)
-
type
public QueryProfilesConfig.Queryprofile.Builder type(String __value)
-
inherit
public QueryProfilesConfig.Queryprofile.Builder inherit(String __value)
-
inherit
public QueryProfilesConfig.Queryprofile.Builder inherit(Collection<String> __values)
-
dimensions
public QueryProfilesConfig.Queryprofile.Builder dimensions(String __value)
-
dimensions
public QueryProfilesConfig.Queryprofile.Builder dimensions(Collection<String> __values)
-
property
public QueryProfilesConfig.Queryprofile.Builder property(QueryProfilesConfig.Queryprofile.Property.Builder __builder)
Add the given builder to this builder's list of Property builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
property
public QueryProfilesConfig.Queryprofile.Builder property(Consumer<QueryProfilesConfig.Queryprofile.Property.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
-
property
public QueryProfilesConfig.Queryprofile.Builder property(List<QueryProfilesConfig.Queryprofile.Property.Builder> __builders)
Set the given list as this builder's list of Property builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
reference
public QueryProfilesConfig.Queryprofile.Builder reference(QueryProfilesConfig.Queryprofile.Reference.Builder __builder)
Add the given builder to this builder's list of Reference builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
reference
public QueryProfilesConfig.Queryprofile.Builder reference(Consumer<QueryProfilesConfig.Queryprofile.Reference.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
-
reference
public QueryProfilesConfig.Queryprofile.Builder reference(List<QueryProfilesConfig.Queryprofile.Reference.Builder> __builders)
Set the given list as this builder's list of Reference builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
queryprofilevariant
public QueryProfilesConfig.Queryprofile.Builder queryprofilevariant(QueryProfilesConfig.Queryprofile.Queryprofilevariant.Builder __builder)
Add the given builder to this builder's list of Queryprofilevariant builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
queryprofilevariant
public QueryProfilesConfig.Queryprofile.Builder queryprofilevariant(Consumer<QueryProfilesConfig.Queryprofile.Queryprofilevariant.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
-
queryprofilevariant
public QueryProfilesConfig.Queryprofile.Builder queryprofilevariant(List<QueryProfilesConfig.Queryprofile.Queryprofilevariant.Builder> __builders)
Set the given list as this builder's list of Queryprofilevariant builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
build
public QueryProfilesConfig.Queryprofile build()
-
-