Class SearchableSnapshotsStatsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.searchable_snapshots.SearchableSnapshotsStatsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<SearchableSnapshotsStatsRequest>
- Enclosing class:
- SearchableSnapshotsStatsRequest
public static class SearchableSnapshotsStatsRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<SearchableSnapshotsStatsRequest>
Builder for
SearchableSnapshotsStatsRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SearchableSnapshotsStatsRequest
build()
Builds aSearchableSnapshotsStatsRequest
.SearchableSnapshotsStatsRequest.Builder
index(java.lang.String value, java.lang.String... values)
A comma-separated list of index namesSearchableSnapshotsStatsRequest.Builder
index(java.util.List<java.lang.String> list)
A comma-separated list of index namesSearchableSnapshotsStatsRequest.Builder
level(StatsLevel value)
Return stats aggregated at cluster, index or shard levelMethods 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
-
index
A comma-separated list of index namesAPI name:
index
Adds all elements of
list
toindex
. -
index
public final SearchableSnapshotsStatsRequest.Builder index(java.lang.String value, java.lang.String... values)A comma-separated list of index namesAPI name:
index
Adds one or more values to
index
. -
level
Return stats aggregated at cluster, index or shard levelAPI name:
level
-
build
Builds aSearchableSnapshotsStatsRequest
.- Specified by:
build
in interfaceObjectBuilder<SearchableSnapshotsStatsRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-