Class PutAliasRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.PutAliasRequest
- All Implemented Interfaces:
JsonpSerializable
Creates or updates an alias.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutAliasRequest>
Json deserializer forPutAliasRequest
static final Endpoint<PutAliasRequest,
PutAliasResponse, ErrorResponse> Endpoint "indices.put_alias
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Query
filter()
API name:filter
index()
Required - A comma-separated list of index names the alias should point to (supports wildcards); use_all
to perform the operation on all indices.final String
API name:index_routing
final Boolean
API name:is_write_index
final Time
Specify timeout for connection to masterfinal String
name()
Required - The name of the alias to be created or updatedstatic PutAliasRequest
final String
routing()
API name:routing
final String
API name:search_routing
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Time
timeout()
Explicit timestamp for the documentMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutAliasRequest
-
_ENDPOINT
Endpoint "indices.put_alias
".
-
-
Method Details
-
of
public static PutAliasRequest of(Function<PutAliasRequest.Builder, ObjectBuilder<PutAliasRequest>> fn) -
filter
API name:filter
-
index
Required - A comma-separated list of index names the alias should point to (supports wildcards); use_all
to perform the operation on all indices.API name:
index
-
indexRouting
API name:index_routing
-
isWriteIndex
API name:is_write_index
-
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout
-
name
Required - The name of the alias to be created or updatedAPI name:
name
-
routing
API name:routing
-
searchRouting
API name:search_routing
-
timeout
Explicit timestamp for the documentAPI name:
timeout
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutAliasRequestDeserializer
protected static void setupPutAliasRequestDeserializer(ObjectDeserializer<PutAliasRequest.Builder> op)
-