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 classLifecycleExplain.Builderstatic classLifecycleExplain.KindLifecycleExplainvariant 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.LifecycleExplainUnmanagedfalse_()Get thefalsevariant value.booleanisFalse()Is this variant instance of kindfalse?booleanisTrue()Is this variant instance of kindtrue?static LifecycleExplainof(java.util.function.Function<LifecycleExplain.Builder,ObjectBuilder<LifecycleExplain>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupLifecycleExplainDeserializer(ObjectDeserializer<LifecycleExplain.Builder> op)java.lang.StringtoString()LifecycleExplainManagedtrue_()Get thetruevariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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(java.util.function.Function<LifecycleExplain.Builder,ObjectBuilder<LifecycleExplain>> fn) -
isTrue
public boolean isTrue()Is this variant instance of kindtrue? -
true_
Get thetruevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetruekind.
-
isFalse
public boolean isFalse()Is this variant instance of kindfalse? -
false_
Get thefalsevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefalsekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupLifecycleExplainDeserializer
protected static void setupLifecycleExplainDeserializer(ObjectDeserializer<LifecycleExplain.Builder> op)
-