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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final NodeReloadResult.Kind_kind()Get the of the kind of variant held by this object.error()Get theerrorvariant value.booleanisError()Is this variant instance of kinderror?booleanisStats()Is this variant instance of kindstats?static NodeReloadResultvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) stats()Get thestatsvariant value.toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<NodeReloadResult.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin 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 theerrorvariant value.- Throws:
IllegalStateException- if the current variant is not of theerrorkind.
-
isStats
public boolean isStats()Is this variant instance of kindstats? -
stats
Get thestatsvariant value.- Throws:
IllegalStateException- if the current variant is not of thestatskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-