Class Action
java.lang.Object
org.opensearch.client.opensearch.indices.update_aliases.Action
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<Action.Kind,ActionVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Action
extends Object
implements TaggedUnion<Action.Kind,ActionVariant>, PlainJsonSerializable
The action to perform on aliases.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ActionVariant_get()final Action.Kind_kind()Get the of the kind of variant held by this object.add()Get theaddvariant value.static Action.Builderbuilder()booleaninthashCode()booleanisAdd()Is this variant instance of kindadd?booleanisRemove()Is this variant instance of kindremove?booleanIs this variant instance of kindremove_index?static Actionremove()Get theremovevariant value.Get theremove_indexvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Action
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Action.Kind,ActionVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Action.Kind,ActionVariant>
-
of
-
isAdd
public boolean isAdd()Is this variant instance of kindadd? -
add
Get theaddvariant value.- Throws:
IllegalStateException- if the current variant is not theaddkind.
-
isRemove
public boolean isRemove()Is this variant instance of kindremove? -
remove
Get theremovevariant value.- Throws:
IllegalStateException- if the current variant is not theremovekind.
-
isRemoveIndex
public boolean isRemoveIndex()Is this variant instance of kindremove_index? -
removeIndex
Get theremove_indexvariant value.- Throws:
IllegalStateException- if the current variant is not theremove_indexkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupActionDeserializer
-
hashCode
public int hashCode() -
equals
-