Class AliasDefinition.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AliasDefinition.Builder>
co.elastic.clients.elasticsearch.indices.AliasDefinition.Builder
- All Implemented Interfaces:
WithJson<AliasDefinition.Builder>,ObjectBuilder<AliasDefinition>
- Enclosing class:
- AliasDefinition
public static class AliasDefinition.Builder
extends WithJsonObjectBuilderBase<AliasDefinition.Builder>
implements ObjectBuilder<AliasDefinition>
Builder for
AliasDefinition.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAliasDefinition.final AliasDefinition.BuilderQuery used to limit documents the alias can access.final AliasDefinition.Builderfilter(QueryVariant value) Query used to limit documents the alias can access.final AliasDefinition.BuilderQuery used to limit documents the alias can access.final AliasDefinition.BuilderindexRouting(String value) Value used to route indexing operations to a specific shard.final AliasDefinition.BuilderIftrue, the alias is hidden.final AliasDefinition.BuilderisWriteIndex(Boolean value) Iftrue, the index is the write index for the alias.final AliasDefinition.BuilderValue used to route indexing and search operations to a specific shard.final AliasDefinition.BuildersearchRouting(String value) Value used to route search operations to a specific shard.protected AliasDefinition.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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 -
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 theroutingvalue for indexing operations.API name:
index_routing -
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 theroutingvalue for search operations.API name:
search_routing -
isHidden
Iftrue, the alias is hidden. All indices for the alias must have the sameis_hiddenvalue.API name:
is_hidden -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AliasDefinition.Builder>
-
build
Builds aAliasDefinition.- Specified by:
buildin interfaceObjectBuilder<AliasDefinition>- Throws:
NullPointerException- if some of the required fields are null.
-