Class MlDatafeedsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cat.MlDatafeedsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<MlDatafeedsRequest>
- Enclosing class:
- MlDatafeedsRequest
public static class MlDatafeedsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<MlDatafeedsRequest>
Builder for
MlDatafeedsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MlDatafeedsRequest.Builder
allowNoDatafeeds(java.lang.Boolean value)
Deprecated.MlDatafeedsRequest.Builder
allowNoMatch(java.lang.Boolean value)
Specifies what to do when the request: Contains wildcard expressions and there are no datafeeds that match. Contains the_all
string or no identifiers and there are no matches. Contains wildcard expressions and there are only partial matches.MlDatafeedsRequest
build()
Builds aMlDatafeedsRequest
.MlDatafeedsRequest.Builder
datafeedId(java.lang.String value)
A numerical character string that uniquely identifies the datafeed.MlDatafeedsRequest.Builder
format(java.lang.String value)
Short version of the HTTP accept header.MlDatafeedsRequest.Builder
h(CatDatafeedColumn value, CatDatafeedColumn... values)
Comma-separated list of column names to display.MlDatafeedsRequest.Builder
h(java.util.List<CatDatafeedColumn> list)
Comma-separated list of column names to display.MlDatafeedsRequest.Builder
help(java.lang.Boolean value)
Iftrue
, the response includes help information.MlDatafeedsRequest.Builder
s(CatDatafeedColumn value, CatDatafeedColumn... values)
Comma-separated list of column names or column aliases used to sort the response.MlDatafeedsRequest.Builder
s(java.util.List<CatDatafeedColumn> list)
Comma-separated list of column names or column aliases used to sort the response.MlDatafeedsRequest.Builder
time(TimeUnit value)
The unit used to display time values.MlDatafeedsRequest.Builder
v(java.lang.Boolean value)
Iftrue
, the response includes column headings.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowNoDatafeeds
@Deprecated public final MlDatafeedsRequest.Builder allowNoDatafeeds(@Nullable java.lang.Boolean value)Deprecated.7.10.0 Useallow_no_match
instead.Whether to ignore if a wildcard expression matches no datafeeds. (This includes_all
string or when no datafeeds have been specified)API name:
allow_no_datafeeds
-
allowNoMatch
Specifies what to do when the request:- Contains wildcard expressions and there are no datafeeds that match.
- Contains the
_all
string or no identifiers and there are no matches. - Contains wildcard expressions and there are only partial matches.
If
true
, the API returns an empty datafeeds array when there are no matches and the subset of results when there are partial matches. Iffalse
, the API returns a 404 status code when there are no matches or only partial matches.API name:
allow_no_match
-
datafeedId
A numerical character string that uniquely identifies the datafeed.API name:
datafeed_id
-
format
Short version of the HTTP accept header. Valid values include JSON, YAML, for example.API name:
format
-
h
Comma-separated list of column names to display.API name:
h
Adds all elements of
list
toh
. -
h
Comma-separated list of column names to display.API name:
h
Adds one or more values to
h
. -
help
Iftrue
, the response includes help information.API name:
help
-
s
Comma-separated list of column names or column aliases used to sort the response.API name:
s
Adds all elements of
list
tos
. -
s
Comma-separated list of column names or column aliases used to sort the response.API name:
s
Adds one or more values to
s
. -
time
The unit used to display time values.API name:
time
-
v
Iftrue
, the response includes column headings.API name:
v
-
build
Builds aMlDatafeedsRequest
.- Specified by:
build
in interfaceObjectBuilder<MlDatafeedsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
allow_no_match
instead.