Class ShardsStatsSummary.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardsStatsSummary.Builder>
co.elastic.clients.elasticsearch.snapshot.ShardsStatsSummary.Builder
- All Implemented Interfaces:
WithJson<ShardsStatsSummary.Builder>
,ObjectBuilder<ShardsStatsSummary>
- Enclosing class:
- ShardsStatsSummary
public static class ShardsStatsSummary.Builder extends WithJsonObjectBuilderBase<ShardsStatsSummary.Builder> implements ObjectBuilder<ShardsStatsSummary>
Builder for
ShardsStatsSummary
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ShardsStatsSummary
build()
Builds aShardsStatsSummary
.ShardsStatsSummary.Builder
incremental(ShardsStatsSummaryItem value)
Required - API name:incremental
ShardsStatsSummary.Builder
incremental(java.util.function.Function<ShardsStatsSummaryItem.Builder,ObjectBuilder<ShardsStatsSummaryItem>> fn)
Required - API name:incremental
protected ShardsStatsSummary.Builder
self()
ShardsStatsSummary.Builder
startTimeInMillis(long value)
Required - API name:start_time_in_millis
ShardsStatsSummary.Builder
timeInMillis(long value)
Required - API name:time_in_millis
ShardsStatsSummary.Builder
total(ShardsStatsSummaryItem value)
Required - API name:total
ShardsStatsSummary.Builder
total(java.util.function.Function<ShardsStatsSummaryItem.Builder,ObjectBuilder<ShardsStatsSummaryItem>> fn)
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
-
incremental
Required - API name:incremental
-
incremental
public final ShardsStatsSummary.Builder incremental(java.util.function.Function<ShardsStatsSummaryItem.Builder,ObjectBuilder<ShardsStatsSummaryItem>> fn)Required - API name:incremental
-
total
Required - API name:total
-
total
public final ShardsStatsSummary.Builder total(java.util.function.Function<ShardsStatsSummaryItem.Builder,ObjectBuilder<ShardsStatsSummaryItem>> fn)Required - API name:total
-
startTimeInMillis
Required - API name:start_time_in_millis
-
timeInMillis
Required - API name:time_in_millis
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ShardsStatsSummary.Builder>
-
build
Builds aShardsStatsSummary
.- Specified by:
build
in interfaceObjectBuilder<ShardsStatsSummary>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-