Class PutIndicesSettingsRequest.Builder
- All Implemented Interfaces:
WithJson<PutIndicesSettingsRequest.Builder>,ObjectBuilder<PutIndicesSettingsRequest>
- Enclosing class:
- PutIndicesSettingsRequest
PutIndicesSettingsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowNoIndices(Boolean value) A setting that does two separate checks on the index expression.build()Builds aPutIndicesSettingsRequest.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.expandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.flatSettings(Boolean value) Iftrue, returns settings in flat format.ignoreUnavailable(Boolean value) Iffalse, the request returns an error if it targets a concrete (non-wildcarded) index, alias, or data stream that is missing, closed, or otherwise unavailable.Comma-separated list of data streams, indices, and aliases used to limit the request.Comma-separated list of data streams, indices, and aliases used to limit the request.masterTimeout(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.preserveExisting(Boolean value) Iftrue, existing index settings remain unchanged.Whether to close and reopen the index to apply non-dynamic settings.protected PutIndicesSettingsRequest.Builderself()settings(IndexSettings value) Required - Request body.Required - Request body.Period to wait for a response.Period to wait for a response.withJson(jakarta.json.stream.JsonParser parser, JsonpMapper mapper) Sets additional properties values on this object by reading from a JSON input.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowNoIndices
A setting that does two separate checks on the index expression. Iffalse, the request returns an error (1) if any wildcard expression (including_alland*) resolves to zero matching indices or (2) if the complete set of resolved indices, aliases or data streams is empty after all expressions are evaluated. Iftrue, index expressions that resolve to no indices are allowed and the request returns an empty result.API name:
allow_no_indices -
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final PutIndicesSettingsRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
flatSettings
Iftrue, returns settings in flat format.API name:
flat_settings -
index
Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use*or_all.API name:
indexAdds all elements of
listtoindex. -
index
Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use*or_all.API name:
indexAdds one or more values to
index. -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
public final PutIndicesSettingsRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
preserveExisting
Iftrue, existing index settings remain unchanged.API name:
preserve_existing -
reopen
Whether to close and reopen the index to apply non-dynamic settings. If set totruethe indices to which the settings are being applied will be closed temporarily and then reopened in order to apply the changes.API name:
reopen -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
public final PutIndicesSettingsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
settings
Required - Request body. -
settings
public final PutIndicesSettingsRequest.Builder settings(Function<IndexSettings.Builder, ObjectBuilder<IndexSettings>> fn) Required - Request body. -
withJson
public PutIndicesSettingsRequest.Builder withJson(jakarta.json.stream.JsonParser parser, JsonpMapper mapper) Description copied from interface:WithJsonSets additional properties values on this object by reading from a JSON input.This is a "partial deserialization": properties that were already set keep their value if they're not present in the JSON input, and properties can also be set after having called this method, including overriding those read from the JSON input.
This low level variant of
withJsongives full control on the json parser and object mapper. Most of the time usingWithJson.withJson(Reader)andWithJson.withJson(InputStream)will be more convenient.- Specified by:
withJsonin interfaceWithJson<PutIndicesSettingsRequest.Builder>- Overrides:
withJsonin classWithJsonObjectBuilderBase<PutIndicesSettingsRequest.Builder>- Parameters:
parser- the JSONP parsermapper- the JSONP mapper used to deserialize values and nested objects- Returns:
- this object
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutIndicesSettingsRequest.Builder>
-
build
Builds aPutIndicesSettingsRequest.- Specified by:
buildin interfaceObjectBuilder<PutIndicesSettingsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-