Class Alias.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Alias.Builder>
co.elastic.clients.elasticsearch.indices.Alias.Builder
- All Implemented Interfaces:
WithJson<Alias.Builder>
,ObjectBuilder<Alias>
- Enclosing class:
- Alias
public static class Alias.Builder
extends WithJsonObjectBuilderBase<Alias.Builder>
implements ObjectBuilder<Alias>
Builder for
Alias
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aAlias
.final Alias.Builder
Query used to limit documents the alias can access.final Alias.Builder
Query used to limit documents the alias can access.final Alias.Builder
indexRouting
(String value) Value used to route indexing operations to a specific shard.final Alias.Builder
Iftrue
, the alias is hidden.final Alias.Builder
isWriteIndex
(Boolean value) Iftrue
, the index is the write index for the alias.final Alias.Builder
Value used to route indexing and search operations to a specific shard.final Alias.Builder
searchRouting
(String value) Value used to route search operations to a specific shard.protected Alias.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
-
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
-
indexRouting
Value used to route indexing operations to a specific shard. If specified, this overwrites therouting
value for indexing operations.API name:
index_routing
-
isHidden
Iftrue
, the alias is hidden. All indices for the alias must have the sameis_hidden
value.API name:
is_hidden
-
isWriteIndex
Iftrue
, the index is the write index for the alias.API name:
is_write_index
-
routing
Value used to route indexing and search operations to a specific shard.API name:
routing
-
searchRouting
Value used to route search operations to a specific shard. If specified, this overwrites therouting
value for search operations.API name:
search_routing
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Alias.Builder>
-
build
Builds aAlias
.- Specified by:
build
in interfaceObjectBuilder<Alias>
- Throws:
NullPointerException
- if some of the required fields are null.
-