Class LifecycleExplain
java.lang.Object
co.elastic.clients.elasticsearch.ilm.explain_lifecycle.LifecycleExplain
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<LifecycleExplain.Kind,LifecycleExplainVariant>
@JsonpDeserializable
public class LifecycleExplain
extends Object
implements TaggedUnion<LifecycleExplain.Kind,LifecycleExplainVariant>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LifecycleExplainVariant_get()final LifecycleExplain.Kind_kind()Get the of the kind of variant held by this object.false_()Get thefalsevariant value.booleanisFalse()Is this variant instance of kindfalse?booleanisTrue()Is this variant instance of kindtrue?static LifecycleExplainvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()true_()Get thetruevariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
LifecycleExplain
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<LifecycleExplain.Kind,LifecycleExplainVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<LifecycleExplain.Kind,LifecycleExplainVariant>
-
of
public static LifecycleExplain of(Function<LifecycleExplain.Builder, ObjectBuilder<LifecycleExplain>> fn) -
isTrue
public boolean isTrue()Is this variant instance of kindtrue? -
true_
Get thetruevariant value.- Throws:
IllegalStateException- if the current variant is not of thetruekind.
-
isFalse
public boolean isFalse()Is this variant instance of kindfalse? -
false_
Get thefalsevariant value.- Throws:
IllegalStateException- if the current variant is not of thefalsekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupLifecycleExplainDeserializer
protected static void setupLifecycleExplainDeserializer(ObjectDeserializer<LifecycleExplain.Builder> op)
-