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 java.lang.Object implements TaggedUnion<LifecycleExplain.Kind,LifecycleExplainVariant>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LifecycleExplain.Builder
static class
LifecycleExplain.Kind
LifecycleExplain
variant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<LifecycleExplain>
_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description LifecycleExplain(LifecycleExplainVariant value)
-
Method Summary
Modifier and Type Method Description LifecycleExplainVariant
_get()
LifecycleExplain.Kind
_kind()
Get the of the kind of variant held by this object.LifecycleExplainUnmanaged
false_()
Get thefalse
variant value.boolean
isFalse()
Is this variant instance of kindfalse
?boolean
isTrue()
Is this variant instance of kindtrue
?static LifecycleExplain
of(java.util.function.Function<LifecycleExplain.Builder,ObjectBuilder<LifecycleExplain>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupLifecycleExplainDeserializer(ObjectDeserializer<LifecycleExplain.Builder> op)
LifecycleExplainManaged
true_()
Get thetrue
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
LifecycleExplain
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<LifecycleExplain.Kind,LifecycleExplainVariant>
- Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<LifecycleExplain.Kind,LifecycleExplainVariant>
-
of
public static LifecycleExplain of(java.util.function.Function<LifecycleExplain.Builder,ObjectBuilder<LifecycleExplain>> fn) -
isTrue
public boolean isTrue()Is this variant instance of kindtrue
? -
true_
Get thetrue
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetrue
kind.
-
isFalse
public boolean isFalse()Is this variant instance of kindfalse
? -
false_
Get thefalse
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefalse
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupLifecycleExplainDeserializer
protected static void setupLifecycleExplainDeserializer(ObjectDeserializer<LifecycleExplain.Builder> op)
-