Class PutComponentTemplateRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.cluster.PutComponentTemplateRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<PutComponentTemplateRequest.Builder,PutComponentTemplateRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class PutComponentTemplateRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<PutComponentTemplateRequest.Builder,PutComponentTemplateRequest>
Creates or updates a component template.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._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 BooleanThis setting overrides theaction.auto_create_indexcluster setting.protected voidapplyQueryParameters(Map<String, String> params) builder()final TimeThe amount of time to wait for a response from the cluster manager node.final Booleancreate()Whentrue, this request cannot replace or update existing component templates.booleaninthashCode()final TimeDeprecated.meta()API name:_metafinal Stringname()Required - The name of the component template to create.static PutComponentTemplateRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupPutComponentTemplateRequestDeserializer(ObjectDeserializer<PutComponentTemplateRequest.Builder> op) final IndexStatetemplate()Required - API name:templatefinal Timetimeout()A duration.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Longversion()API name:versionMethods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forPutComponentTemplateRequest -
_ENDPOINT
public static final Endpoint<PutComponentTemplateRequest,PutComponentTemplateResponse, _ENDPOINTErrorResponse> Endpoint "cluster.put_component_template".
-
-
Method Details
-
of
-
allowAutoCreate
This setting overrides theaction.auto_create_indexcluster setting. When set totruein a component template, indexes are automatically created using that template. When set tofalse, data streams matching the component template must always be explicitly created.API name:
allow_auto_create -
clusterManagerTimeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
create
Whentrue, this request cannot replace or update existing component templates.API name:
create -
masterTimeout
Deprecated.A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
master_timeout -
meta
API name:_meta -
name
Required - The name of the component template to create. OpenSearch includes the following built-in component templates:logs-mappings,logs-settings,metrics-mappings,metrics-settings,synthetics-mapping, andsynthetics-settings. OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement templateversionto a higher value than the current version. If you want to disable all built-in component and index templates, setstack.templates.enabledtofalseusing the Cluster Update Settings API.API name:
name -
template
Required - API name:template -
timeout
A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
timeout -
version
API name:version -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PutComponentTemplateRequest.Builder,PutComponentTemplateRequest> - Returns:
- a new builder instance.
-
builder
-
setupPutComponentTemplateRequestDeserializer
protected static void setupPutComponentTemplateRequestDeserializer(ObjectDeserializer<PutComponentTemplateRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-