Class ImportDanglingIndexRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ImportDanglingIndexRequest.Builder>
co.elastic.clients.elasticsearch.dangling_indices.ImportDanglingIndexRequest.Builder
- All Implemented Interfaces:
WithJson<ImportDanglingIndexRequest.Builder>,ObjectBuilder<ImportDanglingIndexRequest>
- Enclosing class:
- ImportDanglingIndexRequest
public static class ImportDanglingIndexRequest.Builder
extends RequestBase.AbstractBuilder<ImportDanglingIndexRequest.Builder>
implements ObjectBuilder<ImportDanglingIndexRequest>
Builder for
ImportDanglingIndexRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptDataLoss(Boolean value) This parameter must be set to true to import a dangling index.build()Builds aImportDanglingIndexRequest.Required - The UUID of the index to import.masterTimeout(Time value) The period to wait for a connection to the master node.The period to wait for a connection to the master node.protected ImportDanglingIndexRequest.Builderself()The period to wait for a response.The period to wait for a response.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
-
acceptDataLoss
This parameter must be set to true to import a dangling index. Because Elasticsearch cannot know where the dangling index data came from or determine which shard copies are fresh and which are stale, it cannot guarantee that the imported data represents the latest state of the index when it was last in the cluster.API name:
accept_data_loss -
indexUuid
Required - The UUID of the index to import. Use the get dangling indices API to locate the UUID.API name:
index_uuid -
masterTimeout
The period to wait for a connection to the master node.API name:
master_timeout -
masterTimeout
public final ImportDanglingIndexRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a connection to the master node.API name:
master_timeout -
timeout
The period to wait for a response.API name:
timeout -
timeout
public final ImportDanglingIndexRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a response.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ImportDanglingIndexRequest.Builder>
-
build
Builds aImportDanglingIndexRequest.- Specified by:
buildin interfaceObjectBuilder<ImportDanglingIndexRequest>- Throws:
NullPointerException- if some of the required fields are null.
-