Class ClusterRemoteInfo
java.lang.Object
co.elastic.clients.elasticsearch.cluster.remote_info.ClusterRemoteInfo
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class ClusterRemoteInfo extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterRemoteInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ClusterRemoteInfo>
_DESERIALIZER
static java.lang.String
PROXY
static java.lang.String
SNIFF
-
Constructor Summary
Constructors Constructor Description ClusterRemoteInfo(ClusterRemoteInfoVariant value)
ClusterRemoteInfo(ObjectBuilder<T> builder)
ClusterRemoteInfo(java.util.function.Function<ClusterRemoteInfo.Builder,ClusterRemoteInfo.Builder> fn)
-
Method Summary
Modifier and Type Method Description JsonpSerializable
_get()
java.lang.String
_type()
Get the of the type of the variant held by this union object.ClusterRemoteProxyInfo
proxy()
Get theproxy
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupClusterRemoteInfoDeserializer(DelegatingDeserializer<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
Methods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
PROXY
public static final java.lang.String PROXY- See Also:
- Constant Field Values
-
SNIFF
public static final java.lang.String SNIFF- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
ClusterRemoteInfo
-
ClusterRemoteInfo
-
ClusterRemoteInfo
public ClusterRemoteInfo(java.util.function.Function<ClusterRemoteInfo.Builder,ClusterRemoteInfo.Builder> fn)
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<JsonpSerializable>
- Returns:
- the variant type
-
_get
- Specified by:
_get
in interfaceTaggedUnion<JsonpSerializable>
-
proxy
Get theproxy
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theproxy
kind.
-
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(DelegatingDeserializer<ClusterRemoteInfo.Builder> op)
-