Class AddBlockRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.AddBlockRequest
Adds a block to an index.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Endpoint<AddBlockRequest,
AddBlockResponse, ErrorResponse> Endpoint "indices.add_block
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Whether to ignore if a wildcard indices expression resolves into no concrete indices.final IndicesBlockOptions
block()
Required - The block to add (one of read, write, read_only or metadata)final List<ExpandWildcard>
Whether to expand wildcard expression to concrete indices that are open, closed or both.final Boolean
Whether specified concrete indices should be ignored when unavailable (missing or closed)final String
index()
Required - A comma separated list of indices to add a block tofinal Time
Specify timeout for connection to masterstatic AddBlockRequest
final Time
timeout()
Explicit operation timeoutMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "indices.add_block
".
-
-
Method Details
-
of
public static AddBlockRequest of(Function<AddBlockRequest.Builder, ObjectBuilder<AddBlockRequest>> fn) -
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_all
string or when no indices have been specified)API name:
allow_no_indices
-
block
Required - The block to add (one of read, write, read_only or metadata)API name:
block
-
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards
-
index
Required - A comma separated list of indices to add a block toAPI name:
index
-
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout
-
timeout
Explicit operation timeoutAPI name:
timeout
-