Class CreateFrom.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CreateFrom.Builder>
co.elastic.clients.elasticsearch.indices.create_from.CreateFrom.Builder
- All Implemented Interfaces:
WithJson<CreateFrom.Builder>
,ObjectBuilder<CreateFrom>
- Enclosing class:
- CreateFrom
public static class CreateFrom.Builder
extends WithJsonObjectBuilderBase<CreateFrom.Builder>
implements ObjectBuilder<CreateFrom>
Builder for
CreateFrom
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCreateFrom
.final CreateFrom.Builder
mappingsOverride
(TypeMapping value) Mappings overrides to be applied to the destination index (optional)final CreateFrom.Builder
Mappings overrides to be applied to the destination index (optional)final CreateFrom.Builder
removeIndexBlocks
(Boolean value) If index blocks should be removed when creating destination index (optional)protected CreateFrom.Builder
self()
final CreateFrom.Builder
settingsOverride
(IndexSettings value) Settings overrides to be applied to the destination index (optional)final CreateFrom.Builder
Settings overrides to be applied to the destination index (optional)Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mappingsOverride
Mappings overrides to be applied to the destination index (optional)API name:
mappings_override
-
mappingsOverride
public final CreateFrom.Builder mappingsOverride(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) Mappings overrides to be applied to the destination index (optional)API name:
mappings_override
-
settingsOverride
Settings overrides to be applied to the destination index (optional)API name:
settings_override
-
settingsOverride
public final CreateFrom.Builder settingsOverride(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Settings overrides to be applied to the destination index (optional)API name:
settings_override
-
removeIndexBlocks
If index blocks should be removed when creating destination index (optional)API name:
remove_index_blocks
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CreateFrom.Builder>
-
build
Builds aCreateFrom
.- Specified by:
build
in interfaceObjectBuilder<CreateFrom>
- Throws:
NullPointerException
- if some of the required fields are null.
-