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
  • Field Details

  • Constructor Details

  • Method Details

    • index

      public java.lang.String index()
      Required - The name of the index

      API 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 master

      API name: master_timeout

    • timeout

      @Nullable public java.lang.String timeout()
      Explicit operation timeout

      API 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

      @Nullable public java.util.Map<java.lang.String,​Alias> 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

      @Nullable public java.util.Map<java.lang.String,​JsonData> settings()
      API name: settings
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupCreateRequestDeserializer

      protected static void setupCreateRequestDeserializer​(DelegatingDeserializer<CreateRequest.Builder> op)