Class CreateFromRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.CreateFromRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class CreateFromRequest
extends RequestBase
implements JsonpSerializable
Create an index from a source index.
Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.
- 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<CreateFromRequest>
static final Endpoint<CreateFromRequest,
CreateFromResponse, ErrorResponse> Endpoint "indices.create_from
". -
Method Summary
Modifier and TypeMethodDescriptionprotected static JsonpDeserializer<CreateFromRequest>
final CreateFrom
Required - Request body.final String
dest()
Required - The destination index or data stream namestatic CreateFromRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final String
source()
Required - The source index or data stream nameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
Endpoint "indices.create_from
".
-
-
Method Details
-
of
public static CreateFromRequest of(Function<CreateFromRequest.Builder, ObjectBuilder<CreateFromRequest>> fn) -
dest
Required - The destination index or data stream nameAPI name:
dest
-
source
Required - The source index or data stream nameAPI name:
source
-
createFrom
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
createCreateFromRequestDeserializer
-