Class CreateDataStreamRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<CreateDataStreamRequest.Builder>
co.elastic.clients.elasticsearch.indices.CreateDataStreamRequest.Builder
- All Implemented Interfaces:
WithJson<CreateDataStreamRequest.Builder>
,ObjectBuilder<CreateDataStreamRequest>
- Enclosing class:
- CreateDataStreamRequest
public static class CreateDataStreamRequest.Builder
extends RequestBase.AbstractBuilder<CreateDataStreamRequest.Builder>
implements ObjectBuilder<CreateDataStreamRequest>
Builder for
CreateDataStreamRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCreateDataStreamRequest
.masterTimeout
(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.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.protected CreateDataStreamRequest.Builder
self()
Period to wait for a response.Period to wait for a response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
masterTimeout
public final CreateDataStreamRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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
-
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
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<CreateDataStreamRequest.Builder>
-
build
Builds aCreateDataStreamRequest
.- Specified by:
build
in interfaceObjectBuilder<CreateDataStreamRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-