Class GetDataStreamRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetDataStreamRequest.Builder>
co.elastic.clients.elasticsearch.indices.GetDataStreamRequest.Builder
- All Implemented Interfaces:
WithJson<GetDataStreamRequest.Builder>
,ObjectBuilder<GetDataStreamRequest>
- Enclosing class:
- GetDataStreamRequest
public static class GetDataStreamRequest.Builder
extends RequestBase.AbstractBuilder<GetDataStreamRequest.Builder>
implements ObjectBuilder<GetDataStreamRequest>
Builder for
GetDataStreamRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetDataStreamRequest
.expandWildcards
(ExpandWildcard value, ExpandWildcard... values) Type of data stream that wildcard patterns can match.expandWildcards
(List<ExpandWildcard> list) Type of data stream that wildcard patterns can match.includeDefaults
(Boolean value) If true, returns all relevant default configurations for the index template.masterTimeout
(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Comma-separated list of data stream names used to limit the request.Comma-separated list of data stream names used to limit the request.protected GetDataStreamRequest.Builder
self()
Whether the maximum timestamp for each data stream should be calculated and returned.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
-
expandWildcards
Type of data stream that wildcard patterns can match. Supports comma-separated values, such asopen,hidden
.API name:
expand_wildcards
Adds all elements of
list
toexpandWildcards
. -
expandWildcards
public final GetDataStreamRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of data stream that wildcard patterns can match. Supports comma-separated values, such asopen,hidden
.API name:
expand_wildcards
Adds one or more values to
expandWildcards
. -
includeDefaults
If true, returns all relevant default configurations for the index template.API name:
include_defaults
-
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 GetDataStreamRequest.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
Comma-separated list of data stream names used to limit the request. Wildcard (*
) expressions are supported. If omitted, all data streams are returned.API name:
name
Adds all elements of
list
toname
. -
name
Comma-separated list of data stream names used to limit the request. Wildcard (*
) expressions are supported. If omitted, all data streams are returned.API name:
name
Adds one or more values to
name
. -
verbose
Whether the maximum timestamp for each data stream should be calculated and returned.API name:
verbose
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetDataStreamRequest.Builder>
-
build
Builds aGetDataStreamRequest
.- Specified by:
build
in interfaceObjectBuilder<GetDataStreamRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-