Class PutIndicesSettingsRequest.Builder
- All Implemented Interfaces:
WithJson<PutIndicesSettingsRequest.Builder>,ObjectBuilder<PutIndicesSettingsRequest>
- Enclosing class:
- PutIndicesSettingsRequest
public static class PutIndicesSettingsRequest.Builder extends WithJsonObjectBuilderBase<PutIndicesSettingsRequest.Builder> implements ObjectBuilder<PutIndicesSettingsRequest>
PutIndicesSettingsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PutIndicesSettingsRequest.BuilderallowNoIndices(java.lang.Boolean value)Whether to ignore if a wildcard indices expression resolves into no concrete indices.PutIndicesSettingsRequestbuild()Builds aPutIndicesSettingsRequest.PutIndicesSettingsRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.PutIndicesSettingsRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Whether to expand wildcard expression to concrete indices that are open, closed or both.PutIndicesSettingsRequest.BuilderflatSettings(java.lang.Boolean value)Return settings in flat format (default: false)PutIndicesSettingsRequest.BuilderignoreUnavailable(java.lang.Boolean value)Whether specified concrete indices should be ignored when unavailable (missing or closed)PutIndicesSettingsRequest.Builderindex(java.lang.String value, java.lang.String... values)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesPutIndicesSettingsRequest.Builderindex(java.util.List<java.lang.String> list)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesPutIndicesSettingsRequest.BuildermasterTimeout(Time value)Specify timeout for connection to masterPutIndicesSettingsRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Specify timeout for connection to masterPutIndicesSettingsRequest.BuilderpreserveExisting(java.lang.Boolean value)Whether to update existing settings.protected PutIndicesSettingsRequest.Builderself()PutIndicesSettingsRequest.Buildersettings(IndexSettings value)Required - Request body.PutIndicesSettingsRequest.Buildersettings(java.util.function.Function<IndexSettings.Builder,ObjectBuilder<IndexSettings>> fn)Required - Request body.PutIndicesSettingsRequest.Buildertimeout(Time value)Explicit operation timeoutPutIndicesSettingsRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutPutIndicesSettingsRequest.BuilderwithJson(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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 -
expandWildcards
public final PutIndicesSettingsRequest.Builder expandWildcards(java.util.List<ExpandWildcard> list)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 PutIndicesSettingsRequest.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. -
flatSettings
Return settings in flat format (default: false)API name:
flat_settings -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds all elements of
listtoindex. -
index
public final PutIndicesSettingsRequest.Builder index(java.lang.String value, java.lang.String... values)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds one or more values to
index. -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout -
masterTimeout
public final PutIndicesSettingsRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Specify timeout for connection to masterAPI name:
master_timeout -
preserveExisting
Whether to update existing settings. If set totrueexisting settings on an index remain unchanged, the default isfalseAPI name:
preserve_existing -
timeout
Explicit operation timeoutAPI name:
timeout -
timeout
public final PutIndicesSettingsRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutAPI name:
timeout -
settings
Required - Request body.API name:
_value_body -
settings
public final PutIndicesSettingsRequest.Builder settings(java.util.function.Function<IndexSettings.Builder,ObjectBuilder<IndexSettings>> fn)Required - Request body.API name:
_value_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 classWithJsonObjectBuilderBase<PutIndicesSettingsRequest.Builder>
-
build
Builds aPutIndicesSettingsRequest.- Specified by:
buildin interfaceObjectBuilder<PutIndicesSettingsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-