Class PutDataStreamOptionsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutDataStreamOptionsRequest.Builder>
co.elastic.clients.elasticsearch.indices.PutDataStreamOptionsRequest.Builder
- All Implemented Interfaces:
WithJson<PutDataStreamOptionsRequest.Builder>,ObjectBuilder<PutDataStreamOptionsRequest>
- Enclosing class:
- PutDataStreamOptionsRequest
public static class PutDataStreamOptionsRequest.Builder
extends RequestBase.AbstractBuilder<PutDataStreamOptionsRequest.Builder>
implements ObjectBuilder<PutDataStreamOptionsRequest>
Builder for
PutDataStreamOptionsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutDataStreamOptionsRequest.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.If defined, it will update the failure store configuration of every data stream resolved by the name expression.If defined, it will update the failure store configuration of every data stream resolved by the name expression.masterTimeout(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Required - Comma-separated list of data streams used to limit the request.Required - Comma-separated list of data streams used to limit the request.protected PutDataStreamOptionsRequest.Builderself()Period to wait for a response.Period to wait for a response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final PutDataStreamOptionsRequest.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_wildcardsAdds one or more values to
expandWildcards. -
failureStore
public final PutDataStreamOptionsRequest.Builder failureStore(@Nullable DataStreamFailureStore value) If defined, it will update the failure store configuration of every data stream resolved by the name expression.API name:
failure_store -
failureStore
public final PutDataStreamOptionsRequest.Builder failureStore(Function<DataStreamFailureStore.Builder, ObjectBuilder<DataStreamFailureStore>> fn) If defined, it will update the failure store configuration of every data stream resolved by the name expression.API name:
failure_store -
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 PutDataStreamOptionsRequest.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 - Comma-separated list of data streams used to limit the request. Supports wildcards (*). To target all data streams use*or_all.API name:
nameAdds all elements of
listtoname. -
name
Required - Comma-separated list of data streams used to limit the request. Supports wildcards (*). To target all data streams use*or_all.API name:
nameAdds one or more values to
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
public final PutDataStreamOptionsRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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:
selfin classRequestBase.AbstractBuilder<PutDataStreamOptionsRequest.Builder>
-
build
Builds aPutDataStreamOptionsRequest.- Specified by:
buildin interfaceObjectBuilder<PutDataStreamOptionsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-