Class ClusterRemoteInfo
java.lang.Object
org.opensearch.client.opensearch.cluster.remote_info.ClusterRemoteInfo
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ClusterRemoteInfo
extends Object
implements TaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ClusterRemoteInfoVariant_get()final ClusterRemoteInfo.Kind_kind()Get the of the kind of variant held by this object.static ClusterRemoteInfo.Builderbuilder()booleaninthashCode()booleanisProxy()Is this variant instance of kindproxy?booleanisSniff()Is this variant instance of kindsniff?static ClusterRemoteInfoproxy()Get theproxyvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsniff()Get thesniffvariant value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
ClusterRemoteInfo
-
-
Method Details
-
_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
- Specified by:
_getin interfaceTaggedUnion<ClusterRemoteInfo.Kind,ClusterRemoteInfoVariant>
-
of
public static ClusterRemoteInfo of(Function<ClusterRemoteInfo.Builder, ObjectBuilder<ClusterRemoteInfo>> fn) -
isProxy
public boolean isProxy()Is this variant instance of kindproxy? -
proxy
Get theproxyvariant value.- Throws:
IllegalStateException- if the current variant is not theproxykind.
-
isSniff
public boolean isSniff()Is this variant instance of kindsniff? -
sniff
Get thesniffvariant value.- Throws:
IllegalStateException- if the current variant is not thesniffkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupClusterRemoteInfoDeserializer
protected static void setupClusterRemoteInfoDeserializer(ObjectDeserializer<ClusterRemoteInfo.Builder> op) -
hashCode
public int hashCode() -
equals
-