Class SourceConfigParam
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SourceConfigParam
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SourceConfigParam.Kind,java.lang.Object>
@JsonpDeserializable public class SourceConfigParam extends java.lang.Object implements TaggedUnion<SourceConfigParam.Kind,java.lang.Object>, JsonpSerializable
Defines how to fetch a source. Fetching can be disabled entirely, or the
source can be filtered. Used as a query parameter along with the
_source_includes and _source_excludes parameters.- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSourceConfigParam.Builderstatic classSourceConfigParam.Kind -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SourceConfigParam>_DESERIALIZER -
Method Summary
Modifier and Type Method Description java.lang.Object_get()SourceConfigParam.Kind_kind()Get the of the kind of variant held by this object.java.lang.String_toJsonString()java.lang.Booleanfetch()Get thefetchvariant value.java.util.List<java.lang.String>fields()Get thefieldsvariant value.booleanisFetch()Is this variant instance of kindfetch?booleanisFields()Is this variant instance of kindfields?static SourceConfigParamof(java.util.function.Function<SourceConfigParam.Builder,ObjectBuilder<SourceConfigParam>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<SourceConfigParam.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<SourceConfigParam.Kind,java.lang.Object>
-
_toJsonString
public java.lang.String _toJsonString() -
of
public static SourceConfigParam of(java.util.function.Function<SourceConfigParam.Builder,ObjectBuilder<SourceConfigParam>> fn) -
isFields
public boolean isFields()Is this variant instance of kindfields? -
fields
public java.util.List<java.lang.String> fields()Get thefieldsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefieldskind.
-
isFetch
public boolean isFetch()Is this variant instance of kindfetch? -
fetch
public java.lang.Boolean fetch()Get thefetchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefetchkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-