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 class
PutIndicesSettingsRequest.Builder
Builder 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>
_DESERIALIZER
static Endpoint<PutIndicesSettingsRequest,PutIndicesSettingsResponse,ErrorResponse>
_ENDPOINT
Endpoint "indices.put_settings
". -
Method Summary
Modifier and Type Method Description java.lang.Boolean
allowNoIndices()
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.Boolean
flatSettings()
Return settings in flat format (default: false)java.lang.Boolean
ignoreUnavailable()
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_all
or empty string to perform the operation on all indicesTime
masterTimeout()
Specify timeout for connection to masterstatic PutIndicesSettingsRequest
of(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn)
java.lang.Boolean
preserveExisting()
Whether to update existing settings.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this value to JSON.IndexSettings
settings()
Required - Request body.Time
timeout()
Explicit operation timeoutMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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_all
string 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_all
or 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 totrue
existing settings on an index remain unchanged, the default isfalse
API name:
preserve_existing
-
timeout
Explicit operation timeoutAPI name:
timeout
-
settings
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
createPutIndicesSettingsRequestDeserializer
protected static JsonpDeserializer<PutIndicesSettingsRequest> createPutIndicesSettingsRequestDeserializer()
-