Class SourceConfig
java.lang.Object
co.elastic.clients.elasticsearch.core.search.SourceConfig
- All Implemented Interfaces:
- JsonpSerializable,- TaggedUnion<SourceConfig.Kind,- Object> 
@JsonpDeserializable
public class SourceConfig
extends Object
implements TaggedUnion<SourceConfig.Kind,Object>, JsonpSerializable 
Defines how to fetch a source. Fetching can be disabled entirely, or the
 source can be filtered.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionfinal Object_get()final SourceConfig.Kind_kind()Get the of the kind of variant held by this object.fetch()Get thefetchvariant value.filter()Get thefiltervariant value.booleanisFetch()Is this variant instance of kindfetch?booleanisFilter()Is this variant instance of kindfilter?static SourceConfigvoidserialize(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<SourceConfig.Kind,- Object> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<SourceConfig.Kind,- Object> 
 
- 
of
- 
isFilterpublic boolean isFilter()Is this variant instance of kindfilter?
- 
filterGet thefiltervariant value.- Throws:
- IllegalStateException- if the current variant is not of the- filterkind.
 
- 
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
 
-