Class SourceConfigParam
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SourceConfigParam
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<SourceConfigParam.Kind,Object>
@JsonpDeserializable
public class SourceConfigParam
extends Object
implements TaggedUnion<SourceConfigParam.Kind,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final SourceConfigParam.Kind_kind()Get the of the kind of variant held by this object.fetch()Get thefetchvariant value.fields()Get thefieldsvariant value.booleanisFetch()Is this variant instance of kindfetch?booleanisFields()Is this variant instance of kindfields?static SourceConfigParamvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SourceConfigParam.Kind,Object>
-
_toJsonString
-
of
public static SourceConfigParam of(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) -
isFields
public boolean isFields()Is this variant instance of kindfields? -
fields
Get thefieldsvariant value.- Throws:
IllegalStateException- if the current variant is not of thefieldskind.
-
isFetch
public boolean isFetch()Is this variant instance of kindfetch? -
fetch
Get thefetchvariant value.- Throws:
IllegalStateException- if the current variant is not of thefetchkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-