Package com.yahoo.document.config
Class DocumenttypesConfig.Builder
- java.lang.Object
-
- com.yahoo.document.config.DocumenttypesConfig.Builder
-
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
,com.yahoo.config.ConfigInstance.Builder
- Enclosing class:
- DocumenttypesConfig
public static class DocumenttypesConfig.Builder extends Object implements com.yahoo.config.ConfigInstance.Builder
-
-
Field Summary
Fields Modifier and Type Field Description List<DocumenttypesConfig.Documenttype.Builder>
documenttype
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(DocumenttypesConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumenttypesConfig
build()
boolean
dispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer)
DocumenttypesConfig.Builder
documenttype(DocumenttypesConfig.Documenttype.Builder __builder)
Add the given builder to this builder's list of Documenttype buildersDocumenttypesConfig.Builder
documenttype(Consumer<DocumenttypesConfig.Documenttype.Builder> __func)
Make a new builder and run the supplied function on it before adding it to the listDocumenttypesConfig.Builder
documenttype(List<DocumenttypesConfig.Documenttype.Builder> __builders)
Set the given list as this builder's list of Documenttype buildersDocumenttypesConfig.Builder
enablecompression(boolean __value)
boolean
getApplyOnRestart()
String
getDefMd5()
String
getDefName()
String
getDefNamespace()
void
setApplyOnRestart(boolean applyOnRestart)
DocumenttypesConfig.Builder
usev8geopositions(boolean __value)
-
-
-
Field Detail
-
documenttype
public List<DocumenttypesConfig.Documenttype.Builder> documenttype
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DocumenttypesConfig config)
-
-
Method Detail
-
enablecompression
public DocumenttypesConfig.Builder enablecompression(boolean __value)
-
usev8geopositions
public DocumenttypesConfig.Builder usev8geopositions(boolean __value)
-
documenttype
public DocumenttypesConfig.Builder documenttype(DocumenttypesConfig.Documenttype.Builder __builder)
Add the given builder to this builder's list of Documenttype builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
documenttype
public DocumenttypesConfig.Builder documenttype(Consumer<DocumenttypesConfig.Documenttype.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
-
documenttype
public DocumenttypesConfig.Builder documenttype(List<DocumenttypesConfig.Documenttype.Builder> __builders)
Set the given list as this builder's list of Documenttype builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
dispatchGetConfig
public final boolean dispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer)
- Specified by:
dispatchGetConfig
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefMd5
public final String getDefMd5()
- Specified by:
getDefMd5
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefName
public final String getDefName()
- Specified by:
getDefName
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefNamespace
public final String getDefNamespace()
- Specified by:
getDefNamespace
in interfacecom.yahoo.config.ConfigInstance.Builder
-
getApplyOnRestart
public final boolean getApplyOnRestart()
- Specified by:
getApplyOnRestart
in interfacecom.yahoo.config.ConfigInstance.Builder
-
setApplyOnRestart
public final void setApplyOnRestart(boolean applyOnRestart)
- Specified by:
setApplyOnRestart
in interfacecom.yahoo.config.ConfigInstance.Builder
-
build
public DocumenttypesConfig build()
-
-