Class NodeReloadResult
- java.lang.Object
-
- org.opensearch.client.opensearch.nodes.reload_secure_settings.NodeReloadResult
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<NodeReloadResult.Kind,java.lang.Object>
@JsonpDeserializable public class NodeReloadResult extends java.lang.Object implements TaggedUnion<NodeReloadResult.Kind,java.lang.Object>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeReloadResult.Builderstatic classNodeReloadResult.Kind
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NodeReloadResult>_DESERIALIZER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object_get()NodeReloadResult.Kind_kind()Get the of the kind of variant held by this object.NodeReloadErrorerror()Get theerrorvariant value.booleanisError()Is this variant instance of kinderror?booleanisStats()Is this variant instance of kindstats?static NodeReloadResultof(java.util.function.Function<NodeReloadResult.Builder,ObjectBuilder<NodeReloadResult>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Statsstats()Get thestatsvariant value.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<NodeReloadResult> _DESERIALIZER
-
-
Method Detail
-
_kind
public final NodeReloadResult.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<NodeReloadResult.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()
- Specified by:
_getin interfaceTaggedUnion<NodeReloadResult.Kind,java.lang.Object>
-
of
public static NodeReloadResult of(java.util.function.Function<NodeReloadResult.Builder,ObjectBuilder<NodeReloadResult>> fn)
-
isStats
public boolean isStats()
Is this variant instance of kindstats?
-
stats
public Stats stats()
Get thestatsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestatskind.
-
isError
public boolean isError()
Is this variant instance of kinderror?
-
error
public NodeReloadError error()
Get theerrorvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theerrorkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
-