Class DynamicTemplate
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.DynamicTemplate
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<DynamicTemplate.Kind,Object>
@JsonpDeserializable
public class DynamicTemplate
extends Object
implements TaggedUnion<DynamicTemplate.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final DynamicTemplate.Kind_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindmapping?booleanIs this variant instance of kindruntime?mapping()Get themappingvariant value.match()API name:matchAPI name:match_mapping_typefinal MatchTypeAPI name:match_patternstatic DynamicTemplateAPI name:path_matchAPI name:path_unmatchruntime()Get theruntimevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()unmatch()API name:unmatchAPI name:unmatch_mapping_type
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
DynamicTemplate
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<DynamicTemplate.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<DynamicTemplate.Kind,Object>
-
of
public static DynamicTemplate of(Function<DynamicTemplate.Builder, ObjectBuilder<DynamicTemplate>> fn) -
match
API name:match -
pathMatch
API name:path_match -
unmatch
API name:unmatch -
pathUnmatch
API name:path_unmatch -
matchMappingType
API name:match_mapping_type -
unmatchMappingType
API name:unmatch_mapping_type -
matchPattern
API name:match_pattern -
isMapping
public boolean isMapping()Is this variant instance of kindmapping? -
mapping
Get themappingvariant value.- Throws:
IllegalStateException- if the current variant is not of themappingkind.
-
isRuntime
public boolean isRuntime()Is this variant instance of kindruntime? -
runtime
Get theruntimevariant value.- Throws:
IllegalStateException- if the current variant is not of theruntimekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupDynamicTemplateDeserializer
protected static void setupDynamicTemplateDeserializer(ObjectDeserializer<DynamicTemplate.Builder> op)
-