Class AddAction
java.lang.Object
co.elastic.clients.elasticsearch.indices.update_aliases.AddAction
- All Implemented Interfaces:
ActionVariant
,JsonpSerializable
@JsonpDeserializable
public class AddAction
extends Object
implements ActionVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AddAction>
Json deserializer forAddAction
-
Method Summary
Modifier and TypeMethodDescriptionAction variant kind.final String
alias()
Alias for the action.aliases()
Aliases for the action.final Query
filter()
Query used to limit documents the alias can access.final String
index()
Data stream or index for the action.final String
Value used to route indexing operations to a specific shard.indices()
Data streams or indices for the action.final Boolean
isHidden()
Iftrue
, the alias is hidden.final Boolean
Iftrue
, sets the write index or data stream for the alias.final Boolean
Iftrue
, the alias must exist to perform the action.static AddAction
final String
routing()
Value used to route indexing and search operations to a specific shard.final String
Value used to route search operations to a specific shard.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
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.indices.update_aliases.ActionVariant
_toAction
-
Field Details
-
_DESERIALIZER
Json deserializer forAddAction
-
-
Method Details
-
of
-
_actionKind
Action variant kind.- Specified by:
_actionKind
in interfaceActionVariant
-
alias
Alias for the action. Index alias names support date math.API name:
alias
-
aliases
Aliases for the action. Index alias names support date math.API name:
aliases
-
filter
Query used to limit documents the alias can access.API name:
filter
-
index
Data stream or index for the action. Supports wildcards (*
).API name:
index
-
indices
Data streams or indices for the action. Supports wildcards (*
).API name:
indices
-
indexRouting
Value used to route indexing operations to a specific shard. If specified, this overwrites therouting
value for indexing operations. Data stream aliases don’t support this parameter.API name:
index_routing
-
isHidden
Iftrue
, the alias is hidden.API name:
is_hidden
-
isWriteIndex
Iftrue
, sets the write index or data stream for the alias.API name:
is_write_index
-
routing
Value used to route indexing and search operations to a specific shard. Data stream aliases don’t support this parameter.API name:
routing
-
searchRouting
Value used to route search operations to a specific shard. If specified, this overwrites therouting
value for search operations. Data stream aliases don’t support this parameter.API name:
search_routing
-
mustExist
Iftrue
, the alias must exist to perform the action.API name:
must_exist
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAddActionDeserializer
-