Class ClusterRemoteInfo
- java.lang.Object
-
- org.opensearch.client.opensearch.cluster.remote_info.ClusterRemoteInfo
-
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>
@JsonpDeserializable public class ClusterRemoteInfo extends java.lang.Object implements TaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>, JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterRemoteInfo.Builderstatic classClusterRemoteInfo.KindClusterRemoteInfovariant kinds.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ClusterRemoteInfo>_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description ClusterRemoteInfo(ClusterRemoteInfoVariant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterRemoteInfoVariant_get()ClusterRemoteInfo.Kind_kind()Get the of the kind of variant held by this object.booleanisProxy()Is this variant instance of kindproxy?booleanisSniff()Is this variant instance of kindsniff?static ClusterRemoteInfoof(java.util.function.Function<ClusterRemoteInfo.Builder,ObjectBuilder<ClusterRemoteInfo>> fn)ClusterRemoteProxyInfoproxy()Get theproxyvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupClusterRemoteInfoDeserializer(ObjectDeserializer<ClusterRemoteInfo.Builder> op)ClusterRemoteSniffInfosniff()Get thesniffvariant value.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ClusterRemoteInfo> _DESERIALIZER
-
-
Constructor Detail
-
ClusterRemoteInfo
public ClusterRemoteInfo(ClusterRemoteInfoVariant value)
-
-
Method Detail
-
_kind
public final ClusterRemoteInfo.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>- Returns:
- the variant kind
-
_get
public final ClusterRemoteInfoVariant _get()
- Specified by:
_getin interfaceTaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>
-
of
public static ClusterRemoteInfo of(java.util.function.Function<ClusterRemoteInfo.Builder,ObjectBuilder<ClusterRemoteInfo>> fn)
-
isProxy
public boolean isProxy()
Is this variant instance of kindproxy?
-
proxy
public ClusterRemoteProxyInfo proxy()
Get theproxyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theproxykind.
-
isSniff
public boolean isSniff()
Is this variant instance of kindsniff?
-
sniff
public ClusterRemoteSniffInfo sniff()
Get thesniffvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesniffkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupClusterRemoteInfoDeserializer
protected static void setupClusterRemoteInfoDeserializer(ObjectDeserializer<ClusterRemoteInfo.Builder> op)
-
-