Class IndexTemplateDataStreamConfiguration.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexTemplateDataStreamConfiguration.Builder>
co.elastic.clients.elasticsearch.indices.IndexTemplateDataStreamConfiguration.Builder
- All Implemented Interfaces:
WithJson<IndexTemplateDataStreamConfiguration.Builder>
,ObjectBuilder<IndexTemplateDataStreamConfiguration>
- Enclosing class:
- IndexTemplateDataStreamConfiguration
public static class IndexTemplateDataStreamConfiguration.Builder extends WithJsonObjectBuilderBase<IndexTemplateDataStreamConfiguration.Builder> implements ObjectBuilder<IndexTemplateDataStreamConfiguration>
Builder for
IndexTemplateDataStreamConfiguration
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IndexTemplateDataStreamConfiguration.Builder
allowCustomRouting(java.lang.Boolean value)
If true, the data stream supports custom routing.IndexTemplateDataStreamConfiguration
build()
Builds aIndexTemplateDataStreamConfiguration
.IndexTemplateDataStreamConfiguration.Builder
hidden(java.lang.Boolean value)
If true, the data stream is hidden.protected IndexTemplateDataStreamConfiguration.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowCustomRouting
public final IndexTemplateDataStreamConfiguration.Builder allowCustomRouting(@Nullable java.lang.Boolean value)If true, the data stream supports custom routing.API name:
allow_custom_routing
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IndexTemplateDataStreamConfiguration.Builder>
-
build
Builds aIndexTemplateDataStreamConfiguration
.- Specified by:
build
in interfaceObjectBuilder<IndexTemplateDataStreamConfiguration>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.