Class AddAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AddAction.Builder>
co.elastic.clients.elasticsearch.indices.update_aliases.AddAction.Builder
- All Implemented Interfaces:
WithJson<AddAction.Builder>
,ObjectBuilder<AddAction>
- Enclosing class:
- AddAction
public static class AddAction.Builder
extends WithJsonObjectBuilderBase<AddAction.Builder>
implements ObjectBuilder<AddAction>
Builder for
AddAction
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal AddAction.Builder
Alias for the action.final AddAction.Builder
Aliases for the action.final AddAction.Builder
Aliases for the action.build()
Builds aAddAction
.final AddAction.Builder
Query used to limit documents the alias can access.final AddAction.Builder
Query used to limit documents the alias can access.final AddAction.Builder
Data stream or index for the action.final AddAction.Builder
indexRouting
(String value) Value used to route indexing operations to a specific shard.final AddAction.Builder
Data streams or indices for the action.final AddAction.Builder
Data streams or indices for the action.final AddAction.Builder
Iftrue
, the alias is hidden.final AddAction.Builder
isWriteIndex
(Boolean value) Iftrue
, sets the write index or data stream for the alias.final AddAction.Builder
Iftrue
, the alias must exist to perform the action.final AddAction.Builder
Value used to route indexing and search operations to a specific shard.final AddAction.Builder
searchRouting
(String value) Value used to route search operations to a specific shard.protected AddAction.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Adds all elements of
list
toaliases
. -
aliases
Aliases for the action. Index alias names support date math.API name:
aliases
Adds one or more values to
aliases
. -
filter
Query used to limit documents the alias can access.API name:
filter
-
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
Adds all elements of
list
toindices
. -
indices
Data streams or indices for the action. Supports wildcards (*
).API name:
indices
Adds one or more values to
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AddAction.Builder>
-
build
Builds aAddAction
.- Specified by:
build
in interfaceObjectBuilder<AddAction>
- Throws:
NullPointerException
- if some of the required fields are null.
-