Class ClusterRemoteInfo
java.lang.Object
co.elastic.clients.elasticsearch.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
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterRemoteInfo.Builder
static class
ClusterRemoteInfo.Kind
ClusterRemoteInfo
variant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ClusterRemoteInfo>
_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description ClusterRemoteInfo(ClusterRemoteInfoVariant value)
-
Method Summary
Modifier and Type Method Description ClusterRemoteInfoVariant
_get()
ClusterRemoteInfo.Kind
_kind()
Get the of the kind of variant held by this object.boolean
isProxy()
Is this variant instance of kindproxy
?boolean
isSniff()
Is this variant instance of kindsniff
?static ClusterRemoteInfo
of(java.util.function.Function<ClusterRemoteInfo.Builder,ObjectBuilder<ClusterRemoteInfo>> fn)
ClusterRemoteProxyInfo
proxy()
Get theproxy
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupClusterRemoteInfoDeserializer(ObjectDeserializer<ClusterRemoteInfo.Builder> op)
ClusterRemoteSniffInfo
sniff()
Get thesniff
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
ClusterRemoteInfo
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>
- Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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
Get theproxy
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theproxy
kind.
-
isSniff
public boolean isSniff()Is this variant instance of kindsniff
? -
sniff
Get thesniff
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesniff
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupClusterRemoteInfoDeserializer
protected static void setupClusterRemoteInfoDeserializer(ObjectDeserializer<ClusterRemoteInfo.Builder> op)
-