Class AddBlockRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<AddBlockRequest.Builder>
co.elastic.clients.elasticsearch.indices.AddBlockRequest.Builder
- All Implemented Interfaces:
WithJson<AddBlockRequest.Builder>,ObjectBuilder<AddBlockRequest>
- Enclosing class:
- AddBlockRequest
public static class AddBlockRequest.Builder
extends RequestBase.AbstractBuilder<AddBlockRequest.Builder>
implements ObjectBuilder<AddBlockRequest>
Builder for
AddBlockRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AddBlockRequest.BuilderallowNoIndices(Boolean value) Whether to ignore if a wildcard indices expression resolves into no concrete indices.final AddBlockRequest.Builderblock(IndicesBlockOptions value) Required - The block to add (one of read, write, read_only or metadata)build()Builds aAddBlockRequest.final AddBlockRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.final AddBlockRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Whether to expand wildcard expression to concrete indices that are open, closed or both.final AddBlockRequest.BuilderignoreUnavailable(Boolean value) Whether specified concrete indices should be ignored when unavailable (missing or closed)final AddBlockRequest.BuilderRequired - A comma separated list of indices to add a block tofinal AddBlockRequest.BuildermasterTimeout(Time value) Specify timeout for connection to masterfinal AddBlockRequest.BuilderSpecify timeout for connection to masterprotected AddBlockRequest.Builderself()final AddBlockRequest.BuilderExplicit operation timeoutfinal AddBlockRequest.BuilderExplicit 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
-
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring 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_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final AddBlockRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
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 -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout -
timeout
Explicit operation timeoutAPI name:
timeout -
timeout
Explicit operation timeoutAPI name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<AddBlockRequest.Builder>
-
build
Builds aAddBlockRequest.- Specified by:
buildin interfaceObjectBuilder<AddBlockRequest>- Throws:
NullPointerException- if some of the required fields are null.
-