Class SearchableSnapshotsStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SearchableSnapshotsStatsResponse.Builder>
co.elastic.clients.elasticsearch.searchable_snapshots.SearchableSnapshotsStatsResponse.Builder
- All Implemented Interfaces:
WithJson<SearchableSnapshotsStatsResponse.Builder>
,ObjectBuilder<SearchableSnapshotsStatsResponse>
- Enclosing class:
- SearchableSnapshotsStatsResponse
public static class SearchableSnapshotsStatsResponse.Builder extends WithJsonObjectBuilderBase<SearchableSnapshotsStatsResponse.Builder> implements ObjectBuilder<SearchableSnapshotsStatsResponse>
Builder for
SearchableSnapshotsStatsResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SearchableSnapshotsStatsResponse
build()
Builds aSearchableSnapshotsStatsResponse
.protected SearchableSnapshotsStatsResponse.Builder
self()
SearchableSnapshotsStatsResponse.Builder
stats(JsonData value)
Required - API name:stats
SearchableSnapshotsStatsResponse.Builder
total(JsonData value)
Required - API name:total
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
stats
Required - API name:stats
-
total
Required - API name:total
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SearchableSnapshotsStatsResponse.Builder>
-
build
Builds aSearchableSnapshotsStatsResponse
.- Specified by:
build
in interfaceObjectBuilder<SearchableSnapshotsStatsResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-