Class FollowIndexStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FollowIndexStats.Builder>
co.elastic.clients.elasticsearch.ccr.FollowIndexStats.Builder
- All Implemented Interfaces:
WithJson<FollowIndexStats.Builder>
,ObjectBuilder<FollowIndexStats>
- Enclosing class:
- FollowIndexStats
public static class FollowIndexStats.Builder
extends WithJsonObjectBuilderBase<FollowIndexStats.Builder>
implements ObjectBuilder<FollowIndexStats>
Builder for
FollowIndexStats
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aFollowIndexStats
.final FollowIndexStats.Builder
Required - API name:index
protected FollowIndexStats.Builder
self()
final FollowIndexStats.Builder
shards
(ShardStats value, ShardStats... values) Required - API name:shards
final FollowIndexStats.Builder
Required - API name:shards
final FollowIndexStats.Builder
shards
(List<ShardStats> list) Required - API name:shards
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - API name:index
-
shards
Required - API name:shards
Adds all elements of
list
toshards
. -
shards
Required - API name:shards
Adds one or more values to
shards
. -
shards
public final FollowIndexStats.Builder shards(Function<ShardStats.Builder, ObjectBuilder<ShardStats>> fn) Required - API name:shards
Adds a value to
shards
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<FollowIndexStats.Builder>
-
build
Builds aFollowIndexStats
.- Specified by:
build
in interfaceObjectBuilder<FollowIndexStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-