Class Action
java.lang.Object
co.elastic.clients.elasticsearch.indices.update_aliases.Action
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Action.Kind,Object>
@JsonpDeserializable
public class Action
extends Object
implements TaggedUnion<Action.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Action.Kind_kind()Get the of the kind of variant held by this object.add()Get theaddvariant value.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 voidtoString()
-
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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Action.Kind,Object>
-
of
-
isAdd
public boolean isAdd()Is this variant instance of kindadd? -
add
Get theaddvariant value.- Throws:
IllegalStateException- if the current variant is not of theaddkind.
-
isRemove
public boolean isRemove()Is this variant instance of kindremove? -
remove
Get theremovevariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of theremove_indexkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupActionDeserializer
-