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.BuildermappingsOverride(TypeMapping value) Mappings overrides to be applied to the destination index (optional)final CreateFrom.BuilderMappings overrides to be applied to the destination index (optional)final CreateFrom.BuilderremoveIndexBlocks(Boolean value) If index blocks should be removed when creating destination index (optional)protected CreateFrom.Builderself()final CreateFrom.BuildersettingsOverride(IndexSettings value) Settings overrides to be applied to the destination index (optional)final CreateFrom.BuilderSettings overrides to be applied to the destination index (optional)Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
selfin classWithJsonObjectBuilderBase<CreateFrom.Builder>
-
build
Builds aCreateFrom.- Specified by:
buildin interfaceObjectBuilder<CreateFrom>- Throws:
NullPointerException- if some of the required fields are null.
-