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) Required - 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) Specify timeout for connection to masterSpecify timeout for connection to masterprotected ImportDanglingIndexRequest.Builderself()Explicit operation timeoutExplicit operation timeoutMethods 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
Required - 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
Specify timeout for connection to masterAPI name:
master_timeout -
masterTimeout
public final ImportDanglingIndexRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Specify timeout for connection to masterAPI name:
master_timeout -
timeout
Explicit operation timeoutAPI name:
timeout -
timeout
public final ImportDanglingIndexRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Explicit operation timeoutAPI 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.
-