Class SearchTemplateRequestBody
java.lang.Object
co.elastic.clients.elasticsearch.watcher.SearchTemplateRequestBody
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class SearchTemplateRequestBody extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchTemplateRequestBody.BuilderBuilder forSearchTemplateRequestBody. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SearchTemplateRequestBody>_DESERIALIZERJson deserializer forSearchTemplateRequestBody -
Method Summary
Modifier and Type Method Description java.lang.Booleanexplain()API name:explainjava.lang.Stringid()ID of the search template to use.static SearchTemplateRequestBodyof(java.util.function.Function<SearchTemplateRequestBody.Builder,ObjectBuilder<SearchTemplateRequestBody>> fn)java.util.Map<java.lang.String,JsonData>params()API name:paramsjava.lang.Booleanprofile()API name:profilevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSearchTemplateRequestBodyDeserializer(ObjectDeserializer<SearchTemplateRequestBody.Builder> op)java.lang.Stringsource()An inline search template.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forSearchTemplateRequestBody
-
-
Method Details
-
of
public static SearchTemplateRequestBody of(java.util.function.Function<SearchTemplateRequestBody.Builder,ObjectBuilder<SearchTemplateRequestBody>> fn) -
explain
@Nullable public final java.lang.Boolean explain()API name:explain -
id
@Nullable public final java.lang.String id()ID of the search template to use. If no source is specified, this parameter is required.API name:
id -
params
API name:params -
profile
@Nullable public final java.lang.Boolean profile()API name:profile -
source
@Nullable public final java.lang.String source()An inline search template. Supports the same parameters as the search API's request body. Also supports Mustache variables. If no id is specified, this parameter is required.API name:
source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupSearchTemplateRequestBodyDeserializer
protected static void setupSearchTemplateRequestBodyDeserializer(ObjectDeserializer<SearchTemplateRequestBody.Builder> op)
-