Class AliasDefinition
java.lang.Object
org.opensearch.client.opensearch.indices.AliasDefinition
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<AliasDefinition.Builder,AliasDefinition>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class AliasDefinition
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<AliasDefinition.Builder,AliasDefinition>
The configuration for an index alias.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AliasDefinition> Json deserializer forAliasDefinition -
Method Summary
Modifier and TypeMethodDescriptionstatic AliasDefinition.Builderbuilder()booleanfinal Queryfilter()API name:filterinthashCode()final StringThe value used to route indexing operations to a specific shard.final BooleanisHidden()Whentrue, the alias is hidden.final BooleanWhentrue, the index is the write index for the alias.static AliasDefinitionfinal Stringrouting()The value used to route indexing and search operations to a specific shard.final StringThe value used to route search operations to a specific shard.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forAliasDefinition
-
-
Method Details
-
of
public static AliasDefinition of(Function<AliasDefinition.Builder, ObjectBuilder<AliasDefinition>> fn) -
filter
API name:filter -
indexRouting
The value used to route indexing operations to a specific shard. When specified, this overwrites theroutingvalue for indexing operations.API name:
index_routing -
isHidden
Whentrue, the alias is hidden. All indexes for the alias must have the sameis_hiddenvalue.API name:
is_hidden -
isWriteIndex
Whentrue, the index is the write index for the alias.API name:
is_write_index -
routing
The value used to route indexing and search operations to a specific shard.API name:
routing -
searchRouting
The value used to route search operations to a specific shard. When specified, this overwrites theroutingvalue for search operations.API name:
search_routing -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AliasDefinition.Builder,AliasDefinition> - Returns:
- a new builder instance.
-
builder
-
setupAliasDefinitionDeserializer
protected static void setupAliasDefinitionDeserializer(ObjectDeserializer<AliasDefinition.Builder> op) -
hashCode
public int hashCode() -
equals
-