Class CreateDataStreamRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.CreateDataStreamRequest
Create a data stream.
You must have a matching index template with data stream enabled.
- 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 Endpoint<CreateDataStreamRequest,
CreateDataStreamResponse, ErrorResponse> Endpoint "indices.create_data_stream
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Time
Period to wait for a connection to the master node.final String
name()
Required - Name of the data stream, which must meet the following criteria: Lowercase only; Cannot include\
,/
,*
,?
,"
,<
,>
,|
,,
,#
,:
, or a space character; Cannot start with-
,_
,+
, or.ds-
; Cannot be.
or..
; Cannot be longer than 255 bytes.static CreateDataStreamRequest
final Time
timeout()
Period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<CreateDataStreamRequest,CreateDataStreamResponse, _ENDPOINTErrorResponse> Endpoint "indices.create_data_stream
".
-
-
Method Details
-
of
public static CreateDataStreamRequest of(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
name
Required - Name of the data stream, which must meet the following criteria: Lowercase only; Cannot include\
,/
,*
,?
,"
,<
,>
,|
,,
,#
,:
, or a space character; Cannot start with-
,_
,+
, or.ds-
; Cannot be.
or..
; Cannot be longer than 255 bytes. Multi-byte characters count towards this limit faster.API name:
name
-
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-