Class DeleteDanglingIndexRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteDanglingIndexRequest.Builder>
co.elastic.clients.elasticsearch.dangling_indices.DeleteDanglingIndexRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteDanglingIndexRequest.Builder>
,ObjectBuilder<DeleteDanglingIndexRequest>
- Enclosing class:
- DeleteDanglingIndexRequest
public static class DeleteDanglingIndexRequest.Builder
extends RequestBase.AbstractBuilder<DeleteDanglingIndexRequest.Builder>
implements ObjectBuilder<DeleteDanglingIndexRequest>
Builder for
DeleteDanglingIndexRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptDataLoss
(boolean value) Required - This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index.build()
Builds aDeleteDanglingIndexRequest
.Required - The UUID of the index to delete.masterTimeout
(Time value) Specify timeout for connection to masterSpecify timeout for connection to masterprotected DeleteDanglingIndexRequest.Builder
self()
Explicit operation timeoutExplicit operation timeoutMethods 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
-
acceptDataLoss
Required - This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index.API name:
accept_data_loss
-
indexUuid
Required - The UUID of the index to delete. Use the get dangling indices API to find the UUID.API name:
index_uuid
-
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout
-
masterTimeout
public final DeleteDanglingIndexRequest.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 DeleteDanglingIndexRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Explicit operation timeoutAPI name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<DeleteDanglingIndexRequest.Builder>
-
build
Builds aDeleteDanglingIndexRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteDanglingIndexRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-