Class NodeReloadResult
java.lang.Object
co.elastic.clients.elasticsearch.nodes.NodeReloadResult
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<NodeReloadResult.Kind,
Object>
@JsonpDeserializable
public class NodeReloadResult
extends Object
implements TaggedUnion<NodeReloadResult.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final NodeReloadResult.Kind
_kind()
Get the of the kind of variant held by this object.error()
Get theerror
variant value.boolean
isError()
Is this variant instance of kinderror
?boolean
isStats()
Is this variant instance of kindstats
?static NodeReloadResult
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) stats()
Get thestats
variant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<NodeReloadResult.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<NodeReloadResult.Kind,
Object>
-
of
public static NodeReloadResult of(Function<NodeReloadResult.Builder, ObjectBuilder<NodeReloadResult>> fn) -
isError
public boolean isError()Is this variant instance of kinderror
? -
error
Get theerror
variant value.- Throws:
IllegalStateException
- if the current variant is not of theerror
kind.
-
isStats
public boolean isStats()Is this variant instance of kindstats
? -
stats
Get thestats
variant value.- Throws:
IllegalStateException
- if the current variant is not of thestats
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-