Class SourceConfigParam
java.lang.Object
org.opensearch.client.opensearch.core.search.SourceConfigParam
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<SourceConfigParam.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SourceConfigParam
extends Object
implements TaggedUnion<SourceConfigParam.Kind,Object>, PlainJsonSerializable
Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered. Use this setting with the
_source_includes and _source_excludes parameters.-
Nested Class Summary
Nested Classes -
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.static SourceConfigParam.Builderbuilder()booleanfetch()Get thefetchvariant value.fields()Get thefieldsvariant value.inthashCode()booleanisFetch()Is this variant instance of kindfetch?booleanisFields()Is this variant instance of kindfields?static SourceConfigParamvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) 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
-
-
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>
-
of
public static SourceConfigParam of(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) -
_toJsonString
-
isFetch
public boolean isFetch()Is this variant instance of kindfetch? -
fetch
Get thefetchvariant value.- Throws:
IllegalStateException- if the current variant is not thefetchkind.
-
isFields
public boolean isFields()Is this variant instance of kindfields? -
fields
Get thefieldsvariant value.- Throws:
IllegalStateException- if the current variant is not thefieldskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-