Class PutIndicesSettingsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.PutIndicesSettingsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class PutIndicesSettingsRequest extends RequestBase implements JsonpSerializable
Updates the index settings.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPutIndicesSettingsRequest.BuilderBuilder forPutIndicesSettingsRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PutIndicesSettingsRequest>_DESERIALIZERstatic Endpoint<PutIndicesSettingsRequest,PutIndicesSettingsResponse,ErrorResponse>_ENDPOINTEndpoint "indices.put_settings". -
Method Summary
Modifier and Type Method Description java.lang.BooleanallowNoIndices()Whether to ignore if a wildcard indices expression resolves into no concrete indices.protected static JsonpDeserializer<PutIndicesSettingsRequest>createPutIndicesSettingsRequestDeserializer()java.util.List<ExpandWildcard>expandWildcards()Whether to expand wildcard expression to concrete indices that are open, closed or both.java.lang.BooleanflatSettings()Return settings in flat format (default: false)java.lang.BooleanignoreUnavailable()Whether specified concrete indices should be ignored when unavailable (missing or closed)java.util.List<java.lang.String>index()A comma-separated list of index names; use_allor empty string to perform the operation on all indicesTimemasterTimeout()Specify timeout for connection to masterstatic PutIndicesSettingsRequestof(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn)java.lang.BooleanpreserveExisting()Whether to update existing settings.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this value to JSON.IndexSettingssettings()Required - Request body.Timetimeout()Explicit operation timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
public static final Endpoint<PutIndicesSettingsRequest,PutIndicesSettingsResponse,ErrorResponse> _ENDPOINTEndpoint "indices.put_settings".
-
-
Method Details
-
of
public static PutIndicesSettingsRequest of(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn) -
allowNoIndices
@Nullable public final java.lang.Boolean 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
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
flatSettings
@Nullable public final java.lang.Boolean flatSettings()Return settings in flat format (default: false)API name:
flat_settings -
index
public final java.util.List<java.lang.String> index()A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
index -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout -
preserveExisting
@Nullable public final java.lang.Boolean 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 -
settings
Required - Request body.API name:
_value_body -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createPutIndicesSettingsRequestDeserializer
protected static JsonpDeserializer<PutIndicesSettingsRequest> createPutIndicesSettingsRequestDeserializer()
-