Class PutComponentTemplateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.cluster.PutComponentTemplateRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PutComponentTemplateRequest
extends RequestBase
implements JsonpSerializable
Creates or updates a component template
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutComponentTemplateRequest>Json deserializer forPutComponentTemplateRequestEndpoint "cluster.put_component_template". -
Method Summary
Modifier and TypeMethodDescriptionfinal Map<String,AliasDefinition> aliases()API name:aliasesfinal Booleancreate()Whether the index template should only be added if new or can also replace an existing onefinal TypeMappingmappings()API name:mappingsfinal TimeSpecify timeout for connection to mastermeta()API name:_metafinal Stringname()Required - The name of the templatestatic PutComponentTemplateRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final IndexSettingssettings()API name:settingsprotected static voidsetupPutComponentTemplateRequestDeserializer(ObjectDeserializer<PutComponentTemplateRequest.Builder> op) final IndexStatetemplate()Required - API name:templatefinal Longversion()API name:versionMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutComponentTemplateRequest -
_ENDPOINT
public static final Endpoint<PutComponentTemplateRequest,PutComponentTemplateResponse, _ENDPOINTErrorResponse> Endpoint "cluster.put_component_template".
-
-
Method Details
-
of
-
meta
API name:_meta -
aliases
API name:aliases -
create
Whether the index template should only be added if new or can also replace an existing oneAPI name:
create -
mappings
API name:mappings -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout -
name
Required - The name of the templateAPI name:
name -
settings
API name:settings -
template
Required - API name:template -
version
API name:version -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutComponentTemplateRequestDeserializer
protected static void setupPutComponentTemplateRequestDeserializer(ObjectDeserializer<PutComponentTemplateRequest.Builder> op)
-