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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final DynamicTemplate.Kind
_kind()
Get the of the kind of variant held by this object.boolean
Is this variant instance of kindmapping
?boolean
Is this variant instance of kindruntime
?mapping()
Get themapping
variant value.match()
API name:match
API name:match_mapping_type
final MatchType
API name:match_pattern
static DynamicTemplate
API name:path_match
API name:path_unmatch
runtime()
Get theruntime
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
unmatch()
API name:unmatch
API name:unmatch_mapping_type
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
DynamicTemplate
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<DynamicTemplate.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in 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 themapping
variant value.- Throws:
IllegalStateException
- if the current variant is not of themapping
kind.
-
isRuntime
public boolean isRuntime()Is this variant instance of kindruntime
? -
runtime
Get theruntime
variant value.- Throws:
IllegalStateException
- if the current variant is not of theruntime
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-
setupDynamicTemplateDeserializer
protected static void setupDynamicTemplateDeserializer(ObjectDeserializer<DynamicTemplate.Builder> op)
-