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
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.Get theadd_backing_indexvariant value.booleanIs this variant instance of kindadd_backing_index?booleanIs this variant instance of kindremove_backing_index?static ActionGet theremove_backing_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
-
isAddBackingIndex
public boolean isAddBackingIndex()Is this variant instance of kindadd_backing_index? -
addBackingIndex
Get theadd_backing_indexvariant value.- Throws:
IllegalStateException- if the current variant is not of theadd_backing_indexkind.
-
isRemoveBackingIndex
public boolean isRemoveBackingIndex()Is this variant instance of kindremove_backing_index? -
removeBackingIndex
Get theremove_backing_indexvariant value.- Throws:
IllegalStateException- if the current variant is not of theremove_backing_indexkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupActionDeserializer
-