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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enum
- 
Field SummaryFields
- 
Method SummaryModifier 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- 
_kindDescription copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
- _kindin interface- TaggedUnion<SourceConfigParam.Kind,- Object> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<SourceConfigParam.Kind,- Object> 
 
- 
_toJsonString
- 
ofpublic static SourceConfigParam of(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) 
- 
isFieldspublic boolean isFields()Is this variant instance of kindfields?
- 
fieldsGet thefieldsvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- fieldskind.
 
- 
isFetchpublic boolean isFetch()Is this variant instance of kindfetch?
- 
fetchGet thefetchvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- fetchkind.
 
- 
serialize- Specified by:
- serializein interface- JsonpSerializable
 
- 
toString
 
-