Class Alias
java.lang.Object
org.opensearch.client.opensearch.indices.Alias
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Alias.Builder,Alias>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Alias
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Alias.Builder,Alias>
The index alias configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Alias> Json deserializer forAlias -
Method Summary
Modifier and TypeMethodDescriptionstatic Alias.Builderbuilder()booleanfinal Queryfilter()API name:filterinthashCode()final StringAPI name:index_routingfinal BooleanisHidden()Whentrue, the alias is hidden.final BooleanWhentrue, the index is the write index for the alias.static Aliasfinal Stringrouting()API name:routingfinal StringAPI name:search_routingvoidserialize(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 forAlias
-
-
Method Details
-
of
-
filter
API name:filter -
indexRouting
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
API name:routing -
searchRouting
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<Alias.Builder,Alias> - Returns:
- a new builder instance.
-
builder
-
setupAliasDeserializer
-
hashCode
public int hashCode() -
equals
-