Class AddAction
java.lang.Object
org.opensearch.client.opensearch.indices.update_aliases.AddAction
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ActionVariant,ToCopyableBuilder<AddAction.Builder,AddAction>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class AddAction
extends Object
implements ActionVariant, PlainJsonSerializable, ToCopyableBuilder<AddAction.Builder,AddAction>
The configuration for adding an alias.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AddAction> Json deserializer forAddAction -
Method Summary
Modifier and TypeMethodDescriptionActionvariant kind.final Stringalias()API name:aliasaliases()The list of aliases to add.static AddAction.Builderbuilder()booleanfinal Queryfilter()API name:filterinthashCode()final Stringindex()API name:indexfinal StringAPI name:index_routingindices()API name:indicesfinal BooleanisHidden()Whether the alias is hidden.final BooleanWhether this is the write index or data stream for the alias.final BooleanWhether the alias must exist to perform the action.static AddActionfinal 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.opensearch.indices.update_aliases.ActionVariant
toActionMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forAddAction
-
-
Method Details
-
of
-
_actionKind
Actionvariant kind.- Specified by:
_actionKindin interfaceActionVariant
-
alias
API name:alias -
aliases
The list of aliases to add. Index alias names support date math.API name:
aliases -
filter
API name:filter -
index
API name:index -
indexRouting
API name:index_routing -
indices
API name:indices -
isHidden
Whether the alias is hidden.API name:
is_hidden -
isWriteIndex
Whether this is the write index or data stream for the alias.API name:
is_write_index -
mustExist
Whether the alias must exist to perform the action.API name:
must_exist -
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<AddAction.Builder,AddAction> - Returns:
- a new builder instance.
-
builder
-
setupAddActionDeserializer
-
hashCode
public int hashCode() -
equals
-