Class CreateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.CreateRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
@JsonpDeserializable public final class CreateRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateRequest.Builder
Builder forCreateRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CreateRequest>
_DESERIALIZER
Json deserializer forCreateRequest
static Endpoint<CreateRequest,CreateResponse,ElasticsearchError>
ENDPOINT
Endpoint "indices.create
". -
Constructor Summary
Constructors Constructor Description CreateRequest(CreateRequest.Builder builder)
CreateRequest(java.util.function.Function<CreateRequest.Builder,CreateRequest.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Alias>
aliases()
API name:aliases
java.lang.Boolean
includeTypeName()
Whether a type should be expected in the body of the mappings.java.lang.String
index()
Required - The name of the indexjakarta.json.JsonValue
mappings()
Mapping for fields in the index.java.lang.String
masterTimeout()
Specify timeout for connection to mastervoid
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
java.util.Map<java.lang.String,JsonData>
settings()
API name:settings
protected static void
setupCreateRequestDeserializer(DelegatingDeserializer<CreateRequest.Builder> op)
java.lang.String
timeout()
Explicit operation timeoutjakarta.json.JsonValue
waitForActiveShards()
Set the number of active shards to wait for before the operation returns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCreateRequest
-
ENDPOINT
Endpoint "indices.create
".
-
-
Constructor Details
-
CreateRequest
-
CreateRequest
-
-
Method Details
-
index
public java.lang.String index()Required - The name of the indexAPI name:
index
-
includeTypeName
@Nullable public java.lang.Boolean includeTypeName()Whether a type should be expected in the body of the mappings.API name:
include_type_name
-
masterTimeout
@Nullable public java.lang.String masterTimeout()Specify timeout for connection to masterAPI name:
master_timeout
-
timeout
@Nullable public java.lang.String timeout()Explicit operation timeoutAPI name:
timeout
-
waitForActiveShards
@Nullable public jakarta.json.JsonValue waitForActiveShards()Set the number of active shards to wait for before the operation returns.API name:
wait_for_active_shards
-
aliases
API name:aliases
-
mappings
@Nullable public jakarta.json.JsonValue mappings()Mapping for fields in the index. If specified, this mapping can include:- Field names
- Field data types
- Mapping parameters
API name:
mappings
-
settings
API name:settings
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupCreateRequestDeserializer
protected static void setupCreateRequestDeserializer(DelegatingDeserializer<CreateRequest.Builder> op)
-