Class Action
java.lang.Object
co.elastic.clients.elasticsearch.indices.modify_data_stream.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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final Action.Kind
_kind()
Get the of the kind of variant held by this object.Get theadd_backing_index
variant value.boolean
Is this variant instance of kindadd_backing_index
?boolean
Is this variant instance of kindremove_backing_index
?static Action
Get theremove_backing_index
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Action
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Action.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Action.Kind,
Object>
-
of
-
isAddBackingIndex
public boolean isAddBackingIndex()Is this variant instance of kindadd_backing_index
? -
addBackingIndex
Get theadd_backing_index
variant value.- Throws:
IllegalStateException
- if the current variant is not of theadd_backing_index
kind.
-
isRemoveBackingIndex
public boolean isRemoveBackingIndex()Is this variant instance of kindremove_backing_index
? -
removeBackingIndex
Get theremove_backing_index
variant value.- Throws:
IllegalStateException
- if the current variant is not of theremove_backing_index
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupActionDeserializer
-