Class LogsEnableRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.streams.LogsEnableRequest
Enable a named stream.
Turn on the named stream feature for this cluster.
NOTE: To protect existing data, this feature can be turned on only if the
cluster does not have existing indices or data streams that match the pattern
<name>|<name>.* for the enabled stream type name. If
those indices or data streams exist, a 409 - Conflict response
and error is returned.
- 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<LogsEnableRequest,LogsEnableResponse, ErrorResponse> Endpoint "streams.logs_enable". -
Method Summary
Modifier and TypeMethodDescriptionfinal TimeThe period to wait for a connection to the master node.final StreamTypename()Required - The stream type to enable.static LogsEnableRequestrebuild()final Timetimeout()The period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "streams.logs_enable".
-
-
Method Details
-
of
public static LogsEnableRequest of(Function<LogsEnableRequest.Builder, ObjectBuilder<LogsEnableRequest>> fn) -
masterTimeout
The 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 - The stream type to enable.API name:
name -
timeout
The 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 -
rebuild
- Returns:
- New
LogsEnableRequest.Builderinitialized with field values of this instance
-