Class LifecycleExplain
java.lang.Object
co.elastic.clients.elasticsearch.ilm.explain_lifecycle.LifecycleExplain
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class LifecycleExplain extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LifecycleExplain.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<LifecycleExplain>
_DESERIALIZER
static java.lang.String
FALSE
static java.lang.String
TRUE
-
Constructor Summary
Constructors Constructor Description LifecycleExplain(LifecycleExplainVariant value)
LifecycleExplain(ObjectBuilder<T> builder)
LifecycleExplain(java.util.function.Function<LifecycleExplain.Builder,LifecycleExplain.Builder> fn)
-
Method Summary
Modifier and Type Method Description JsonpSerializable
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.LifecycleExplainUnmanaged
false_()
Get thefalse
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupLifecycleExplainDeserializer(DelegatingDeserializer<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
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
TRUE
public static final java.lang.String TRUE- See Also:
- Constant Field Values
-
FALSE
public static final java.lang.String FALSE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
LifecycleExplain
-
LifecycleExplain
-
LifecycleExplain
public LifecycleExplain(java.util.function.Function<LifecycleExplain.Builder,LifecycleExplain.Builder> fn)
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<JsonpSerializable>
- Returns:
- the variant type
-
_get
- Specified by:
_get
in interfaceTaggedUnion<JsonpSerializable>
-
true_
Get thetrue
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetrue
kind.
-
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(DelegatingDeserializer<LifecycleExplain.Builder> op)
-